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

✨ Add ability to set percy config after core initialization #579

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

wwilsman
Copy link
Contributor

What is this?

Currently, you can only set config options during core initialization. This makes sense for some config used during start up relating to build creation or the asset discovery browser. However other config options can still be set after start up, such as global snapshot options, certain discovery options, and config options registered by other plugins.

This PR adds a setConfig method which enables merging provided config options with the loaded config options. A local API endpoint is also added which calls setConfig for post requests but otherwise will return the current config object. The setConfig method will also normalize and validate config options.

@wwilsman wwilsman added the ✨ enhancement New feature or request label Oct 11, 2021
@wwilsman wwilsman requested a review from Robdel12 October 11, 2021 21:32
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

🏁

@wwilsman wwilsman merged commit 56e4ea3 into master Oct 11, 2021
@wwilsman wwilsman deleted the ww/core-set-config branch October 11, 2021 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants