aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/dev_watch_queue_amd64.const
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-10-09 16:30:20 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-10-12 11:18:22 +0000
commitd753e779cd5f71b91eaca2e18c383c6598e77c9f (patch)
tree65aee07af8b18ce7d5736e8420a966bd7abf3c45 /sys/linux/dev_watch_queue_amd64.const
parent3cefb1441cc82b6846ee4b8e43c1661d417c88e9 (diff)
dashboard: access config through context
We used to have a single global `config` variable and access it throughout the whole dashboard application. However, this approach has been more and more complicated test writing -- sometimes we want the config to be only slightly different, so that it's not worth it adding new namespaces, sometimes we have to test how dashboard handles config changes over time. This has already led to a number of hacky contextWithXXX methods that mocked various parts of the global variable. The rest of the code had to sometimes still use `config` directly and sometimes invoke getXXX(c) methods. This is very inconsistent and prone to errors. With more and more situations where we need to patch the config appearing (see #4118), let's refactor the application to always access config via the getConfig(c) method. This allows us to uniformly patch the config and be sure that the non-patched copy is not accessible from anywhere else.
Diffstat (limited to 'sys/linux/dev_watch_queue_amd64.const')
0 files changed, 0 insertions, 0 deletions