Skip to content

chore: Merge some rbac files, move some functions around #6916

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

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Mar 30, 2023

No description provided.

@Emyrk Emyrk requested a review from kylecarbs March 30, 2023 23:56
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

I think this is an improvement, but I think we could go even further with this. Thoughts on:

  1. The primary file in this folder being named rbac.go as a clear entrypoint.
  2. The primary file containing commonly edited actions like default role permissions being named roles.go (I know it already is, just restating that this is great).
  3. Merge cache.go, authz.go, and builtin.go into a single file. I feel like they all circulate around being the same, even if they aren't exactly the same conceptually.

@Emyrk
Copy link
Member Author

Emyrk commented Mar 31, 2023

I prefer keeping them different files, but we have precedent for just making larger .go files. query.go can be thrown into that lump.

builtin.go is no longer a thing.

@Emyrk Emyrk merged commit ce51435 into main Mar 31, 2023
@Emyrk Emyrk deleted the stevenmasley/rbac_less_files branch March 31, 2023 14:46
@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants