Skip to content
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

GPII-2558: Provide an API for the local flow manager to update preferences #585

Merged
merged 20 commits into from
Mar 19, 2018

Conversation

cindyli
Copy link
Contributor

@cindyli cindyli commented Jan 30, 2018

On the cloud, PUT requests on /untrusted-settings are now supported for updating preferences. This pull request adds the {untrustedSettingsDataSource}.set() API for the local flow manager to make use of this support to interact with the cloud to update preferences.

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/682/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/698/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/702/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/708/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/712/

@gpii-bot
Copy link

gpii-bot commented Mar 6, 2018

CI job passed: https://ci.gpii.net/job/universal-tests/742/

@gpii-bot
Copy link

gpii-bot commented Mar 8, 2018

CI job passed: https://ci.gpii.net/job/universal-tests/750/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/761/

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/762/

@simonbates
Copy link
Contributor

The gpii.tests.untrustedSettingsDataSource.testCaseHolder grade from gpii/node_modules/flowManager/test/UntrustedSettingsDataSourceTests.js is no longer used and can be removed.

.reply(config.untrustedSettingsGet.status, config.untrustedSettingsGet.response);

// mock PUT requests to "/untrusted-settings"
cloudMock.put(config.untrustedSettingsPut.url)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we able to put a matcher here that verifies the preferences being sent? At the moment these tests do not verify that the preferences are being sent along to the cloud. If I modify gpii/node_modules/flowManager/src/UntrustedSettingsDataSource.js so that an empty object is sent instead of the specified preferences, the tests still pass.

@gpii-bot
Copy link

CI job passed: https://ci.gpii.net/job/universal-tests/768/

@cindyli
Copy link
Contributor Author

cindyli commented Mar 19, 2018

@simonbates, all comments have been addressed and ready for more reviews. Thanks.

@simonbates simonbates merged commit 16fcf3c into GPII:master Mar 19, 2018
@cindyli cindyli deleted the GPII-2558 branch March 19, 2018 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants