fix: [PDI-3099] - Enable Create Token button if all visible permissions selected - #11453
Conversation
…issions are selected individually (without using 'select all') and child-account is hidden
8cb54f6 to
c9364d3
Compare
Create Token button if all visible permissions selectedCreate Token button if all visible permissions selected
Cloud Manager UI test results🎉 472 passing tests on test run #4 ↗︎
|
There was a problem hiding this comment.
Thanks for finding and submitting this fix, Zhiwei! The PAT utils are... not a pretty section of code.
Confirmed the fix for accounts where the child account access perm is not visible and confirmed that there are no regressions to unrestricted parent accounts with the child account access perm.
| Prod | This Branch |
|---|---|
PATSelectBug.mov |
PATSelectFix.mov |
Approving this PR since the original PDI is fixed. While testing I might have discovered another existing issue in prod. When the user individually selects R/W for all perms when child account is hidden, rather than submit a * as the scope, it lists all the perms individually as rw. We had a similar issue with the 'Select All' button in the past.
cc @jaalah-akamai (or others) - Can you sanity check me on this? For ALL accounts, whether all R/W radio buttons are selected individually or the 'Select All' R/W is used, the scope should be a *, correct? Will make a follow up ticket, if so.
Confirm that I'm seeing this too only with a restricted parent account. |
|
Created M3-9070 for the issue mentioned above. I'm going to merge this PR as is. Thanks again @ChihweiLHBird! |
Cloud Manager E2E
|
||||||||||||||||||||||||||||
| Project |
Cloud Manager E2E
|
| Branch Review |
develop
|
| Run status |
|
| Run duration | 27m 52s |
| Commit |
|
| Committer | Zhiwei |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
1
|
|
|
2
|
|
|
0
|
|
|
478
|
| View all changes introduced in this branch ↗︎ | |
…ions selected (linode#11453) * fix: Enable `Create Token` button if all visible perms selected * Added changeset: `Create Token` button becomes disabled when all permissions are selected individually (without using 'select all') and child-account is hidden * Update the in-line doc


Description 📝
This is to fix the issue where the
Create Tokenbutton becomes disabled when the child-account is hidden and all permissions are individually selected, without using select all options.Feel free to add a Jira ticket to my PR title if you would like to.
Changes 🔄
List any change(s) relevant to the reviewer.
excludedScopesFromSelectAllwith constant values from the map.Preview 📷
How to test 🧪
Reproduction and verification steps
Create Tokenbutton is still disabled (prod version).Create Tokenbutton is enabled (the version in this branch).Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿ Providing accessibility support
As an Author, before moving this PR from Draft to Open, I confirmed ✅