Comments

kmbremner created an issue. See original summary.

kmbremner’s picture

StatusFileSize
new2.57 KB
kmbremner’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: 3120567-menu-local-tasks.patch, failed testing. View results

kmbremner’s picture

StatusFileSize
new3.53 KB

Update hash in classy test so that test passes

kmbremner’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 5: update_comments_in_menu_local_tasks-3120567-5.patch, failed testing. View results

kmbremner’s picture

Also updated core/themes/bartik/templates/classy/navigation/menu-local-tasks.html.twig

Thanks to longwave for the pointer.

kmbremner’s picture

kmbremner’s picture

Status: Needs work » Needs review

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

jerseycheese’s picture

Status: Needs review » Needs work

@humbl_dev

I applied the patch on a clean D9 install, and everything looks fine except that it looks like the hash needs to be updated again to pass ConfirmClassyCopiesTest.

ramya balasubramanian’s picture

Assigned: Unassigned » ramya balasubramanian
shaktik’s picture

Issue summary: View changes
StatusFileSize
new122.77 KB

Patch fails on D9 attached screenshot.

shaktik’s picture

Issue summary: View changes

d9

ramya balasubramanian’s picture

Assigned: ramya balasubramanian » Unassigned
Status: Needs work » Needs review
StatusFileSize
new4.22 KB
new178.65 KB

Hi @humbl_dev, @jerseychesse,
I have updated the same patch and screenshots for the Drupal 9.1 dev version. Please have a look. Can you please tell me how you guys generated the hash key for menu-local-tasks.html.twig file, I have tried but no luck. So finally I have used the '1e0112bb83f6073f6fc44a94b43dd74b' and it was passed in Drupal 9.1 dev.

ramya balasubramanian’s picture

Hi @humbl_dev,
Please have a look and let me know if there are any issues

raunak.singh’s picture

Assigned: Unassigned » raunak.singh
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new23.37 KB

Hi @Ramya Balasubramanian,

Patch looks good to me there is no error found.
moving this to RTBC.

raunak.singh’s picture

Assigned: raunak.singh » Unassigned
xjm’s picture

Status: Reviewed & tested by the community » Needs review

Thanks for working on this issue.

@shaktik, posting screenshots of your codebase or CLI does not advance the issue, since the automated testing infrastructure tells us whether the patch applies correctly. You can also validate whether the patch works on multiple branches by clicking the "Add test/retest" link under the patch.

Similarly for @Raunak.singh, we don't need screenshots of tests passing for the same reason. DrupalCI will tell us that too. :)

I've removed credits for screenshots of the above CLI results. In the future, you can get credit for issues by reading the issue to understand its purpose, and posting your review or testing of that purpose.

Thank you both and I hope this helps you to provide reviews for your next issue.

Meanwhile, this patch is fixing a documentation bug, so it is allowed even for Classy which has a strict BC policy. I also confirmed with @bnjmnm that adding the hash to the test like this is the correct solution for a situation where an allowed change is being made to the actual Classy template. Good work!

The one thing we need to do is make sure we update the other themes that also have this bug. After applying the patch, I still find a couple places with the same docs bug, in Umami, Stable 9, and the System module's own template:

[ibnsina:maintainer | Wed 14:06:50] $ grep -r "secondary: HTML list items representing primary tasks." *
core/profiles/demo_umami/themes/umami/templates/components/navigation/menu-local-tasks.html.twig: * - secondary: HTML list items representing primary tasks.
core/modules/system/templates/menu-local-tasks.html.twig: * - secondary: HTML list items representing primary tasks.
core/themes/stable9/templates/navigation/menu-local-tasks.html.twig: * - secondary: HTML list items representing primary tasks.

Let's fix those too. Thanks!

ramya balasubramanian’s picture

Assigned: Unassigned » ramya balasubramanian
ramya balasubramanian’s picture

Hi @xjm,
I have updated the same docs bug, in Umami, Stable 9, and the System module's own template. Updated the patch and please have a look.

ramya balasubramanian’s picture

Assigned: ramya balasubramanian » Unassigned

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

ranjith_kumar_k_u’s picture

StatusFileSize
new31.03 KB

#22 looks good ,it corrects the secondary variable comment in menu-local-tasks.html.twig
( core/modules/system/templates/menu-local-tasks.html.twig
core/profiles/demo_umami/themes/umami/templates/components/navigation/menu-local-tasks.html.twig
core/themes/bartik/templates/classy/navigation/menu-local-tasks.html.twig
core/themes/claro/templates/menu-local-tasks.html.twig
core/themes/classy/templates/navigation/menu-local-tasks.html.twig
core/themes/seven/templates/menu-local-tasks.html.twig
core/themes/stable/templates/navigation/menu-local-tasks.html.twig
core/themes/stable9/templates/navigation/menu-local-tasks.html.twig )
after patchRTBC

ranjith_kumar_k_u’s picture

Status: Needs review » Reviewed & tested by the community
alexpott’s picture

Version: 9.2.x-dev » 9.1.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed 469ed5d230 to 9.2.x and d2debc75ec to 9.1.x. Thanks!

@ranjith_kumar_k_u please read #20 re-posting of screen shots. Similarly removed credit.

Now that Olivero has landed we need to update that as well. I've done that on commit.

diff --git a/core/themes/olivero/templates/navigation/menu-local-tasks.html.twig b/core/themes/olivero/templates/navigation/menu-local-tasks.html.twig
index 4a138bd016..ad43d52a07 100644
--- a/core/themes/olivero/templates/navigation/menu-local-tasks.html.twig
+++ b/core/themes/olivero/templates/navigation/menu-local-tasks.html.twig
@@ -5,7 +5,7 @@
  *
  * Available variables:
  * - primary: HTML list items representing primary tasks.
- * - secondary: HTML list items representing primary tasks.
+ * - secondary: HTML list items representing secondary tasks.
  *
  * Each item in these variables (primary and secondary) can be individually
  * themed in menu-local-task.html.twig.

  • alexpott committed 469ed5d on 9.2.x
    Issue #3120567 by humbl_dev, Ramya Balasubramanian, xjm: Variable...

  • alexpott committed d2debc7 on 9.1.x
    Issue #3120567 by humbl_dev, Ramya Balasubramanian, xjm: Variable...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.