-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UHF-8910 menu publish #598
Conversation
…t have enabled translation.
Codecov Report
@@ Coverage Diff @@
## main #598 +/- ##
============================================
+ Coverage 12.74% 13.02% +0.27%
- Complexity 236 244 +8
============================================
Files 30 31 +1
Lines 902 929 +27
============================================
+ Hits 115 121 +6
- Misses 787 808 +21
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this one quite much and it worked well however the last bit is where I think there is still an issue. If you unpublish a node you shouldn't in my opinion be able to check the "Published in the main menu" checkbox because if that is checked the content is visible in the global navigation even if the node is unpublished.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes some of the problems and a separate ticket was created of the issues with translations: UHF-9083
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
UHF-8910
Local main navigation can have menu items with wrong translation (swedish navigation has finnish links)
Local main navigation shows links to unpublished nodes
Sote is a great candidate
for testing due to bunch of bad links under "disability services"-link in main menuWhat was done
Filter out links without proper translation from main navigation when incognito.
Filter out links related to unpublished node from main navigation when incognito.
How to recreate:
How to install
git pull origin dev
make fresh
composer require drupal/helfi_platform_config:dev-UHF-8910_menu_publish
make drush-updb drush-cr
How to test
Using SOTE:
Setup the site
Before the fix is installed, there should be 6 links under disability services
After installing the fix to sote, disability services should have only 1 link under it
Go and edit english main navigation. Check the links under disability services.
(#UHF-9012)
After publishing the nodes and menu links, incognito user should see correct links in main navigation
Manually test adding new item to main navigation:
one other translation
incognito
Result while browsing the translations:
Node status
The unpublished node should not be visible in the main navigation