This repository was archived by the owner on Sep 30, 2024. It is now read-only.
chore/enterpriseportal: rename customer admin role in API#63501
Merged
Conversation
a9b2747 to
ca6a30f
Compare
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @bobheadxi and the rest of your teammates on |
ca6a30f to
02ee4f3
Compare
jac
approved these changes
Jun 27, 2024
bobheadxi
referenced
this pull request
Jun 27, 2024
…thoritative (#63502) Closes https://linear.app/sourcegraph/issue/CORE-199. AIP generally implies `Update` RPCs are authoritative, which means that we should be deleting all roles memberships not provided to `UpdateEnterpriseSubscriptionMembership`. Most important outcome here is that we can actually remove roles from users by assigning them an empty role set `[]` Later we can add a "get roles" RPC to safely make these updates, and introduce a purely additive RPC if needed. It's not a huge deal right now because we only have 1 role ("customer admin") Also removes the deprecated value from https://github.com/sourcegraph/sourcegraph/pull/63501. ## Test plan Unit tests, expanded with better table-driven cases and expanded assertions
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

Studying Joe's work a bit more in depth I noticed that our API representation of this role ("Cody Analytics admin") does not line up with our internal representation ("customer admin").
Since we're already here, it's probably better to just align on "customer admin" as the role everywhere, and figure out more granular roles if we need it later.
Once it's rolled out and usages are migrated (https://github.com/sourcegraph/cody-analytics/pull/83), we can remove the deprecated enum entirely (https://github.com/sourcegraph/sourcegraph/pull/63502)
Test plan
CI