licensing: Rename new plans (#60345)

These are the final names.

## Test plan

Verified manually that both on the admin side and on the instance side the license name shows correctly.
This commit is contained in:
Erik Seliger 2024-02-09 09:05:36 +01:00 committed by GitHub
parent 79dc3af3a0
commit c657b31471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 14 deletions

View File

@ -130,17 +130,17 @@ export const ALL_PLANS: Plan[] = [
],
},
{
name: 'Code Intelligence Platform (aka enterprise-1)',
name: 'Code Search Enterprise (aka enterprise-1)',
label: 'enterprise-1',
additionalTags: [TAG_TRIAL, TAG_AIR_GAPPED, TAG_DISABLE_TELEMETRY_EXPORT, TAG_TRUEUP, TAG_DEV, TAG_INTERNAL],
},
{
name: 'Cody Only Enterprise',
name: 'Cody Enterprise',
label: 'cody-enterprise-0',
additionalTags: [TAG_TRIAL, TAG_AIR_GAPPED, TAG_DISABLE_TELEMETRY_EXPORT, TAG_TRUEUP, TAG_DEV, TAG_INTERNAL],
},
{
name: 'Code AI Enterprise',
name: 'Code Intelligence Platform',
label: 'code-ai-enterprise-0',
additionalTags: [TAG_TRIAL, TAG_AIR_GAPPED, TAG_DISABLE_TELEMETRY_EXPORT, TAG_TRUEUP, TAG_DEV, TAG_INTERNAL],
},

View File

@ -34,8 +34,8 @@ const (
// PlanCodyEnterprise is the cody-only plan.
PlanCodyEnterprise Plan = "cody-enterprise-0"
// PlanCodeAIEnterprise is the full package plan. It includes code search and cody.
PlanCodeAIEnterprise Plan = "code-ai-enterprise-0"
// PlanCodeIntelligencePlatform is the full package plan. It includes code search and cody.
PlanCodeIntelligencePlatform Plan = "code-ai-enterprise-0"
)
var AllPlans = []Plan{
@ -50,7 +50,7 @@ var AllPlans = []Plan{
PlanEnterprise0,
PlanEnterprise1,
PlanCodyEnterprise,
PlanCodeAIEnterprise,
PlanCodeIntelligencePlatform,
}
// The list of features. For each feature, add a new const here and the checking logic in
@ -146,7 +146,7 @@ var planDetails = map[Plan]PlanDetails{
// - max 10 batch changes on enterprise-0 vs unlimited batch changes.
// - No code insights on enterprise-0
PlanEnterprise1: {
DisplayName: "Sourcegraph Enterprise",
DisplayName: "Code Search Enterprise",
Features: []Feature{
FeatureACLs,
FeatureCodeInsights,
@ -210,8 +210,8 @@ var planDetails = map[Plan]PlanDetails{
&FeaturePrivateRepositories{Unrestricted: true},
},
},
PlanCodeAIEnterprise: {
DisplayName: "Code AI Enterprise",
PlanCodeIntelligencePlatform: {
DisplayName: "Code Intelligence Platform",
Features: []Feature{
FeatureSSO,
FeatureACLs,

View File

@ -33,11 +33,11 @@ func TestProductNameWithBrand(t *testing.T) {
{licenseTags: []string{"plan:enterprise-0", "dev", "trial"}, want: "Sourcegraph Enterprise (trial, dev use only)"},
{licenseTags: []string{"plan:enterprise-0", "internal"}, want: "Sourcegraph Enterprise (internal use only)"},
{licenseTags: []string{"plan:enterprise-1"}, want: "Sourcegraph Enterprise"},
{licenseTags: []string{"plan:enterprise-1", "trial"}, want: "Sourcegraph Enterprise (trial)"},
{licenseTags: []string{"plan:enterprise-1", "dev"}, want: "Sourcegraph Enterprise (dev use only)"},
{licenseTags: []string{"plan:enterprise-1", "dev", "trial"}, want: "Sourcegraph Enterprise (trial, dev use only)"},
{licenseTags: []string{"plan:enterprise-1", "internal"}, want: "Sourcegraph Enterprise (internal use only)"},
{licenseTags: []string{"plan:enterprise-1"}, want: "Code Search Enterprise"},
{licenseTags: []string{"plan:enterprise-1", "trial"}, want: "Code Search Enterprise (trial)"},
{licenseTags: []string{"plan:enterprise-1", "dev"}, want: "Code Search Enterprise (dev use only)"},
{licenseTags: []string{"plan:enterprise-1", "dev", "trial"}, want: "Code Search Enterprise (trial, dev use only)"},
{licenseTags: []string{"plan:enterprise-1", "internal"}, want: "Code Search Enterprise (internal use only)"},
}
for _, test := range tests {
t.Run(fmt.Sprintf("licenseTags=%v", test.licenseTags), func(t *testing.T) {