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


| Comment | File | Size | Author |
|---|---|---|---|
| #19 | Screenshot 2024-08-09 at 10.52.32.jpg | 281.14 KB | markconroy |
| #19 | Screenshot 2024-08-09 at 10.52.22.jpg | 228.02 KB | markconroy |
Issue fork drupal-3421869
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
Comment #2
kostyashupenkoComment #3
kostyashupenkoComment #4
andypostComment #7
markconroy commentedMerge 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.
Comment #8
smustgrave commentedVerified with MR applied and doing a fresh install navigation is working for the users.
Re-ran nightwatch test and it was a random failure.
Comment #9
nod_we should probably remove the toolbar module from the installed modules if we're using navigation.
Comment #10
markconroy commentedToolbar removed.
---
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #11
nod_and we'd need to remove the associated permissions in the different roles
Comment #12
markconroy commentedDammit. There's not such thing as a quick win in Drupal!
Ready for review again.
Comment #14
pooja_sharma commentedObserved 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..
Comment #15
markconroy commented@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.
Comment #16
pooja_sharma commented@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)
Comment #17
markconroy commentedThanks 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.
Comment #18
markconroy commentedtestDemonstrationWarningMessagetest---
Thanks to Code Enigma for sponsoring my time to work on this.
Comment #19
markconroy commentedAnd (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
Comment #20
nod_Code is looking good, asked for confirmation for the design/placement of the warning.
Comment #21
kiwimind commentedCouple of minor things I noticed, and a question.
Comment #22
smustgrave commentedTested 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.
Comment #23
smustgrave commentedSeems everyone was saving at once!
Comment #24
ckrinaGood 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.
Comment #25
ckrina(edit: message sent twice)
Comment #26
markconroy commented@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 #3441100: Integrate Umami message (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.
Comment #27
ckrinaAs 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".
Then, maybe the other issue needs to get in before this one?