- 🇺🇸United States smustgrave
Did not review but seems there are test failures from last patch.
Tagging for issue summary update for the proposed solution.
- Status changed to Needs review
over 1 year ago 7:31am 24 July 2023 - last update
over 1 year ago 29,856 pass, 18 fail - 🇫🇮Finland sokru
Used the redirect approach from #2752345: Visiting translation adding page for existing translation throws an InvalidArgumentException → and updated the issue summary.
The last submitted patch, 83: 2137815-83.patch, failed testing. View results →
- 🇫🇮Finland sokru
Rookie mistake on previous patch. Also the permissions needed a bit of tweaking. For some reason the redirect (302) statuscode was not possible to catch with
$this->assertSession()->statusCodeEquals
so used a bit different approach. - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,855 pass, 10 fail The last submitted patch, 87: 2137815-87.patch, failed testing. View results →
- last update
over 1 year ago 29,856 pass, 9 fail The last submitted patch, 89: 2137815-89.patch, failed testing. View results →
- last update
over 1 year ago 29,876 pass, 1 fail - 🇫🇮Finland sokru
Rescoped the test for content_translation where the change is.
The last submitted patch, 91: 2137815-91.patch, failed testing. View results →
- last update
over 1 year ago Custom Commands Failed - 🇫🇮Finland sokru
Maybe these where left off from #3232673: \Drupal\Core\Entity\EntityInterface::label() can return a NULL → .
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,865 pass, 2 fail The last submitted patch, 94: 2137815-94.patch, failed testing. View results →
- last update
over 1 year ago 29,879 pass - Status changed to RTBC
over 1 year ago 11:00pm 18 August 2023 - 🇺🇸United States smustgrave
Go to content admin and use the filters to find the node I want to translate. Click its Translation operation link.
Add a French translation and save it. This takes me back to the content admin page.
Wait, I forgot to change something! But I can't see my node any more as it's not in the first page of results. I know, I'll just press Back and that'll get me back to the form I was just at, right?Confirmed the issue following these steps.
Applying patch #94 resolved the issue for me.Issue summary matches the solution where I'm redirected to translation overview
Patch also appears to have test coverage.RTBC+1
- last update
over 1 year ago 30,049 pass - last update
over 1 year ago 30,049 pass, 1 fail The last submitted patch, 94: 2137815-94.patch, failed testing. View results →
- last update
over 1 year ago 30,056 pass - last update
over 1 year ago 30,058 pass - last update
over 1 year ago 30,060 pass - last update
over 1 year ago 30,060 pass - last update
over 1 year ago 30,100 pass - Status changed to Needs work
over 1 year ago 5:48am 31 August 2023 - 🇳🇿New Zealand quietone
I'm triaging RTBC issues → . I read the IS and then read the patch. I did not read all the comments or review or test the patch.
Thanks everyone for working on this old bug!
I found some things that should be fixed before this is ready for commit.
-
+++ b/core/modules/content_translation/src/Controller/ContentTranslationController.php @@ -362,6 +362,12 @@ public function add(LanguageInterface $source, LanguageInterface $target, RouteM + // If the entity already has the target translation, + // redirect to the translation overview page.
This is not wrapped correctly. It should be to 80 columns.
-
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php @@ -120,6 +120,23 @@ protected function doTestBasicTranslation() { + // Assert that once a translation exists, the recurring calls to route is + // redirected to the translations overview page.
I think we can remove the part about 'calls to route'. How about, "Asserts that once a translation exists the user is redirected to the translations overview page.".
-
+++ b/core/modules/content_translation/tests/src/Functional/ContentTranslationUITestBase.php @@ -120,6 +120,23 @@ protected function doTestBasicTranslation() { + $this->assertStringContainsString('/entity_test_mul_changed/manage/1/translations', $this->getUrl(), 'Correct path after redirect'); ... + $this->assertStringContainsString('/entity_test_mul_changed/manage/1/translations', $this->getUrl(), 'Correct path after redirect');
Messages are no longer used in assertion, unless needed for clarification as in a for loop.
Also, this should also have a fail test. Therefore setting to NW. This is close!
-
- Status changed to Needs review
about 1 year ago 11:35am 29 November 2023 - 🇫🇮Finland sokru
The attached patch should handle the issues found on #100. Also included a patch that shows the failing.
Also tried to trim the summary of the issue to first phrase on the issue summary. - Status changed to Needs work
about 1 year ago 11:47am 29 November 2023 The Needs Review Queue Bot → tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request → . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- last update
about 1 year ago 30,684 pass - last update
about 1 year ago 30,682 pass, 3 fail - First commit to issue fork.
- Merge request !5591[#2137815] InvalidArgumentException: Invalid translation language specified. → (Open) created by djsagar
- Status changed to Needs review
about 1 year ago 12:52pm 29 November 2023 - 🇮🇳India djsagar
Re-roll & Convert Patch #101 into MR. Please have a look.
- Status changed to RTBC
about 1 year ago 2:27pm 29 November 2023 - 🇺🇸United States smustgrave
#101 applies cleanly, shows the test failures, and appears to have address.
The MR is a reroll of the test-only patch
- last update
about 1 year ago 30,688 pass - last update
about 1 year ago 30,681 pass, 2 fail - last update
12 months ago 30,688 pass - last update
12 months ago 30,696 pass - last update
12 months ago 30,697 pass - last update
12 months ago 30,698 pass - last update
12 months ago 30,712 pass - last update
12 months ago 30,726 pass - last update
12 months ago 30,766 pass - last update
12 months ago 25,929 pass, 1,809 fail - last update
12 months ago 25,879 pass, 1,796 fail - Status changed to Needs work
12 months ago 4:54am 22 December 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
The MR shows fails https://git.drupalcode.org/issue/drupal-2137815/-/pipelines/56688/test_r... for content translation tests, so that feels like it might be a genuine issue
- Status changed to RTBC
12 months ago 9:13am 22 December 2023 - 🇫🇮Finland sokru
@larowlan as mentioned on #106, "The MR is a reroll of the test-only patch". The patch still applies and passes the tests.
- Status changed to Needs work
12 months ago 9:08pm 22 December 2023 - 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
#101 has 1800 fails
Can we move to an MR now for faster testing
- Status changed to RTBC
11 months ago 9:33am 7 January 2024 - 🇫🇮Finland sokru
Tests on https://git.drupalcode.org/project/drupal/-/merge_requests/5591 now pass so setting the status back to RTBC.
- Status changed to Needs work
11 months ago 11:14am 7 January 2024 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Added some review comments. The most important of which is:
Is this the correct behaviour? The original request for this behaviour mentioned at least adding a message telling the user what had happened. But I don't understand the rationale for going to the translation overview page instead of the edit page for the translation which is surely closer to the user intended.