Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

rbac: check for undefined permissions in PermissionsList#61737

Merged
BolajiOlajide merged 1 commit into
mainfrom
bo/fix-permission-map
Apr 9, 2024
Merged

rbac: check for undefined permissions in PermissionsList#61737
BolajiOlajide merged 1 commit into
mainfrom
bo/fix-permission-map

Conversation

@BolajiOlajide

Copy link
Copy Markdown
Contributor

#60795 introduced the concept of permissions that only exists on Dotcom, however one thing we didn't take into consideration is how the frontend displays the role.

Turns out we get allPermissions from the generated graphql-operations.ts file which is statically generated at build time and doesn't know about permissions that only exist on dotcom.

Test plan

Manual testing?

Added a storybook also.

@BolajiOlajide BolajiOlajide requested a review from a team April 9, 2024 18:32
@BolajiOlajide BolajiOlajide self-assigned this Apr 9, 2024
@cla-bot cla-bot Bot added the cla-signed label Apr 9, 2024
@sourcegraph-bot

Copy link
Copy Markdown
Contributor

📖 Storybook live preview

@camdencheek

Copy link
Copy Markdown
Member

Tested locally that the Create Role button now works 👍

CleanShot 2024-04-09 at 12 40 59@2x

@BolajiOlajide BolajiOlajide enabled auto-merge (squash) April 9, 2024 18:42
@BolajiOlajide BolajiOlajide merged commit d1169c6 into main Apr 9, 2024
@BolajiOlajide BolajiOlajide deleted the bo/fix-permission-map branch April 9, 2024 18:44
sourcegraph-release-bot pushed a commit that referenced this pull request Apr 9, 2024
BolajiOlajide added a commit that referenced this pull request Apr 9, 2024
…onsList (#61738)

rbac: check for undefined permissions in PermissionsList (#61737)

add story book

(cherry picked from commit d1169c6)

Co-authored-by: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants