Grant author and editor roles permissions to Navigation module once merged in core

Created on 16 February 2024, 11 months ago
Updated 10 August 2024, 6 months ago

Problem/Motivation

Catched problem #3421505-6: Remove unwanted dependency on toolbar module brought back by accident

Steps to reproduce

Proposed resolution

Grant Author + Editor roles to have the access to Navigation once Toolbar module is replaced by new https://www.drupal.org/project/navigation module in core

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Umami 

Last updated 27 days ago

Created by

🇷🇺Russia kostyashupenko Omsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @kostyashupenko
  • Status changed to Active 7 months ago
  • First commit to issue fork.
  • Merge request !8929Enables navigation module for umami → (Open) created by markconroy
  • Status changed to Needs review 6 months ago
  • 🇮🇪Ireland markconroy

    Merge request for this issue: https://git.drupalcode.org/project/drupal/-/merge_requests/8929/diffs

    ---
    Thanks to Code Enigma for sponsoring my time to work on this.

  • Pipeline finished with Failed
    6 months ago
    Total: 1820s
    #234036
  • Status changed to RTBC 6 months ago
  • 🇺🇸United States smustgrave

    Verified with MR applied and doing a fresh install navigation is working for the users.

    Re-ran nightwatch test and it was a random failure.

  • Status changed to Needs work 6 months ago
  • 🇫🇷France nod_ Lille

    we should probably remove the toolbar module from the installed modules if we're using navigation.

  • Status changed to Needs review 6 months ago
  • 🇮🇪Ireland markconroy

    Toolbar removed.

    ---
    Thanks to Code Enigma for sponsoring my time to work on this.

  • Pipeline finished with Failed
    6 months ago
    #246845
  • Status changed to Needs work 6 months ago
  • 🇫🇷France nod_ Lille

    and we'd need to remove the associated permissions in the different roles

  • Status changed to Needs review 6 months ago
  • 🇮🇪Ireland markconroy

    Dammit. There's not such thing as a quick win in Drupal!

    Ready for review again.

  • Pipeline finished with Failed
    6 months ago
    Total: 1869s
    #246910
  • Pipeline finished with Failed
    6 months ago
    #246944
  • Pipeline finished with Failed
    6 months ago
    Total: 551s
    #246988
  • Pipeline finished with Failed
    6 months ago
    Total: 496s
    #247008
  • First commit to issue fork.
  • Pipeline finished with Success
    6 months ago
    Total: 562s
    #247114
  • Observed test failures, go through the logic make changes to test case, however left comment on specific code of change.

    Pipeline passed successfully & MR is mergeable now..

  • 🇮🇪Ireland markconroy

    @pooja_sharma thanks for working on this. I think instead of removing that test, we should have a clause in it that uninstalls the navigation module and enables the toolbar module instead.

    Or else we'll need a follow-up issue to place that message somewhere else and update the test to reflect the new position of it.

  • Pipeline finished with Failed
    6 months ago
    Total: 136s
    #247971
  • Pipeline finished with Success
    6 months ago
    Total: 614s
    #247979
  • @markconroy thanks for the suggestions, uninstalled navigation module, enabled the toolbar module along with added comment as well

    PLease review, Keeping it in NR (prev state)

  • 🇮🇪Ireland markconroy

    Thanks for your continued work @pooja_sharma, but we can't uninstall navigation and install toolbar. If we do that we are back to the exact same state that Drupal core is currently in. The point of this issue to to install navigation and to stop using toolbar.

    I'll revert your commits.

    ---
    Thanks to Code Enigma for sponsoring my time to work on this.

  • Pipeline finished with Canceled
    6 months ago
    Total: 219s
    #248785
  • Pipeline finished with Failed
    6 months ago
    Total: 452s
    #248793
  • 🇮🇪Ireland markconroy
    1. Remove toolbar from modules to enable in demo_umami.info.yml
    2. Add navigation to modules to enable in demo_umami.info.yml
    3. Move "This site is intended for demonstration purposes" message from toobar to page_top
    4. Rename 'toolbar-warning' library and classes to 'demo-profile-warning' and classes
    5. Remove 'access toolbar' from permissions in testDemonstrationWarningMessage test
    6. Update permissions for author and editor

    ---
    Thanks to Code Enigma for sponsoring my time to work on this.

  • Pipeline finished with Success
    6 months ago
    Total: 543s
    #248835
  • 🇮🇪Ireland markconroy

    And (hopefully) finally: Updated the CSS so there is less of it, it's easier to read and we have the same CSS for small screens and large screens

    Small screen

    Large screen

  • Pipeline finished with Success
    6 months ago
    Total: 699s
    #248866
  • 🇫🇷France nod_ Lille

    Code is looking good, asked for confirmation for the design/placement of the warning.

  • 🇬🇧United Kingdom kiwimind

    Couple of minor things I noticed, and a question.

  • Status changed to RTBC 6 months ago
  • 🇺🇸United States smustgrave

    Tested the current MR doing a fresh install of Umami

    Navigation toolbar appears to be installed and toolbar is not

    Menu is created, users have the permissions needed.

    Tried a few pages but didn't notice an issue.

    Code wise don't see any issue.

  • Status changed to Needs work 6 months ago
  • 🇺🇸United States smustgrave

    Seems everyone was saving at once!

  • 🇪🇸Spain ckrina Barcelona

    Good to see progress on this! But FYI we already have designs for the Umami message integration after putting some thoughts to it and following the design system we're working on, and it would be great that this would go with those. The left sidebar is supposed to hold all the site-wide information shown on the admin UI, so it doesn't make sense to throw it into the header of the site. Where would you show it int the front-end?

    I'd recommend keeping the permissions and the new designs into 2 separated issues so one doesn't block the other.

  • 🇪🇸Spain ckrina Barcelona

    Good to see progress on this! But FYI we already have designs for the Umami message integration 📌 Integrate Umami message Needs review after putting some thoughts to it and following the design system we're working on, and it would be great that this would go with those. The left sidebar is supposed to hold all the site-wide information shown on the admin UI, so it doesn't make sense to throw it into the header of the site. Where would you show it int the front-end?

    I'd recommend keeping the permissions and the new designs into 2 separated issues so one doesn't block the other.

  • Status changed to Needs review 6 months ago
  • 🇮🇪Ireland markconroy

    I'd recommend keeping the permissions and the new designs into 2 separated issues so one doesn't block the other.

    @ckrina in terms of moving this along quickly, how about we merge this MR "as is" so we have the new navigation module and we also have the "demo purposes" notification. And next week I'll start working on the 📌 Integrate Umami message Needs review (which I hadn't realised existed until now, sorry).

    Or would you prefer me to revert the commits that move the message? If so, it will mean we have tests involving the toolbar even though we don't have toolbar installed any more.

    I prefer the first option - get this merged, then do the follow-up.

  • Status changed to Needs work 6 months ago
  • 🇪🇸Spain ckrina Barcelona

    Or would you prefer me to revert the commits that move the message?

    As mentioned in my message, yes: not merging things that don't follow the designs would be how I would address things. If you want to move quickly I wouldn't do UI changes into this issue that is supposed to focus on "Grant author and editor roles permissions to Navigation module".

    If so, it will mean we have tests involving the toolbar even though we don't have toolbar installed any more.

    Then, maybe the other issue needs to get in before this one?

Production build 0.71.5 2024