Skip to content
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

feat: type safety for gql perms #9798

Merged
merged 2 commits into from
May 30, 2024
Merged

feat: type safety for gql perms #9798

merged 2 commits into from
May 30, 2024

Conversation

mattkrick
Copy link
Member

@mattkrick mattkrick commented May 29, 2024

Description

Adds type safety to the GQL permission rules.

Addresses comment here: #9750 (comment)

I'm not sure I love this solution. It fixes the problem, but it's a little verbose. Looking for thoughts!

Demo

https://www.loom.com/share/6e708950dd4344e5beb7c6e6366cdd80?sid=36830171-f926-4c86-96b4-e70cce2f1c76

Signed-off-by: Matt Krick <matt.krick@gmail.com>
Signed-off-by: Matt Krick <matt.krick@gmail.com>
Copy link
Contributor

@nickoferrall nickoferrall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like this! The type safety feels so much better, and I don't think it's too verbose

@mattkrick mattkrick merged commit 712f79e into master May 30, 2024
7 checks passed
@mattkrick mattkrick deleted the feat/type-safe-gql-perms branch May 30, 2024 15:44
@github-actions github-actions bot mentioned this pull request May 30, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants