When choosing to create a default menu tab, Views provides an option to create a parent menu tab. However, there does not appear to be any logic on the backend to actually make this occur.

Steps to reproduce:

  1. Edit the Content view (admin/structure/views/view/content/edit)
  2. Add a new page display
  3. Use path admin/content/test/one
  4. Add a menu item entry with Type "Default tab" and Menu link title "Child"
  5. For the Parent menu item, choose "Menu tab" with Menu link title "Parent"
  6. Save the View
  7. Visit admin/content expecting to see tab "Parent" appear. Scratch your head and curse the heavens because it's not there.
  8. Visit admin/content/test and note that the route does exist. It's just the local tasks that haven't been created properly.
CommentFileSizeAuthor
#104 2804195-104.patch13.49 KBtimohuisman
#99 2804195-99.patch13.44 KBcasey
#92 2804195-drupal-10.3.x.patch16.69 KBsocialnicheguru
#91 interdiff_88-91.txt654 bytessomersoft
#91 core-2804195-91.patch17.19 KBsomersoft
#88 2804195-88.patch17.17 KB_utsavsharma
#88 interdiff_87-88.txt1.63 KB_utsavsharma
#87 2804195-86.2.patch16.74 KBmaks oleksyuk
#86 2804195-86.patch7.48 KBmaks oleksyuk
#86 screen-local-tabs.png9.76 KBmaks oleksyuk
#83 After patch -81.png168.28 KBnikhilraut
#83 Before patch-81.png196.91 KBnikhilraut
#81 2804195-81.patch10.65 KBmedha kumari
#79 after-patch.png174.05 KBgayatri chahar
#79 before-patch.png168.56 KBgayatri chahar
#78 Screenshot ---after.png272.57 KBambikahirode
#78 Screenshot ---before.png311.47 KBambikahirode
#77 interdiff_74-77.txt3 KBranjith_kumar_k_u
#77 2804195-77.patch10.64 KBranjith_kumar_k_u
#76 interdiff_74-76.txt53.76 KBimmaculatexavier
#76 2804195-76.patch47.33 KBimmaculatexavier
#74 2804195-74.patch10.68 KBimmaculatexavier
#54 2804195-54.patch12 KBmanuel garcia
#50 2804195-50.patch13 KBmanuel garcia
#46 2804195-46-views-default-menu-item-not-created.patch3.6 KBhughworm
#42 interdiff-2804195-38-42.txt1.36 KBandrew-as
#42 2804195-42.patch13.03 KBandrew-as
#38 interdiff.txt600 bytessim_1
#38 2804195-38.patch12 KBsim_1
#37 2804195-37-test-only-FAIL.patch8.34 KBsim_1
#34 2804195-34.patch12.3 KBmanuel garcia
#34 interdiff-2804195-33-34.txt2.33 KBmanuel garcia
#33 2804195-33.patch9.97 KBmanuel garcia
#33 interdiff-2804195-26-33.txt3.29 KBmanuel garcia
#26 views-parent-local-task-2804195-26.patch11.09 KBjofitz
#26 interdiff-23-26.txt3.35 KBjofitz
#23 views-parent-local-task-2804195-23.patch11.13 KBshabana.navas
#18 content_view_tabs_2.png45.89 KBjohnbaines84
#18 content_view_tabs_1.png48.47 KBjohnbaines84
#17 views-parent-local-task-2804195-17.patch11.14 KBkevin.dutra
#17 interdiff.txt3.58 KBkevin.dutra
#13 interdiff.txt3.18 KBstefanos.petrakis
#13 views-parent-local-task-2804195-13.patch10.92 KBstefanos.petrakis
#7 d8dev.jpg158.38 KB_dcre_
#2 views-parent-local-task-2804195-2.patch10.68 KBkevin.dutra

Issue fork drupal-2804195

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kevin.dutra created an issue. See original summary.

kevin.dutra’s picture

Assigned: kevin.dutra » Unassigned
Status: Active » Needs review
StatusFileSize
new10.68 KB
jp.stacey’s picture

stefanos.petrakis’s picture

Issue tags: +Dublin2016

Working on this in the mentored core sprints in Dublin.
First step: Manual test (https://www.drupal.org/contributor-tasks/manual-testing)

_dcre_’s picture

I m working on this issue
dublin mentored sprints
i ll manually review the patch https://www.drupal.org/contributor-tasks/manual-testing

msti’s picture

I am working on the issue at the mentored Sprints @ DC Dublin, doing manual review as suggested here: https://www.drupal.org/contributor-tasks/manual-testing

_dcre_’s picture

StatusFileSize
new158.38 KB

Patch applies cleanly against latest 8.3.x dev
Problem reproduced and problem was solved
patch applied

stefanos.petrakis’s picture

+1 for applies cleanly and confirming that the bug is there and the patch does solve it.

msti’s picture

Status: Needs review » Reviewed & tested by the community

I followed the steps and reproduced the issue. The patch applies cleanly and solves the problem

msti’s picture

Status: Reviewed & tested by the community » Needs review

Switching back to 'Needs Review', we are going to test the coding standards

msti’s picture

This patch does not introduce any coding standards issues.
There are however some coding standards issues on the code indentified before applying the patch. Here is the relevant issue: https://www.drupal.org/node/2809251#comment-11677139

msti’s picture

Status: Needs review » Reviewed & tested by the community
stefanos.petrakis’s picture

StatusFileSize
new10.92 KB
new3.18 KB

Some code refactoring for:

a) Code readability: Using a variable for self-documenting the kind/role of the argument passed to the applyBaseRoute function.
b) Possible code smell: hard coding a string concatenation inside a function call, in two different places, seemed a bit problematic. Tried to make this a bit more robust.
c) Extending the applyBaseRoute function to cover two use cases by adding an extra argument to the parameters list of the function.

Providing an interdiff as well as a re-rolled patch.

stefanos.petrakis’s picture

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

I think one thing we should try here is some kind of integration test coverage. Having a real world example would add quite some value.
Note: The issue is also tagged as "needs manual testing", so we need to address that as well.

msti’s picture

I manually tested this patch and it works as expected.

kevin.dutra’s picture

StatusFileSize
new3.58 KB
new11.14 KB

I've updated the patch from #13 with the following changes:

  1. Fixed a bug with the parent ID not being correct.
  2. Removed a duplicate comment
  3. Fixed a few coding standards issues
johnbaines84’s picture

StatusFileSize
new48.47 KB
new45.89 KB
johnbaines84’s picture

Issue tags: +mssprintjan17

Manually tested the latest patch file as follows:

Set up a clean install of D8.3.x on simplytest.me
Followed steps to reproduce
Confirmed that "Parent" tab is not displayed on admin/content

content views tabs 1

Set up a D8.3.x install with the patch applied on simplytest.me
Followed steps to reproduce
Confirmed that "Parent" tab is correctly displayed on admin/content

content views tabs 2

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jhedstrom’s picture

Status: Needs review » Needs work

Patch no longer applies to 8.3.x or 8.4.x.

andypost’s picture

Issue tags: +Needs reroll
shabana.navas’s picture

Status: Needs work » Needs review
StatusFileSize
new11.13 KB

Patch re-rolled for 8.x-4.x and confirmed that it is working.

jonathanshaw’s picture

Status: Needs review » Needs work

So we still need an integration test per #15.
Then AFAICS we could remove the "Needs manual testing" tag.
It would also be good to have a separate test-only patch.

jofitz’s picture

Issue tags: -Needs reroll

Removed "Needs reroll" tag.

jofitz’s picture

Status: Needs work » Needs review
StatusFileSize
new3.35 KB
new11.09 KB

Corrected coding standard errors - namely short array syntax.

jofitz’s picture

