Problem/Motivation

The Navigation Top Bar was hidden from the UI as it was is alpha experimental in #3401826: [PLAN] Top contextual bar.

Proposed resolution

The Navigation Top Bar has closed all the Stable blockers and it's ready to be able to be enabled again via the UI. So I'm creating this issue to revert #3401826: [PLAN] Top contextual bar and make sure that the the Top Bar is enabled when the Navigation is.

The feature flag will be marked as obsolete and will be removed in the future.

User interface changes

The Navigation Top Bar will be enabled when the Navigation is, so it always adds the Top Bar.

Release notes snippet

CommentFileSizeAuthor
#24 3507866-nr-bot.txt91 bytesneeds-review-queue-bot

Issue fork drupal-3507866

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

ckrina created an issue. See original summary.

ckrina’s picture

Title: Show the Navigation Top Bar in 11.1.x and 10.4.x » Show the Navigation Top Bar in the Extend page
catch’s picture

If the top bar itself is ready to go, should we not remove the feature module and always enable it when navigation is enabled? It's only a feature toggle anyway.

quietone’s picture

Version: 11.1.x-dev » 11.x-dev
lauriii’s picture

Yep, we should just get rid of the module.

ckrina’s picture

Title: Show the Navigation Top Bar in the Extend page » Enable the Navigation Top Bar when Navigation is enabled
Issue summary: View changes

Thanks both, doing all in one issue will make it easier. I've updated the title&issue summary.

@plopesc just mentioned that it'd be great to get #3501332: Display content moderation state in the Navigation Top Bar merged in first. Not a blocker, but it's make things easier.

plopesc’s picture

Would be great to have this enabled by default just removing the flag module.

Just a couple of questions.

For sites where the flag module is already enabled, how should we proceed? Just removing the module would cause an error. On the other hand, this was an alpha module within an experimental one, so people who enabled it should be able to manage this scenario.

Navigation is used in Drupal CMS, where Gin Toolbar is enabled as well. Removing the flag would automatically enable both top bars for sites using the 1.x branch, I think.

These 2 questions, and maybe others I missed, make me think that we might need a 2 steps path.

catch’s picture

I think there's two parts:

1. Ignore the feature module in navigation - should be removing a condition or two.

2. We can mark the feature module itself obsolete https://www.drupal.org/docs/core-modules-and-themes/deprecated-and-obsolete

For #2, need to add a post update that self-uninstalls the module, and a hook_requirements() that prevents it being installed. Then we can eventually delete the module when all possible sites have had to update to the version that made it obsolete (probably in 12.x). I don't know if there are any currently obsolete modules in core, probably not, but there should be in either 10.x or 9.5.x branches to compare against.

catch’s picture

I think it's fine to do the two parts either in this issue on in two issues - since the module is hidden there's no user-facing confusion to worry about, we just want to enable it for everyone and clean it up safely for any sites that enabled it already.

plopesc’s picture

Issue summary: View changes
Status: Active » Needs review

Created MR that removes the checks for the module flag and marks it as obsolete.

Added a couple of questions to the MR about the bureaucracy of the process of marking the module as obsolete.

plopesc’s picture

Title: Enable the Navigation Top Bar when Navigation is enabled » [PP-1] Enable the Navigation Top Bar when Navigation is enabled
Status: Needs review » Postponed

Postponing on #3508199: Navigation Top Bar accessibility issues found by Nightwatch tests since some accessibility issues were found. See https://git.drupalcode.org/issue/drupal-3507866/-/jobs/4431574#L2723

Besides that, there is another Kernel test failing reporting something related to navigation_top bar module tests. Those tests were removed as part of this MR. Tried to reproduce locally and the test is passing. See https://git.drupalcode.org/issue/drupal-3507866/-/jobs/4431573#L659
Any idea about how this test could be addressed?

berdir’s picture

self uninstall can be a bit of a problem, at least for regular numbered update functions but I think for post updates too.

The problem is that Drupal stores information about executed updates in key value storage. But if a module uninstalls itself, it results in a situation where drupal then stores that for a module that is no longer installed and won't be cleaned up. For regular updates, it may then result in warnings, post updates less so, but might still end up with a little bit of cruft in the database. I'd consider moving it to navigation module just to be extra sure.

plopesc’s picture

Thank you for your feedback @berdir.

Moved the post_update hook to the parent module to reduce possible frictions.

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

m4olivei’s picture

I did a static review and adjusted some tiny things. The main change was to remove the reference to navigation_top_bar in phpunit.xml.dist, which I believe was causing the test failures. We'll see.

m4olivei’s picture

Title: [PP-1] Enable the Navigation Top Bar when Navigation is enabled » Enable the Navigation Top Bar when Navigation is enabled
Status: Postponed » Needs work

The issue that we're postponed on, #3508199: Navigation Top Bar accessibility issues found by Nightwatch tests has been resolved. Marking this as needs work. Will merge the latest 11.x into the branch and see where we're at.

berdir’s picture

One nitpick on the description, then this looks good to me.

m4olivei’s picture

Issue tags: +Navigation stable

Discussed with @plopesc and @ckrina today. The Top Bar is a Stable blocker. This issue will be needed to mark Navigation as stable. Adding Navigation stable blocker tag.

m4olivei’s picture

Issue tags: -Navigation stable +Navigation stable blocker
berdir’s picture

This had a test fail on some performance metrics, those have been removed in HEAD, needs a rebase.

plopesc’s picture

Status: Needs work » Needs review

Branch rebased and MR is green. Back to NR.

berdir’s picture

Status: Needs review » Reviewed & tested by the community

Changes look good to me.

Since this was extra-experimental and hidden, not sure if this needs a change record?

needs-review-queue-bot’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new91 bytes

The Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

plopesc’s picture

Status: Needs work » Reviewed & tested by the community

MR rebased. Back to RTBC

  • catch committed e6c6e9bb on 11.x
    Issue #3507866 by plopesc, m4olivei, ckrina, berdir, catch: Enable the...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x, thanks!

Status: Fixed » Closed (fixed)

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

catch’s picture