Closed (fixed)
Project:
Search API
Version:
8.x-1.x-dev
Component:
General code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2020 at 12:22 UTC
Updated:
24 Feb 2020 at 09:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottThis results in sorted and less duplicate dependencies in config.
Will need an update function to resave all of the Index config entities.
Comment #4
alexpottAh I see the IndexImportTest is going to fail on 8.8.x and up because of changes for PHP 7.4. There's a simple fix.
Comment #5
borisson_Let's get this in. This change doesn't break anything and fixes forward compatibility.
Comment #6
alexpott@borisson_ well the interdiff in #4 fixes compatibility.
In order to complete this patch we need an update path - fortunately doing this with core APIs is not too bad...
Comment #7
borisson_This now has the compatibility fix that is high priority (interdiff in https://www.drupal.org/files/issues/2020-02-06/2-4-interdiff.txt).
The other changes look very good as well, I don't really have any remarks. We already had existing testcoverage for the change you did and it doesn't fail, so I think no additional testcoverage is needed.
And the actual code is in one of the more hairy parts of the system and it decreases complexity there, so that's very welcome. This also has an upgrade path to resave existing config items as well, so that is very nice. I wasn't aware that it was so easy to resave existing entities.
We should probably tell people that they need to re-export their config as well. But that is something we can add as to the release notes when the time comes to create a new one.
Comment #8
drunken monkeyThanks a lot for reporting this issue and providing such a great patch! The
Dependencieshelper class is a great idea (pity it doesn’t exist in Core already – maybe some time in the future), and the post-update hook is also very educative.All in all, this looks like a great little patch, I fully agree with Joris.
I just did a bit of coding standards clean-up, and also found a way to make the
Dependenciesclass even smaller.PS: Also great that Core managed to fix it’s PHP 7.4 fails. Now I can finally run all my tests locally again.
Comment #9
borisson_Back to rtbc, these changes look very good.
Comment #11
drunken monkeyGreat to hear, thanks for reviewing again!
Committed.
Thanks again, everyone, especially Alex!
Comment #12
alexpottNice!