Repository navigation
feat: add a patch-leads system group that follows the patch lead role - #290
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Quilt is a restricted app in Weave. A patch lead (for example the Ganymede lead) gets "You don't have access" at sign-in, because the
patchesclaim does not open an app. Each lead needed a hand-made access grant.What
patch-leads. Weave keeps it in line with thepatch_leadgovernance role:KnotGrants.any_patch_lead?).RoleGrantssyncs it after each grant or revoke. The hourlySyncSystemGroupsJobfixes drift.docs/OAUTH.md"Patch claims" says to add the group to the app's access list, not an app role. A Quiltviewerapp role on this group would let each lead read every patch.docs/KYC.mdlists the group in the role flow.No migration.
After deploy
bin/rails groups:sync_systemonce, so the group exists and the current leads join it.patch-leadsto the Quilt app's access list.Neither production nor staging has a group with the slug
patch-leadsor the name "Patch Leads", so the sync makes a new system group.Checks
bundle exec rspec: 2871 examples, 0 failures.bin/rubocopon the changed files: no offenses.patch-leadsgroup would be adopted (none exists in either database), and a stale role cache in another request can re-add a membership until the hourly sync (an existing pattern for every role-based system group).