Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

rbac: exclude PRODUCT_SUBSCRIPTIONS from user role, add testing for dotcom-mode#61893

Merged
bobheadxi merged 4 commits into
mainfrom
rbac-exclude-ps-from-users
Apr 15, 2024
Merged

rbac: exclude PRODUCT_SUBSCRIPTIONS from user role, add testing for dotcom-mode#61893
bobheadxi merged 4 commits into
mainfrom
rbac-exclude-ps-from-users

Conversation

@bobheadxi

@bobheadxi bobheadxi commented Apr 15, 2024

Copy link
Copy Markdown
Member

See https://sourcegraph.slack.com/archives/C06TEEJLAET/p1712838707915619 (INC-292) - this should have been included as part of https://github.com/sourcegraph/sourcegraph/pull/60795

Test plan

New integration test on TestUpdatePermissions for dotcom scenario to assert user perms in dotcom mode.

@bobheadxi bobheadxi requested review from a team and BolajiOlajide April 15, 2024 17:25
@cla-bot cla-bot Bot added the cla-signed label Apr 15, 2024
@bobheadxi bobheadxi changed the title rbac: exclude PRODUCT_SUBSCRIPTIONS from user role rbac: exclude PRODUCT_SUBSCRIPTIONS from user role, add testing for dotcom-mode Apr 15, 2024
@bobheadxi bobheadxi requested a review from eseliger April 15, 2024 17:26
@BolajiOlajide

Copy link
Copy Markdown
Contributor

Hey @bobheadxi

Can we close this in favour of https://github.com/sourcegraph/sourcegraph/pull/61883 - I'm making changes to make declaring permissions for user role to be additive.

}

func clearTimeAndID(perms []*types.Permission) []*types.Permission {
func getDisplayNames(perms []*types.Permission) []string {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

makes the diff significantly more readable

@evict evict left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@bobheadxi bobheadxi enabled auto-merge (squash) April 15, 2024 17:52
@bobheadxi bobheadxi merged commit d8b05f2 into main Apr 15, 2024
@bobheadxi bobheadxi deleted the rbac-exclude-ps-from-users branch April 15, 2024 18:23
jtibshirani pushed a commit that referenced this pull request Apr 15, 2024
…otcom-mode (#61893)

See https://sourcegraph.slack.com/archives/C06TEEJLAET/p1712838707915619 (INC-292) - this should have been included as part of https://github.com/sourcegraph/sourcegraph/pull/60795

## Test plan

New integration test on `TestUpdatePermissions` for dotcom scenario to assert user perms in dotcom mode.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants