-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(lexicon): migrate config key/value #52832
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
Conversation
come-nc
left a comment
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.
Looks promising, I can’t wait for the tests.
5810acc to
18b732f
Compare
|
❌ We are unable to process any of the uploaded JUnit XML files. Please ensure your files are in the right format. |
bcdd3bd to
5a8e422
Compare
|
what you are looking for is: |
5a8e422 to
52d1666
Compare
bf79458 to
9fdc9a2
Compare
provokateurin
left a comment
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.
I think "alias" is not a good name, as it doesn't make clear the old keys are deprecated.
a779676 to
00b02fe
Compare
b4803fa to
c9067eb
Compare
c9067eb to
e104f78
Compare
e104f78 to
1b42dad
Compare
provokateurin
left a comment
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.
LGTM, but I'm a bit confused why almost all changes to AppConfig/UserConfig are duplicate. I am pretty sure, that over time the implementations will deviate more and more and this calls for painful bugs. Would it be possible to have a base class with the shared logic and have each of them inherit from it? @ArtificialOwl
Could be, but not sure it is the purpose of this PR |
|
You are right, but it makes the problem worse and I feel like there will be no improvement later if we ignore it now. |
|
I am all for avoiding duplicate code but, from my point of view, there is enough difference between
I already added What we can do is having a look at the final version of the code when moving the feature from |
provokateurin
left a comment
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.
Ok, as long as this is not forgotten I'm fine with it.
Signed-off-by: Maxence Lange <[email protected]>
Signed-off-by: Maxence Lange <[email protected]>
Signed-off-by: Maxence Lange <[email protected]>
Signed-off-by: Maxence Lange <[email protected]>
Signed-off-by: Maxence Lange <[email protected]>
Signed-off-by: Maxence Lange <[email protected]>
1b42dad to
d860cfd
Compare
Allow a rename of config keys, with a migration of linked values
also, using old config key will returns value from new config key
migration can also be initiated using:
adding to
CoreConfigLexicon.phpthe entry:will returns: