-
Notifications
You must be signed in to change notification settings - Fork 162
Specific methods for patch app configuration file scenarios #5641
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
base: main
Are you sure you want to change the base?
Specific methods for patch app configuration file scenarios #5641
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report
Test suite run success2224 tests passing in 968 suites. Report generated by 🧪jest coverage report action from 1407766 |
fe1f0b4
to
767880c
Compare
We detected some changes at packages/*/src and there are no updates in the .changeset. |
953e0ef
to
4209305
Compare
4209305
to
1407766
Compare
await setManyAppConfigValues( | ||
app.configuration.path, | ||
[{keyPath: 'build.dev_store_url', value: store.shopDomain}], | ||
app.configSchema, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why many here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎩 'ed and working as expected
WHY are these changes introduced?
The current implementation of
patchAppConfigurationFile
is too broad, and we'll need something more specific if we want to switch out for a format preserving patcher.WHAT is this pull request doing?
This PR introduces three new, more intuitive functions for modifying app configuration:
setAppConfigValue
- Sets a single value in the app configuration using a dotted path notationunsetAppConfigValue
- Removes a value from the app configurationsetManyAppConfigValues
- Sets multiple values at once in the app configurationThe original
patchAppConfigurationFile
function is now marked as internal, and all existing usages have been updated to use the new functions. This provides a more declarative API for modifying configuration values.How to test your changes?
dev
command that updates URLs)Measuring impact
How do we know this change was effective? Please choose one:
Checklist