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

feat/dotcom: show subscription UUID in Enterprise Portal format#63482

Merged
bobheadxi merged 1 commit into
mainfrom
dotcom-productsubscription-id
Jun 26, 2024
Merged

feat/dotcom: show subscription UUID in Enterprise Portal format#63482
bobheadxi merged 1 commit into
mainfrom
dotcom-productsubscription-id

Conversation

@bobheadxi

Copy link
Copy Markdown
Member

The current "name" thing is not used anywhere for subscriptions - all internal capabilities and APIs depend use the UUID, and Enterprise Portal will use the UUID as well.

This change replaces all name/IDs with the UUID, prefixed in Enterprise Portal format, as we prepare to launch Enterprise Portal in more places (such as Cody Analytics: https://linear.app/sourcegraph/issue/CORE-101). This is particularly relevant for Cody Analytics so I can document how to find the UUID in a way that isn't "get it from the URL".

It's not super beautiful in the subscriptions list, but as we progress on the migration to Enterprise Portal I plan to replace the ID in the list with "Display name", which is a first-class citizen in Enterprise Portal.

Test plan

image

image

@bobheadxi bobheadxi requested review from a team June 26, 2024 00:10
@cla-bot cla-bot Bot added the cla-signed label Jun 26, 2024
path={[
{ text: 'Enterprise subscriptions', to: '/site-admin/dotcom/product/subscriptions' },
{ text: productSubscription.name },
{ text: enterprisePortalID(subscriptionUUID) },

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the URL also contains this - do we want to change that, too?

@bobheadxi bobheadxi Jun 26, 2024

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.

The URL already uses the UUID I'm pretty sure, e.g. https://sourcegraph.com/site-admin/dotcom/product/subscriptions/92b4f1d0-3490-4d3a-bcd3-6ed3adb32d03

As for whether or not to make that also the prefixed format - I want to avoid breaking links for now, I will revisit this as we progress

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.

In routes.tsx:

    {
        path: '/dotcom/product/subscriptions/:subscriptionUUID',
        render: props => <DotComSiteAdminProductSubscriptionPage {...props} />,
        condition: () => SHOW_BUSINESS_FEATURES,
    },

@bobheadxi bobheadxi merged commit 92c4450 into main Jun 26, 2024
@bobheadxi bobheadxi deleted the dotcom-productsubscription-id branch June 26, 2024 00:26
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