Status: Needs review » Needs work

Setting back to Needs Work for the test mentioned in #15.

benjifisher’s picture

I think enough work has been done on this issue that it is time for an update to the summary. Whoever does that should decide whether the Novice tag is still appropriate.

benjifisher’s picture

Issue tags: -Baltimore2017
lendude’s picture

+++ b/core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
@@ -127,26 +146,51 @@ public function alterLocalTasks(&$local_tasks) {
+  protected function applyBaseRoute(ViewExecutable $view, $plugin_id, &$local_tasks, $is_parent = FALSE) {

this would make this an API change, any way to keep this inline to prevent overlapping method names with anything extending this somewhere?

And yeah, ++ to adding some functional tests

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

ivan berezhnov’s picture

Issue tags: +CSKyiv18
manuel garcia’s picture

Status: Needs work » Needs review
StatusFileSize
new3.29 KB
new9.97 KB

Here is a way we could go to avoid adding a new method (in order to avoid API changes, see #30).

manuel garcia’s picture

StatusFileSize
new2.33 KB
new12.3 KB

Here is a functional test by means of expanding DisplayPageWebTest::testPageDisplayMenu.

mortona2k’s picture

I'm unable to create a menu tab when the URL is dynamic.

In the summary example, if you switch the URL to node/%node/test/one (and add a contextual filter), you would expect to see the Parent tab on a node page but it's not happening.

Cache clear made it work.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

sim_1’s picture

StatusFileSize
new8.34 KB

Sitting with jhodgdon at PNW Drupal Summit and we reviewed the functional test. It looks like it's testing the bug. We weren't sure about the unit test and we didn't review the code patch.

We made a test-only patch to verify that the test fails without the patch.

sim_1’s picture

StatusFileSize
new12 KB
new600 bytes

We looked at the test results and noticed there was a coding standard problem with the patch on #34. So here's a new patch.

The last submitted patch, 37: 2804195-37-test-only-FAIL.patch, failed testing. View results

manuel garcia’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs tests

Going on a limb here and setting this to RTBC, we have reviewed tests now, I believe that's all that was still missing here?

jibran’s picture

andrew-as’s picture

StatusFileSize
new13.03 KB
new1.36 KB

I confirm that the problem was reproduced and patch works properly . I inserted small changes according used standards.

catch’s picture

Status: Reviewed & tested by the community » Needs work

@dawehner asked for integration tests in #15 and I still think this patch could use it - i.e. create the view and check the actual tabs show up.

manuel garcia’s picture

@catch I thought I added that on #34 - is this not what you mean?

dww’s picture

Status: Needs work » Reviewed & tested by the community

Indeed, that looks like exactly what that test is testing for. ;) And I confirmed the test survived subsequent re-rolls and is still present in #42.

Tentatively back to RTBC... (although, disclaimer: I haven't actually closely reviewed this, ran tests locally, manually tested, etc).

hughworm’s picture

I came across this problem when creating a view with two displays on 2 tabs, one of which is "Default menu tab" and "Normal menu item". The parent item was not created.
The paths were /foo/bar and /foo/baz so I'd expect the parent to be /foo.
The view also takes a nid parameter after the path so the "real" paths are /foo/bar/{arg_0} and /foo/baz/{arg_0}.
The code that constructs the parent URL was adding the "missing arguments" before constructing the parent path by trimming off the last bit of the path, so it ended up with /foo/bar and /foo/baz.
My fix is to prevent it adding "missing arguments" when constructing a parent path. Patch attached (generated from PhpStorm local history).

Status: Reviewed & tested by the community » Needs work
manuel garcia’s picture

Issue tags: -Needs manual testing

Thank you @dww for the manual testing.

Also thank you @hughworm for sharing your solution. However there is already a patch that a lot of people have participated in creating, and that includes the test coverage for the bug described in the issue summary.

A better way of helping would be testing if the latest patch solves your problem as well, reviewing it in comparison to what you did, and giving your opinion on it.

manuel garcia’s picture

Status: Needs work » Reviewed & tested by the community

Setting it back to RTBC, correct patch is #42.

manuel garcia’s picture

StatusFileSize
new13 KB

Re-uploading #42 for clarity.

manuel garcia’s picture

+++ b/core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php
@@ -71,7 +71,7 @@ public function getDerivativeDefinitions($base_plugin_definition) {
-      /** @var $executable \Drupal\views\ViewExecutable */
+      /* @var $executable \Drupal\views\ViewExecutable */

@@ -110,15 +128,17 @@ public function alterLocalTasks(&$local_tasks) {
-      /** @var $executable \Drupal\views\ViewExecutable */
+      /* @var $executable \Drupal\views\ViewExecutable */

Nit: Non related change, but in any case, core is standardizing on this format instead: /** @var \Drupal\views\ViewExecutable $executable */ (see #2305593: [policy] Set a standard for @var inline variable type declarations).

hughworm’s picture

Apologies @manuel-garcia I should have been clearer.

I had tried patch #42 without success. After applying that patch (and clearing caches) pages /foo/bar and /foo/baz loaded but with no menu tab, and the parent menu /foo was not created (and gave 404).

As I described in #46 I think having an hidden argument in each path (uid defaulted from the current user) causes the problem.

But after my additional patch at #46 the pages /foo and /foo/baz loaded as tabs, but ONLY after I manually added the /foo menu item. (/foo/bar gives 404, which I guess is correct).

andrew-as’s picture

@manuel-garcia, thanks for clarification. If we don't need in changes with accordance your comment #51, i think that we can return to patch in #38. In this case my comment can be reviewed as confirmation that bug was and it fixed by patch in #38.
@hughworm, i confirmed in my comments that bug was reproduced and patch in #38 its fixed. I checked it on fresh installation of D 8.6 and with reproducing of steps which were describe in issue. Possible that this patch doesn't cover all situations as in your case for example.

manuel garcia’s picture

StatusFileSize
new12 KB

Good point @andrew-as - re-uploading #38 here.

hughworm’s picture

@andrew-as and @manuel-garcia I tried again with just patch #38 applied and got the same result. I had to apply my patch from #42 to get it to work. Would you like me to roll a combined patch?

andrew-as’s picture

Maybe, make sense to create new child issue. @hughworm, you can place your patch here. And you could put more details into part of reproduce steps in its description. Is it more preferred? What do you think?

alexpott’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +needs

Sorry for taking so long to have a look at this. The issue summary still needs an update and it also would be great to a little bit more sub-system maintainer review.

The other thought that occurs to me is what about existing sites that have worked around the problem by creating a parent themselves via code or something? I.e. I think we need to think about backwards-compatibility and upgrade path. Even if the upgrade path is just to ensure that the views local task derivatives are re-generated.

jonathanshaw’s picture

alexpott’s picture

@jonathanshaw I'm not sure we need an upgrade path - I think we just need to consider it.

manuel garcia’s picture

Re #57

The other thought that occurs to me is what about existing sites that have worked around the problem by creating a parent themselves via code or something? I.e. I think we need to think about backwards-compatibility and upgrade path. Even if the upgrade path is just to ensure that the views local task derivatives are re-generated.

That is a good point... what would happen if there is already an existing parent local task and we apply this patch? If something breaks then we do need an upgrade path, otherwise I think we could just inform in the CR that existing sites working around the bug should consider removing the workarounds.

So we should manually test this scenario, to be on the safe side.

dawehner’s picture

I'm also a bit uneasy about the level of test coverage. While I see the point of the unit test, I think it mostly proves that the code behaves as it behaves :)

One amazing thing would be to list all the possible cases in the issue summary. We could then check whether all cases are covered by tests easily.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

maxplus’s picture

Thanks for the good work here, creating tabs from views is a really handy feature.
I tried only using patch from #54 on my 8.6.1 site but I'm unable to let views create the parent link in the menu of my choice,...
So I'm also using the workaround for now by creating a manual link using the menu interface of update hook

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

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

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

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.

semiaddict’s picture

Hi,
Patch #54 applied just fine on an 8.9.1 installation.
However, although the parent tab is correctly added, the child route doesn't seem to be created.

After applying the patch, clearing the cache, and following the "Steps to reproduce" in the issue summary, the admin/content/test URI works as expected, but admin/content/test/one returns a 404 page.
Since admin/content/test/one returns 404, a display created with the URI admin/content/test/two with a tab link will not have any tabs at all.

Here are the full steps to reproduce my scenario (the steps in bold are the added ones):

  1. Apply patch
  2. Clear cache
  3. Edit the Content view (admin/structure/views/view/content/edit)
  4. Add a new page display
  5. Use path admin/content/test/one
  6. Add a menu item entry with Type "Default tab" and Menu link title "Child"
  7. For the Parent menu item, choose "Menu tab" with Menu link title "Parent"
  8. Add a new page display
  9. Use path admin/content/test/two
  10. Add a menu item entry with Type "Tab" and Menu link title "Second Child"
  11. Save the View
  12. Visit admin/content expecting to see tab "Parent" appear. Scratch your head and curse the heavens because it's not there.and note that the tab "Parent" does exist.
  13. Visit admin/content/test and note that the route does exist. It's just the local tasks that haven't been created properly.
  14. Visit admin/content/test/one expecting to see the same page as admin/content/test/, but get a 404.
  15. Visit admin/content/test/two and note that the route does exist, but no tabs appear.

Looking at comment #52, it might be intentional that admin/content/test/one returns 404, but I would argue that it shouldn't, otherwise I don't see the point of setting a URI here.

murz’s picture

I think, that this is right behavior, when default tab url don't show duplicated page of parent url, but with different url. This is good for prevent showing same info on two different urls.

But showing 404 error is not so good response for this. Better way is making 301 redirect to parent url from default tab url, is it hard to implement?

And problem 15 from #67 is not reproduced on my setup, I see both tabs on page of "two" tab.

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.

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

larowlan’s picture

acbramley’s picture

Status: Needs review » Needs work

Sounds like this Needs work based on #67, I also don't think we need a child issue to fix @hughworm's issues from #46. To me that sounds like a bug with this issue.

I've closed #2958746: Views does not create local tasks that have a missing argument in favor of fixing that bug here as well.

immaculatexavier’s picture

Status: Needs work » Needs review
StatusFileSize
new10.68 KB

Rerolled patch against 9.4.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

immaculatexavier’s picture

StatusFileSize
new47.33 KB
new53.76 KB

Rerolled patch for #74 against 9.4.
Fixed custom commands.

ranjith_kumar_k_u’s picture

StatusFileSize
new10.64 KB
new3 KB
ambikahirode’s picture

StatusFileSize
new311.47 KB
new272.57 KB

patch in#77 applies successfully and working fine for me on local 9.5.

gayatri chahar’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new168.56 KB
new174.05 KB

I have successfully applied patch #77 on drupal 9.5.x-dev and its working for me
Thanks @ranjith_kumar_k_u. Adding screenshots for the refrence

quietone’s picture

Status: Reviewed & tested by the community » Needs work

Reviewing RTBC issues to check they pass the core gates.

@gayatri chahar, thanks for the interest in this issue. However, a working patch is not sufficient to set the status to RTBC. I am not sure why you have added a second set of screenshots for the same patch. Ah, I see they are for a different theme. When adding screenshots, it is good practice to explain what you did. Also, screenshots should be placed in the Issue Summary to help everyone working on the issue.

This issue still needs: Needs issue summary update, Needs subsystem maintainer review, Needs upgrade path.

Setting back to Needs work for those to be addressed.

medha kumari’s picture

Version: 9.5.x-dev » 10.0.x-dev
Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new10.65 KB

Reroll the patch #77 with Drupal 10.0.x

nikhilraut’s picture

Assigned: Unassigned » nikhilraut
nikhilraut’s picture

Assigned: nikhilraut » Unassigned
StatusFileSize
new196.91 KB
new168.28 KB

patch #81 applies successfully and working fine for me on on drupal 10 and 10.1

prasanth_kp’s picture

For me patch #81 failed to apply on 10.0.x-dev

nod_’s picture

Version: 10.0.x-dev » 10.1.x-dev
Status: Needs review » Needs work

D10 version needed
At this time we need a D10.1.x patch or MR for this issue.

And per #80 This issue still needs: Needs issue summary update, Needs subsystem maintainer review, Needs upgrade path.

maks oleksyuk’s picture

StatusFileSize
new9.76 KB
new7.48 KB

Hi there!
Patch #81 is accepted as an error for me, but I took it as a base and tweaked it a bit after looking at comment #67.
So the attached patch contains changes from patch #81 and temporarily implemented logic for setting up local tabs.
The patch contains improvements in line with the new features provided by PHP 8
This patch does not contain tests, and needs to be written and tested, or improved.
Patch Tested on Drupal version 9.5.0 and 10.0

Steps for testing that I carried out:
1. Create a view with the path /user/test/default/tab_1
2. Add a menu item with type "TITLE TAB" and link name "DEFAULT MENU TAB 1"
3. Create a new display view, or another view
4. Add a menu item Menu tab with the path /user/test/default/tab_2 and the name "DEFAULT MENU TAB 2"
5. Save view and clear cache
6. Go to the user's page and see the result as in the picture

P.S. Any advice/criticism on the comment would be appreciated

maks oleksyuk’s picture

StatusFileSize
new16.74 KB

Hi all again, looking through this patch I found that when adding local tasks to an existing route, they don't show up, so I updated the patch for that, also added the tests from patch #81

However, I still believe that this patch needs better tests, as well as code verification, maybe there is a better option to solve this problem

_utsavsharma’s picture

Status: Needs work » Needs review
StatusFileSize
new1.63 KB
new17.17 KB

Fixed CCF for #87.
Please review.

Status: Needs review » Needs work

The last submitted patch, 88: 2804195-88.patch, failed testing. View results

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

somersoft’s picture

StatusFileSize
new17.19 KB
new654 bytes

Found that the block disappeared using #88 patch with D9.5.x.
Updated the patch file to restore it.

socialnicheguru’s picture

StatusFileSize
new16.69 KB

Took patch 88 and updated it to Drupal 10.3

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

mandclu’s picture

I put the patch from #92 into an MR, and also incorporated the change introduced in #91, since I did observe that the tabs were missing, and that fixed it for me.

All that being said, I don't see the expected menu item after applying these changes, so leaving the issue as Needs work.

mandclu’s picture

UPDATE: I realized, in working on this more, that I was actually trying to solve a different use case: have the default menu tab provide a normal menu item. As such, I wasn't really testing the right things. I'll continue fixing my own problem in #3467262: For a page display designated "Default menu tab" a parent menu link is not created.

That said, there's still some work needed to get the unit tests passing here. I was able to fix the linters, but it looks like a little more work is needed to get the PHPUnit checks passing.

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

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

casey’s picture

StatusFileSize
new13.44 KB

Rebased the MR.

Attached patch is a snapshot of the latest state of the MR for safe usage with composer patches.

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

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

oily’s picture

Fixed PHPSTAN and PHPCS. The unit test is failing.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

timohuisman’s picture

StatusFileSize
new13.49 KB

Attached patch is a snapshot of the latest state of the MR for safe usage with composer patches.

lendude’s picture

Just want to reiterate what was said in #15, having an integration level test would be really great here. Just a preconfigured View with tabs and just check they show up, something along those lines.