- First commit to issue fork.
- @bnjmnm opened merge request.
- First commit to issue fork.
- @utkarsh_33 opened merge request.
- First commit to issue fork.
- ๐ฌ๐งUnited Kingdom joachim
Could the form submission be disabled until the machine name has been generated? I wouldn't say it's 'way too slow'. It's slower than someone typing fast and pressing Return quickly.
Having to wait 1-2 seconds for it to finish its work so you can submit the form is ok UX I think. It's a huge improvement on submitting the form and having a truncated machine name which then means you have to delete and start again. - ๐ซ๐ฎFinland lauriii Finland
We are looking into potentially using the machine name field in ๐ List key|label entry field is textarea, which doesn't give guidance towards the expected input Fixed which would mean that you would potentially fill out multiple machine name fields on a single page. In this case, even a few second delay could be quite jarring.
The PR from @Utkarsh_33 is trying to re-implement the machine name generation on the client side, which would mean that the machine name could be generated almost immediately, and it wouldn't depend on latency.
- ๐ฎ๐ณIndia utkarsh_33
So tried implementing the machine name generation at the client side using the Transliterationlibrary but the major problem while using this library is that it does not take the different languages into consideration while translating the same text.
For example the test named providerTestMachineNameController() fails when we change the langcode. - ๐ซ๐ฎFinland lauriii Finland
It looks like the library does have an option for language overrides. The
replace
property in the option allows overriding replacement patterns for specific characters: https://github.com/dzcpy/transliteration#transliteratestr-options. It is not per language, but we should be able to implement the language aware overrides on our side. This seems worth investigating at least. - Open on Drupal.org โEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Not currently mergeable. - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,299 pass, 1 fail - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,302 pass, 1 fail - Open on Drupal.org โEnvironment: PHP 8.1 & MySQL 5.7
22:51 22:51 Queueing - last update
almost 2 years ago 29,366 pass, 1 fail - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,372 pass - Status changed to Needs review
almost 2 years ago 1:38pm 2 May 2023 - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Build Successful - Status changed to Needs work
almost 2 years ago 2:05pm 4 May 2023 - ๐ซ๐ฎFinland lauriii Finland
Discussed with @catch on Slack. It seems on principle the approach being proposed here is fine, since there's no way we could make the UX similar using the ajax based architecture. @catch hasn't had a chance to take a look at the library, but he didn't raise any concerns so far. The issue seemed low risk since we could always fallback to the ajax based approach if something goes wrong.
He had two questions which we could answer to by providing some additional test coverage:
Whether/how this works with non-latin characters like CJK, arabic, persian vs. the PHP implementation. Would be good to add one or two to the test coverage.
And also whether there's any chance the library creates an invalid machine name that would fail the PHP validation (seems like not though).
- ๐ฌ๐งUnited Kingdom catch
Yes this seems like a good approach to me - it's just a helper that you can override, and there's no way we can make the speed of AJAX match not having AJAX at all. We also don't do any AJAX validation here afaik, just transliteration, so not losing anything there (checking for duplicates etc.).
- last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Unable to generate test groups - last update
almost 2 years ago 29,396 pass, 1 fail - last update
almost 2 years ago 29,396 pass, 1 fail - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago Custom Commands Failed 23:40 19:34 Running14:42 8:40 Running- Status changed to Needs review
almost 2 years ago 1:10pm 25 May 2023 - last update
almost 2 years ago 29,401 pass 23:09 22:31 Running- last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,397 pass, 2 fail - last update
almost 2 years ago 29,408 pass - last update
almost 2 years ago 29,405 pass, 2 fail - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,411 pass - Status changed to Needs work
almost 2 years ago 11:14am 30 May 2023 - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,412 pass - ๐บ๐ธUnited States hooroomoo
A couple of small things, and it looks like there still needs to be test cases added to core/tests/Drupal/FunctionalJavascriptTests/MachineName/MachineNameTransliterationTest.php from \Drupal\Tests\Component\Transliteration\PhpTransliterationTest::testPhpTransliteration (one of the unresolved threads)
- last update
almost 2 years ago Build Successful - Open on Drupal.org โEnvironment: PHP 8.1 & MySQL 5.7last update
almost 2 years ago Waiting for branch to pass - last update
almost 2 years ago 29,399 pass, 4 fail - last update
almost 2 years ago 29,425 pass - Status changed to Needs review
almost 2 years ago 7:34am 5 June 2023 - last update
almost 2 years ago Custom Commands Failed - Status changed to Needs work
almost 2 years ago 12:49pm 5 June 2023 - last update
almost 2 years ago 29,427 pass - Status changed to Needs review
almost 2 years ago 4:40am 6 June 2023 - Status changed to RTBC
almost 2 years ago 2:47pm 6 June 2023 - ๐บ๐ธUnited States smustgrave
Test MR but going to admin/people/roles/add typing something real fast and pressing enter. New package also appears to have gone through, at least first round, of approval.
- Status changed to Needs review
almost 2 years ago 5:08pm 6 June 2023 - ๐ฌ๐งUnited Kingdom catch
Looks like unresolved threads in the MR.
- Status changed to Needs work
almost 2 years ago 6:41pm 6 June 2023 - last update
almost 2 years ago Custom Commands Failed - last update
almost 2 years ago 29,427 pass - last update
almost 2 years ago 29,432 pass - Status changed to Needs review
almost 2 years ago 7:01am 8 June 2023 - last update
almost 2 years ago 29,431 pass, 1 fail - Status changed to RTBC
almost 2 years ago 7:11pm 8 June 2023 - ๐บ๐ธUnited States smustgrave
Appears all threads have been answered.
- Status changed to Needs work
almost 2 years ago 8:54pm 8 June 2023 - ๐ซ๐ฎFinland lauriii Finland
Looks like CI is failing on a relevant test case
- last update
almost 2 years ago 29,437 pass - Status changed to Needs review
almost 2 years ago 11:58pm 12 June 2023 - Status changed to RTBC
almost 2 years ago 1:34am 13 June 2023 - ๐บ๐ธUnited States smustgrave
All green with that change. Back to RTBC
- last update
almost 2 years ago 29,438 pass - ๐ฌ๐งUnited Kingdom catch
Overall this looks encouraging.
Is the AJAX transliteration controller unused now, and could we deprecate both the controller and the route for removal in 11.x?
- Status changed to Needs review
almost 2 years ago 9:41am 14 June 2023 - ๐ฌ๐งUnited Kingdom catch
Back to needs review. If we don't need the route/controller any more my preference would be to deprecate them in this issue.
- Status changed to Needs work
almost 2 years ago 2:14pm 15 June 2023 - ๐บ๐ธUnited States smustgrave
Laurii said someone is working on this just moving it so it doesn't get re-reviewed until the changes happen.
- last update
almost 2 years ago 29,431 pass, 1 fail - ๐บ๐ธUnited States tim.plunkett Philadelphia
tim.plunkett โ made their first commit to this issueโs fork.
- last update
almost 2 years ago 29,431 pass, 1 fail - last update
almost 2 years ago 29,444 pass - Status changed to Needs review
almost 2 years ago 5:32pm 16 June 2023 - ๐บ๐ธUnited States tim.plunkett Philadelphia
This should pass now. Had to move the deprecation to the method
- Status changed to RTBC
almost 2 years ago 6:12pm 16 June 2023 - ๐บ๐ธUnited States smustgrave
All green. Ran same test I did before and still appears to work. Moving back to RTBC.
- last update
almost 2 years ago Custom Commands Failed - ๐ซ๐ฎFinland lauriii Finland
I updated the deprecation message to deprecate this in 10.2.0 since I think it's too late to backport this to 10.1.x. I also removed the mention of
Drupal.behaviors.machineName.transliterate
to avoid recommending something that isn't necessarily intended as an API. We may want to ask the framework managers if we want to moveDrupal.behaviors.machineName.transliterate
into it's own API in future. - last update
almost 2 years ago 29,444 pass - last update
almost 2 years ago 29,444 pass - last update
almost 2 years ago 29,443 pass -
lauriii โ
committed 570710ad on 11.x
Issue #2662330 by Utkarsh_33, lauriii, hooroomoo, bnjmnm, tim.plunkett,...
-
lauriii โ
committed 570710ad on 11.x
- Status changed to Fixed
almost 2 years ago 10:12am 17 June 2023 - ๐ซ๐ฎFinland lauriii Finland
The previous commits revert few changes that were out of scope and not strictly required for the fix. I opened ๐ Generate machine names even faster Fixed as a follow-up.
Confirmed with @catch on Slack that he's fine with the library addition since that wasn't explicitly confirmed on the issue.
Committed 570710a and pushed to 11.x. Thanks!
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
AWESOME work here!
You know what would be a great complementary commit?
๐ Add config validation for the allowed characters of machine names Fixed
Then we'd have solved all fundamental problems with
machine_name
s in10.2.x
! ๐๐ค - ๐ฉ๐ชGermany Anybody Porta Westfalica
Also note โจ Strip useless "_" at beginning and end of JS-transliterated machine names Fixed which was affected by these changes.
@laurii:
This was committed to 11.x and marked fixed, but the deprecation message says:* @deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no
Doesn't this need to be backported / committed to 10.2.x then, or am I missing something? Or is the comment wrong?
Just wanted to ensure it's not forgotten... :) - ๐ฌ๐งUnited Kingdom longwave UK
@Anybody see https://www.drupal.org/about/core/blog/new-drupal-core-branching-scheme-... โ - 10.2.x will eventually be branched from 11.x, the branch is not open yet.
Automatically closed - issue fixed for 2 weeks with no activity.