- Status changed to RTBC
almost 2 years ago 3:18pm 13 February 2023 - ๐ฎ๐ณIndia ameymudras
Tested on 10.1.x and following is my observation
1. The issue summary is clear and explains the overall problem
2. Testing steps have been provided and was able to reproduce the issue
3. Patch #24 applies cleanly and the non-ASCII config entity sort correctly
4. Tests have been included and passes for #24
5. Did code review and no issues were identifiedMarking this as RTBC, not including additional screenshots. Already provided in #27
- Status changed to Needs review
almost 2 years ago 12:14pm 21 March 2023 - ๐ฌ๐งUnited Kingdom longwave UK
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -226,14 +226,22 @@ public function createDuplicate() { + $language_id = \Drupal::service('language_manager') ... + $a_label = \Drupal::service('transliteration')->transliterate( ... + $b_label = \Drupal::service('transliteration')->transliterate(
A bit concerned about calling all these services inside the sort callback, because it feels like this is not going to be very performant in a case when there are hundreds of items or more to sort.
We could at least extract the transliteration service to a variable, and also skip transliterating the empty string if it is falsy? Is there a way of injecting at least the language ID, given that it never changes, or the transliteration service itself?
Also, do we have the same concerns about sorting in different languages as was raised in #3262017-90: Country list is not correctly sorted when it's localized with accents (e.g. German, Turkish) โ ? Is transliterating the right thing to do in all cases?
- Status changed to Needs work
over 1 year ago 9:30pm 2 April 2023 - Status changed to Needs review
over 1 year ago 9:38pm 2 April 2023 - ๐ฉ๐ชGermany sleitner
@longwave : I remove transliteration and added the
Collator
like in ๐ Country list is not correctly sorted when it's localized with accents (e.g. German, Turkish) Postponed . - ๐ฉ๐ชGermany sleitner
To prevent MethodArgumentValueNotImplemented exception in Collator, language_id en is used if intl extension is not installed.
- ๐ฌ๐งUnited Kingdom longwave UK
The new polyfill and intl extension have the same considerations as ๐ Country list is not correctly sorted when it's localized with accents (e.g. German, Turkish) Postponed so this will need to wait for the decision over there first.
- last update
over 1 year ago 29,277 pass, 2 fail The last submitted patch, 38: 2265487-38.patch, failed testing. View results โ
- last update
over 1 year ago 29,300 pass - Status changed to Postponed
over 1 year ago 6:57pm 6 May 2023 - ๐บ๐ธUnited States smustgrave
Postponing on ๐ Country list is not correctly sorted when it's localized with accents (e.g. German, Turkish) Postponed .
- ๐บ๐ธUnited States smustgrave
Also posted to the #needs-review-queue-initative slack channel so hopefully a framework manager can take a look at that one.
- last update
over 1 year ago Patch Failed to Apply - Status changed to Needs work
10 months ago 9:27pm 2 March 2024 - ๐ฉ๐ชGermany sleitner
Unpostpone it. ๐ Country list is not correctly sorted when it's localized with accents (e.g. German, Turkish) Postponed is postponed because nobody wants to break the API.
- Merge request !6869Issue #2265487: ConfigEntity based lists with items containing non-ascii... โ (Open) created by sleitner
- Status changed to Needs review
10 months ago 12:00am 3 March 2024 - Status changed to Needs work
10 months ago 7:23pm 5 March 2024 - ๐บ๐ธUnited States smustgrave
Can the issue summary be updated to use the standard template please.
Hiding all patches for clarity as fix is in MR now.
Will need framework manager review for the package being added.
- Status changed to Needs review
8 months ago 3:56pm 13 May 2024 - Status changed to Needs work
8 months ago 10:17pm 19 May 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
7 months ago 7:02am 5 June 2024 - Status changed to Needs work
7 months ago 1:47pm 10 June 2024 - ๐บ๐ธUnited States smustgrave
Took a look at the MR before pinging a framework manager and seems we are updating several packages that seem unrelated to this. Can those be reverted please.
- Status changed to Needs review
7 months ago 7:14pm 10 June 2024 - Status changed to Needs work
7 months ago 10:49am 15 June 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
7 months ago 7:04pm 15 June 2024 - Status changed to RTBC
6 months ago 1:50pm 24 June 2024 - ๐บ๐ธUnited States smustgrave
I can't make the call about the new package but the MR does fix the problem described in the issue summary. Moving to RTBC to put in front of the framework managers.
- Status changed to Needs work
6 months ago 4:27am 10 July 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to RTBC
6 months ago 3:14pm 10 July 2024 - Status changed to Needs work
6 months ago 12:27pm 16 July 2024 - ๐ฌ๐งUnited Kingdom catch
It's fine to add a new Symfony polyfill, (more a release management decision than a framework one) but there should really be a dependency evaluation in the issue summary here per https://www.drupal.org/about/core/policies/core-dependency-policies/depe... โ - can be very short because we know the answers in this case.
- Status changed to Needs review
5 months ago 2:17pm 28 July 2024 - Status changed to Needs work
5 months ago 2:47pm 28 July 2024 The Needs Review Queue Bot โ tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- Status changed to Needs review
5 months ago 5:01pm 28 July 2024 - Status changed to RTBC
5 months ago 1:48pm 29 July 2024 - ๐บ๐ธUnited States smustgrave
Remarking as dependency eval has been added to summary.
- ๐ณ๐ฟNew Zealand quietone
I read the IS, comments and the MR. The only possible thing to consider is @longwave's point in #31 about calling services inside the sort callback "is not going to be very performant in a case when there are hundreds of items or more to sort". The transliteration service was removed from an earlier iteration of the MR but is still is getting the LanguageManager.
Leaving at RTBC.
- Status changed to Needs work
2 months ago 4:56am 21 October 2024 - ๐ฉ๐ชGermany sleitner
The service is moved to a new function
public static function sortEntities(array &$entities): bool
which calls a new compare function
public static function compare(ConfigEntityInterface $a, ConfigEntityInterface $b, \Collator $collator): int
.
The sort functionpublic static function sort(ConfigEntityInterface $a, ConfigEntityInterface $b)
is now deprecated in all child classes. - ๐บ๐ธUnited States smustgrave
appears to have merge conflict but the tag no-needs-review-bot kept the bot from getting it.