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

chore: type updates for rbac #26647

Merged
merged 6 commits into from
Dec 5, 2024
Merged

chore: type updates for rbac #26647

merged 6 commits into from
Dec 5, 2024

Conversation

zlwaterfield
Copy link
Contributor

@zlwaterfield zlwaterfield commented Dec 4, 2024

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

@zlwaterfield zlwaterfield self-assigned this Dec 4, 2024
@zlwaterfield zlwaterfield changed the title chore: tpye updates for rbac chore: type updates for rbac Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

Size Change: +189 B (+0.02%)

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.11 MB +189 B (+0.02%)

compressed-size-action

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@zlwaterfield zlwaterfield requested a review from a team December 4, 2024 20:46
@@ -49,15 +49,18 @@ export const inviteLogic = kea<inviteLogicType>([
{
inviteTeamMembers: async () => {
if (!values.canSubmit) {
return { invites: [] }
Copy link
Contributor

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 🤔

Copy link
Contributor Author

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.

Copy link
Contributor

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

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

Nice!

@zlwaterfield zlwaterfield merged commit 3e45d8a into master Dec 5, 2024
96 checks passed
@zlwaterfield zlwaterfield deleted the zach/rbac/4 branch December 5, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants