-
Notifications
You must be signed in to change notification settings - Fork 0
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
test(apcd-cms): fp-1837 limit menu visibility by group #45
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Limit what nav items are shown to user based on their group. There should be a more parametric way to do this, so we can: - integrate this into core - rely on CMS page group perms, not code
TO DO: 1. Clone Core CMS nav menu markup. 2. Use new logic within that cloned markup. 3. Migrate to Core CMS: - nav can come as is - template tag need always return true
TO DO: 1. Clone Core CMS nav menu markup. 2. Use new logic within that cloned markup. 3. Migrate to Core CMS: - nav can come as is - template tag need always return true
TO DO: 1. [x] Clone Core CMS nav menu markup. 2. [x] Use new logic within that cloned markup. 3. Migrate to Core CMS: - nav can come as is - template tag need always return true
wesleyboar
changed the title
test(apcd-cms): fp-1837 overwrite cms nav poc
test(apcd-cms): fp-1837 limit menu visibility by group
Nov 10, 2022
wesleyboar
added a commit
to TACC/Core-CMS
that referenced
this pull request
Nov 10, 2022
Manage menu item visibility by group. A minimal noop that serves as an example for Core-CMS-Custom apps. Example Usage: TACC/Core-CMS-Custom#45
wesleyboar
added a commit
to TACC/Core-CMS
that referenced
this pull request
Nov 10, 2022
Manage menu item visibility by group. A minimal noop that serves as an example for Core-CMS-Custom apps. Example Usage: TACC/Core-CMS-Custom#45
Strmiska
approved these changes
Nov 10, 2022
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.
Pulled and tested locally. LGTM!
fnets
reviewed
Nov 10, 2022
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.
LGTM! Great turnaround
This was referenced Nov 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Implement custom logic in CMS nav template.
Related
Changes
Testing
Important
You must re-build and re-up containers after checking out this branch.
Setup
As admin,
SUBMITTER_USER
SUBMITTER_ADMIN
APCD_ADMIN
submissions
)administration
)Steps
In a private window, so you can check admin steps in your main window.
SUBMITTER_USER
.SUBMITTER_ADMIN
.APCD_ADMIN
.APCD_ADMIN
group).UI
Notes
Next: Add the same template logic in CMS, and add a template tag of the same name, but whose
simple_tag
always returnsTrue
, and that has documentation that the template tag may be overwritten (like in APCD). Then confirm that APCD is unaffected when using the new Core CMS image that has that.