Account created on 1 December 2010, almost 15 years ago
#

Merge Requests

More

Recent comments

🇸🇮Slovenia alecsmrekar

alecsmrekar created an issue.

🇸🇮Slovenia alecsmrekar

Looks great and makes sense, thanks!

🇸🇮Slovenia alecsmrekar

Looks great!

🇸🇮Slovenia alecsmrekar

Works well, thanks!

🇸🇮Slovenia alecsmrekar

Works well, thanks!

🇸🇮Slovenia alecsmrekar

None of these seem directly related to PHP 8.4, everything seems to be working regardless of these phpstan warnings

🇸🇮Slovenia alecsmrekar

alecsmrekar created an issue.

🇸🇮Slovenia alecsmrekar

alecsmrekar created an issue.

🇸🇮Slovenia alecsmrekar

alecsmrekar created an issue.

🇸🇮Slovenia alecsmrekar

alecsmrekar made their first commit to this issue’s fork.

🇸🇮Slovenia alecsmrekar

@catch I think that all feedback has been addressed. Which comment are you referring to exactly?

🇸🇮Slovenia alecsmrekar

Do you mean there are a total of three aliases after step 4, or is it two aliases?

A total of 3

🇸🇮Slovenia alecsmrekar

Test steps for the MR:

  1. drush si -y
  2. drush en -y content_translation trash
  3. Go to /admin/config/regional/language and add Spanish as a new language
  4. Go to /admin/config/regional/content-language and enable translation for Article nodes
  5. Add a new Article
  6. Add a Spanish translation
  7. Go to /es/node/1/delete, and ensure you can't submit the form. There should be a message saying "Moving translations to the trash bin is currently not supported. Unpublish the translation instead.".
🇸🇮Slovenia alecsmrekar

Test failure does not seem related:
Drupal\Tests\comment\Functional\CommentPreviewTest 0 passes 94s 1 fails

🇸🇮Slovenia alecsmrekar

The test fail does not seem related to this:
Drupal\Tests\image\Functional\ImageStylesPathAndUrlTest 0 passes 84s 1 fails

🇸🇮Slovenia alecsmrekar

I opened a merge request that addresses this with a new approach. Simply, if a menu link is not translatable, the code should not be setting a language on the menu link entity.

Here are some test step that fail without the fix applied:
1. drush si
2. drush en -y workspaces content_translation
3. drush uli
4. Go to /admin/config/regional/language and add the Spanish language
5. Go to /admin/config/regional/content-language and enable translation for "Content", ensure to check "Article" under the "Content" fieldset
6. Switch to the Stage workspace
7. Create a new Article, check "Provide a menu link" and save
8. Go to /es/node/{}/translations and add a Spanish translation
9. Note the revision ID: drush sqlq "select MAX(revision_id) from menu_link_content_field_revision"
10. Run drush php:eval 'echo \Drupal::entityTypeManager()->getStorage("menu_link_content")->loadRevision(REVISION_ID)->getMenuName()'

Notice that without the fix, the menu name comes blank, but with the fix, it prints the menu name.

🇸🇮Slovenia alecsmrekar

Thanks, I tested this and it works as expected, no errors :)

🇸🇮Slovenia alecsmrekar

I think I addressed all the feedback, but there seems to be something wrong with composer in the test pipeline.

🇸🇮Slovenia alecsmrekar

Opened a PR, and it seems the pipeline failure is not related to the changes made here.

🇸🇮Slovenia alecsmrekar

Thanks Andrei, I pushed another commit enabling validation on the path.

Production build 0.71.5 2024