-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: type updates for rbac #26647
chore: type updates for rbac #26647
Conversation
Size Change: +189 B (+0.02%) Total Size: 1.11 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
@@ -49,15 +49,18 @@ export const inviteLogic = kea<inviteLogicType>([ | |||
{ | |||
inviteTeamMembers: async () => { | |||
if (!values.canSubmit) { | |||
return { invites: [] } |
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.
Amazing this didn't previously fail type validation 🤔
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.
We have a lot of weird type things with kea that seem to pass for now reason.
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.
Nice!
Changes
Pulling some of the types changes from https://github.com/PostHog/posthog/pull/20864/files?file-filters%5B%5D=.ts&file-filters%5B%5D=.tsx&show-viewed-files=true into their own PR for simplicity of reviewing keeping PRs small.
Not functionality changes. Just need to make sure lint and type checks pass.
Check issue for more info on the progress.
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
It doesn't have an impact.
How did you test this code?
Manually + CI