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

feat/enterpriseportal: CreateEnterpriseSubscription RPC definition#63308

Merged
bobheadxi merged 1 commit intomainfrom
robert/core-149-enterprise-portal-proto-rpc-for-createproductsubscription
Jun 18, 2024
Merged

feat/enterpriseportal: CreateEnterpriseSubscription RPC definition#63308
bobheadxi merged 1 commit intomainfrom
robert/core-149-enterprise-portal-proto-rpc-for-createproductsubscription

Conversation

@bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented Jun 18, 2024

Proposed RPC definition for creating an Enterprise Subscription, which is currently the createProductSubscription GraphQL mutation, via Enterprise Portal. The RPC follows patterns suggested for "create" RPCs in https://google.aip.dev/133.

One thing we didn't account for yet is the way AIP suggests handling IDs and names. It raises some interesting points about user-provided ID components in https://google.aip.dev/133#user-specified-ids - I'm pretty sure we don't want to introduce a user-controlled component to the currently randomized subscription ID, but we may want to introduce a "slug" identifier of sorts that must be unique. The default value can use something like https://pkg.go.dev/github.com/gosimple/slug to convert the display name. This would help us ensure duplicate subscriptions for the same customer aren't created.

Closes CORE-149. Implementation is tracked in a follow-up (CORE-155) - for now this will just return "unimplemented".

Test plan

CI

@cla-bot cla-bot bot added the cla-signed label Jun 18, 2024
@bobheadxi bobheadxi requested review from a team and unknwon June 18, 2024 04:03
Copy link
Member Author

bobheadxi commented Jun 18, 2024

@bobheadxi bobheadxi force-pushed the robert/core-149-enterprise-portal-proto-rpc-for-createproductsubscription branch from c2fc7fd to 662080c Compare June 18, 2024 18:34
@bobheadxi bobheadxi force-pushed the robert/core-149-enterprise-portal-proto-rpc-for-createproductsubscription branch from 662080c to 907c251 Compare June 18, 2024 19:26
@bobheadxi bobheadxi merged commit e4bff7c into main Jun 18, 2024
@bobheadxi bobheadxi deleted the robert/core-149-enterprise-portal-proto-rpc-for-createproductsubscription branch June 18, 2024 19:35
Copy link
Member Author

Merge activity

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.

2 participants