Observation/FOUR-13323: Category is displayed without the correct permission #6129
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.
Issue & Reproduction Steps
Note
After sync with Claudia Iriarte, an user that have access to create/edit a process should view process categories.
I noticed two issues:
The tabs in the top are getting the wrong labels because a problem with the indexes of the tabs after introduce the Templates feature (notice that you didn’t added permissions for templates, and you can see a Templates tab, but after clicking the templates tab, the list showing is the list of Categories instead of Templates. The same happens with the Categories tab, that should be Archived processes tab. After clicking the wrong categories tab the list showed is the list of archived processes)
The second issue is related to the permissions assignation in the permissions tab under user edit section. When selecting the Create/Edit Process permission we should activate the View categories automatically, in the same way it happens when Create Process permission is selected, the Edit Process permission also gets selected automatically. I have synchronized with Claudia Iriarte to fix both issues.
Solution
Working videos
Screen.Recording.2024-01-31.at.16.15.36.mov
Screen.Recording.2024-01-31.at.17.12.43.mov
How to Test
Scenario fix 1
Scenario fix 2
Related Tickets & Packages
Code Review Checklist