Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle] Fix sorting bug in sorting of tagged services by priority#45399
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
1ff0a64 to9929123Comparedkarlovi commentedFeb 11, 2022
@Ahummeling if I understood correctly, it means the positive priorities are sorted correct, but negative are not? Is |
Ahummeling commentedFeb 11, 2022
Yes you are understanding this correctly. The class responsible for sorting the output of the debug command is the |
Ahummeling commentedFeb 11, 2022
The |
nicolas-grekas commentedFeb 11, 2022
Can you please add a test case? |
Ahummeling commentedFeb 11, 2022
Certainly, sorry should've done that before making the PR |
Fixed incorrect assumption that the minimum priority is zeroleading to an unsorted list of negative priorities.
9929123 to9b5c564CompareAhummeling commentedFeb 11, 2022
Added a test case to the relevant provider that would fail without the proposed change and updated the relevant fixtures to reflect this additional testcase. |
nicolas-grekas commentedFeb 11, 2022
Thank you@Ahummeling. |
Fixed incorrect assumption that the minimum priority is zero
leading to an unsorted list of negative priorities.
Fixed an incorrect assumption that the minimum priority is zero which was leading to an unsorted list of negative priorities.
(See#45396)