feat(lexicon): migrate config key/value#52832
Conversation
come-nc
left a comment
There was a problem hiding this comment.
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.
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.
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.
Ok, as long as this is not forgotten I'm fine with it.
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
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: