-
Notifications
You must be signed in to change notification settings - Fork 154
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
Store hidden config per client ID #5399
base: main
Are you sure you want to change the base?
Conversation
We detected some changes at packages/*/src and there are no updates in the .changeset. |
Coverage report
Show files with reduced coverage 🔻
Test suite run success2075 tests passing in 924 suites. Report generated by 🧪jest coverage report action from f80eebf |
bb0435a
to
53c2446
Compare
53c2446
to
3c10440
Compare
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.
The purpose and the code LGTM, but what happens with the users that already had a saved store without client ID? Will they lose it? I couldn't test it yet
Yes, they'll be forced to reselect the store. I think that's preferable over having to support some "migration" code forever. |
I'm OK with that limited-blast-radius impact, but I think our code should include a test that ensures we can handle the old format without exploding. Otherwise we might accidentally make a future change that breaks things and users won't easily be able to fix it. |
I agree it's preferable. But I think it's something we should at least discuss, maybe gather some numbers, decide if we want to inform the user somehow... Another option could be to support the migration only for a few versions, as it doesn't look too complicate. |
080b1ea
to
883ce69
Compare
Ok, added a simple migration in the |
Also added a bunch of tests to cover all possible cases |
883ce69
to
f80eebf
Compare
WHY are these changes introduced?
The current implementation stores dev store URLs in a flat structure, which can lead to conflicts when developers work with multiple organizations. This change introduces app-specific storage of dev store URLs.
WHAT is this pull request doing?
Updates the hidden configuration structure to store dev store URLs under app-specific keys, preventing conflicts when connecting to different organizations. The change includes:
AppHiddenConfig
interface to use app names as keysExample:
How to test your changes?
Measuring impact
Checklist