-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-14740] Consolidate configuration to support integration of MSI/GPO #959
Conversation
- config needs to load in each process (main and renderer) and then synchronize with each other - finished saving ui functionality
Hmm, tests run fine locally ...
|
|
Regarding tests, that failing test works fine locally and I'm not entirely sure why it wouldn't work here. I'm going to try something though ... |
Can’t seem to get this test to work, even though what is being tested works fine in the actual app.
click of ‘light’ option wasn’t triggering an update as it is selected by default, so flipped the order to first select ‘dark’ and then ‘light’
Okay, so test is fixed. The test was initially trying to 'click' on the |
Ok for me. Tested on Windows and Linux. |
Awesome!! Lets add the MSI stuff |
mattermost#959) * config logic consolidation * filter out duplicate servers * build default teams and GPO teams are not editable * tweaks * tweak config architecture to support tests - config needs to load in each process (main and renderer) and then synchronize with each other - finished saving ui functionality * add esdoc comments to new config module * remove old config-related files * revert eslint comment * don’t filter teams, duplicates are allowed * some code review tweaks * Remove unecessary deepCopy * tweak for tests * Skip test for now Can’t seem to get this test to work, even though what is being tested works fine in the actual app. * fix for failing test click of ‘light’ option wasn’t triggering an update as it is selected by default, so flipped the order to first select ‘dark’ and then ‘light’
Before submitting, please confirm you've
npm run lint:js
for proper code formattingPlease provide the following information:
Summary
This PR consolidates configuration handling (loading, combining default/build configs, updating, saving) in preparation for integrating Windows GPO data (function stub included). The new configuration object is instantiated in the main thread and any primary views loaded in the renderer thread. Each instance is setup with the ability to notify the other instance of changes in order to maintain synchronization between loaded config data in the main and renderer processes. This multi instance setup to needed to support existing tests and their access to config data.