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

fix: make app.savePluginOptions work from plugin #495

Merged
merged 1 commit into from
Apr 3, 2018

Conversation

tkurki
Copy link
Member

@tkurki tkurki commented Apr 2, 2018

The enabled and enableLogging flags that are managed
by the server and not part of the plugin's config
schema were not handled when calling savePluginOptions
from a plugin. This changes the logic
so that if a plugin calls savePluginOptions the
values for these two properties are retrieved from
the file system and the plugin config is saved
in the proper structure, with the plugin's own data
nested under 'configuration' property.

The enabled and enableLogging flags that are managed
by the server and not part of the plugin's config
schema were not handled when calling savePluginOptions
from a plugin. This changes the logic
so that if a plugin calls savePluginOptions the
values for these two properties are retrieved from
the file system and the plugin config is saved
in the proper structure, with the plugin's own data
nested under 'configuration' property.
@tkurki tkurki force-pushed the fix-savePluginOptions branch from 8ddfe4e to 034e2a6 Compare April 2, 2018 16:36
@tkurki tkurki requested a review from sbender9 April 3, 2018 06:28
Copy link
Member

@sbender9 sbender9 left a comment

Choose a reason for hiding this comment

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

Looks good. Will merge.

@sbender9 sbender9 merged commit eddf5cb into master Apr 3, 2018
@tkurki tkurki deleted the fix-savePluginOptions branch October 29, 2018 19:13
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.

2 participants