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

[v17] Make sure we don't break the role editor for some preset roles, add support for GH organizations #51959

Draft
wants to merge 2 commits into
base: branch/v17
Choose a base branch
from

Conversation

bl-nero
Copy link
Contributor

@bl-nero bl-nero commented Feb 7, 2025

Backport #51608 to branch/v17

Manually resolved imports in presets_test.go and recreated the actual role dump file for v17.

bl-nero and others added 2 commits February 7, 2025 18:05
…upport for GH organizations (#51608)

* Add more fields to the role editor

* Review

* Make sure we don't break the role editor for some preset roles

Adds a test that verifies that the built-in roles, as pulled from our Go
source codes, can be unambiguously translated to the standard editor
model. Also adds one currently missing field (`github_organizations`).

* Fix type-check

* Also remove the now redundant comments in presets.go

* Post-merge fix

* Review

* Increase the test timeout

* Increase the test timeout even more

* Attempt to work around the problem with compiler output

* Switch from testPathIgnorePatterns to watchPathIgnorePatterns

* Add newline to end of Makefile

* Wrap preset role tests into a separate describe block

* Change of approach: check in the generated file

* Revert an accidental change

* One more update to the preset roles

* Final touches

---------

Co-authored-by: Rafał Cieślak <[email protected]>
@bl-nero bl-nero added the no-changelog Indicates that a PR does not require a changelog entry label Feb 7, 2025
@bl-nero
Copy link
Contributor Author

bl-nero commented Feb 7, 2025

Manually tested:

  • viewing preset roles
  • adding GitHub organization access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant