sourcegraph/lib/managedservicesplatform
Robert Lin f5afeb8c22
feat/enterpriseportal: make UpdateEnterpriseSubscriptionMembership authoritative (#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
2024-06-27 12:52:46 -07:00
..
bigquerywriter bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
cloudsql chore/msp/runtime: add args as trace attributes, clean up tracing code (#63087) 2024-06-04 17:30:32 -07:00
iam feat/enterpriseportal: make UpdateEnterpriseSubscriptionMembership authoritative (#63502) 2024-06-27 12:52:46 -07:00
runtime msp/runtime: split contract into JobContract and ServiceContract (#63494) 2024-06-26 19:46:10 +00:00
BUILD.bazel bazel: transcribe test ownership to bazel tags (#62664) 2024-05-16 15:51:16 +01:00
go.mod lib/msp: downgrade GORM to 1.25.6 (#63427) 2024-06-22 00:34:01 +00:00
go.sum lib/msp: downgrade GORM to 1.25.6 (#63427) 2024-06-22 00:34:01 +00:00
managedservicesplatform.go lib/managedservicesplatform: init MSP runtime, add lib/background from internal/goroutine (#57651) 2023-10-28 03:08:12 +00:00