-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.0] Correctly handle multiple critical extensions within an package that is joomla 4 compatible #34971
Conversation
@richard67 you can filter the array: if (extensionData.compatibilityData.resultGroup === 3) {
PreUpdateChecker.nonCoreCriticalPlugins = PreUpdateChecker.nonCoreCriticalPlugins
.filter((plugin) => plugin.package_id === extensionId || plugin.extension_id === extensionId);
} |
I should invert the condition, I think, because the old code removed elements from the array if matching that condition. |
Setting release blocker as inherited from the issue. |
I think the original code suggested by @dgrammatiko is correct. Filter will remove element from array when condition match, so we should not invert the condition. Could you please check that? |
@joomdonation Are you sure? https://www.javascripttutorial.net/javascript-array-filter/ https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/filter and so on ... either I understand them wrong or you are wrong. |
@richard67 Sorry, my bad. |
I have tested this item ✅ successfully on 509a356 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34971. |
I have tested this item ✅ successfully on 509a356 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34971. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34971. |
@hans2103 Sorry for the offtopic. Can you please tell me how to get such a page? Which update server should I use? Thanks in advance. |
|
Thanks all - testers, merger, and @dgrammatiko for the idea to use array.filter. |
Pull Request for Issue #34968 .
Summary of Changes
Port PR #34776 to the 4.0-dev branch.
Testing Instructions
Actual result BEFORE applying this Pull Request
The pre upgrade checker shows a message about potentially not compatible plugins within that package.
Expected result AFTER applying this Pull Request
The pre update checker shows no message about that plugins cause they are compatible..
Documentation Changes Required
None.