Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Replace bytebase. prefix with bb. prefix
天舟80de2ace8a14
diff --git a/frontend/src/components/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm.vueindex 2689b07152..61188c04a7 100644--- a/frontend/src/components/AlterSchemaPrepForm.vue+++ b/frontend/src/components/AlterSchemaPrepForm.vue@@ -215,7 +215,7 @@ export default {issueSlug: "new",},query: {- template: "bytebase.database.schema.update",+ template: "bb.database.schema.update",name: `[${database.name}] Alter schema`,project: state.project.id,databaseList: database.id,diff --git a/frontend/src/components/IssueStatusTransitionButtonGroup.vue b/frontend/src/components/IssueStatusTransitionButtonGroup.vueindex e5b03f10ef..9cd38270b2 100644--- a/frontend/src/components/IssueStatusTransitionButtonGroup.vue+++ b/frontend/src/components/IssueStatusTransitionButtonGroup.vue@@ -381,7 +381,7 @@ export default {.then(() => {if (transition.to == "DONE" &&- props.issueTemplate.type == "bytebase.database.schema.update"+ props.issueTemplate.type == "bb.database.schema.update") {store.dispatch("uistate/saveIntroStateByKey", {key: "table.create",diff --git a/frontend/src/components/MemberInvite.vue b/frontend/src/components/MemberInvite.vueindex 078938058f..c588e49f60 100644--- a/frontend/src/components/MemberInvite.vue+++ b/frontend/src/components/MemberInvite.vue@@ -145,7 +145,7 @@ export default {);const hasAdminFeature = computed(() =>- store.getters["plan/feature"]("bytebase.admin")+ store.getters["plan/feature"]("bb.admin"));const state = reactive<LocalState>({diff --git a/frontend/src/components/MemberTable.vue b/frontend/src/components/MemberTable.vueindex 2eb38192db..d97dce3738 100644--- a/frontend/src/components/MemberTable.vue+++ b/frontend/src/components/MemberTable.vue@@ -155,7 +155,7 @@ export default {const currentUser = computed(() => store.getters["auth/currentUser"]());const hasAdminFeature = computed(() =>- store.getters["plan/feature"]("bytebase.admin")+ store.getters["plan/feature"]("bb.admin"));const state = reactive<LocalState>({});diff --git a/frontend/src/components/ProjectMemberPanel.vue b/frontend/src/components/ProjectMemberPanel.vueindex a64c843acd..b02fbfeebc 100644--- a/frontend/src/components/ProjectMemberPanel.vue+++ b/frontend/src/components/ProjectMemberPanel.vue@@ -126,7 +126,7 @@ export default {});const hasAdminFeature = computed(() =>- store.getters["plan/feature"]("bytebase.admin")+ store.getters["plan/feature"]("bb.admin"));const allowAddMember = computed(() => {diff --git a/frontend/src/components/ProjectMemberTable.vue b/frontend/src/components/ProjectMemberTable.vueindex d9967ad04a..4af671c850 100644--- a/frontend/src/components/ProjectMemberTable.vue+++ b/frontend/src/components/ProjectMemberTable.vue@@ -141,7 +141,7 @@ export default {const currentUser = computed(() => store.getters["auth/currentUser"]());const hasAdminFeature = computed(() =>- store.getters["plan/feature"]("bytebase.admin")+ store.getters["plan/feature"]("bb.admin"));const state = reactive<LocalState>({});diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vueindex 595312f15c..7bbff07db8 100644--- a/frontend/src/components/QuickActionPanel.vue+++ b/frontend/src/components/QuickActionPanel.vue@@ -7,7 +7,7 @@:key="index"><div- v-if="quickAction == 'quickaction.bytebase.instance.create'"+ v-if="quickAction == 'quickaction.bb.instance.create'"class="flex flex-col items-center w-28"><button class="btn-icon-primary p-3" @click.prevent="createInstance">@@ -32,7 +32,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.user.manage'"+ v-if="quickAction == 'quickaction.bb.user.manage'"class="flex flex-col items-center w-28"><router-link to="/setting/member" class="btn-icon-primary p-3">@@ -59,7 +59,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.database.query'"+ v-if="quickAction == 'quickaction.bb.database.query'"class="flex flex-col items-center w-28"><button class="btn-icon-primary p-3">@@ -86,7 +86,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.database.data.edit'"+ v-if="quickAction == 'quickaction.bb.database.data.edit'"class="flex flex-col items-center w-28"><button class="btn-icon-primary p-3">@@ -113,7 +113,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.database.create'"+ v-if="quickAction == 'quickaction.bb.database.create'"class="flex flex-col items-center w-28"><router-link to="/db/new" class="btn-icon-primary p-3">@@ -140,7 +140,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.database.request'"+ v-if="quickAction == 'quickaction.bb.database.request'"class="flex flex-col items-center w-28"><button class="btn-icon-primary p-3" @click.prevent="requestDatabase">@@ -167,7 +167,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.database.schema.update'"+ v-if="quickAction == 'quickaction.bb.database.schema.update'"class="flex flex-col items-center w-28"><button class="btn-icon-primary p-3" @click.prevent="alterSchema">@@ -192,7 +192,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.database.troubleshoot'"+ v-if="quickAction == 'quickaction.bb.database.troubleshoot'"class="flex flex-col items-center w-28"><router-link to="/issue/new" class="btn-icon-primary p-3">@@ -217,7 +217,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.environment.create'"+ v-if="quickAction == 'quickaction.bb.environment.create'"class="flex flex-col items-center w-36"><button class="btn-icon-primary p-3" @click.prevent="createEnvironment">@@ -242,7 +242,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.environment.reorder'"+ v-if="quickAction == 'quickaction.bb.environment.reorder'"class="flex flex-col items-center w-28"><button@@ -270,7 +270,7 @@</div><div- v-if="quickAction == 'quickaction.bytebase.project.create'"+ v-if="quickAction == 'quickaction.bb.project.create'"class="flex flex-col items-center w-28"><button class="btn-icon-primary p-3" @click.prevent="createProject">@@ -301,21 +301,17 @@:subtitle="state.modalSubtitle"@close="state.showModal = false">- <template- v-if="state.quickActionType == 'quickaction.bytebase.project.create'"- >+ <template v-if="state.quickActionType == 'quickaction.bb.project.create'"><ProjectNew @dismiss="state.showModal = false" /></template><template- v-else-if="- state.quickActionType == 'quickaction.bytebase.instance.create'- "+ v-else-if="state.quickActionType == 'quickaction.bb.instance.create'"><InstanceForm :create="true" @dismiss="state.showModal = false" /></template><templatev-else-if="- state.quickActionType == 'quickaction.bytebase.database.schema.update'+ state.quickActionType == 'quickaction.bb.database.schema.update'"><AlterSchemaPrepForm@@ -324,9 +320,7 @@/></template><template- v-else-if="- state.quickActionType == 'quickaction.bytebase.database.request'- "+ v-else-if="state.quickActionType == 'quickaction.bb.database.request'"><RequestDatabasePrepForm @dismiss="state.showModal = false" /></template>@@ -346,8 +340,8 @@ import { idFromSlug } from "../utils";// Quick action only applicable when DBA workflow feature is enabled.const DBA_WORKFLOW_APPLICABLE_QUICK_ACTION_LIST: QuickActionType[] = [- "quickaction.bytebase.database.request",- "quickaction.bytebase.database.troubleshoot",+ "quickaction.bb.database.request",+ "quickaction.bb.database.troubleshoot",];interface LocalState {@@ -379,11 +373,11 @@ export default {showModal: false,modalTitle: "",modalSubtitle: "",- quickActionType: "quickaction.bytebase.instance.create",+ quickActionType: "quickaction.bb.instance.create",});const effectiveQuickActionList = computed((): QuickActionType[] => {- if (store.getters["plan/feature"]("bytebase.dba-workflow")) {+ if (store.getters["plan/feature"]("bb.dba-workflow")) {return props.quickActionList;}@@ -405,37 +399,37 @@ export default {const createProject = () => {state.modalTitle = "Create project";state.modalSubtitle = "";- state.quickActionType = "quickaction.bytebase.project.create";+ state.quickActionType = "quickaction.bb.project.create";state.showModal = true;};const createInstance = () => {state.modalTitle = "Create instance";state.modalSubtitle = "";- state.quickActionType = "quickaction.bytebase.instance.create";+ state.quickActionType = "quickaction.bb.instance.create";state.showModal = true;};const alterSchema = () => {state.modalTitle = "Alter schema";state.modalSubtitle = "Task 1 - choose database";- state.quickActionType = "quickaction.bytebase.database.schema.update";+ state.quickActionType = "quickaction.bb.database.schema.update";state.showModal = true;};const requestDatabase = () => {state.modalTitle = "Request database";state.modalSubtitle = "";- state.quickActionType = "quickaction.bytebase.database.request";+ state.quickActionType = "quickaction.bb.database.request";state.showModal = true;};const createEnvironment = () => {- store.dispatch("command/dispatchCommand", "bytebase.environment.create");+ store.dispatch("command/dispatchCommand", "bb.environment.create");};const reorderEnvironment = () => {- store.dispatch("command/dispatchCommand", "bytebase.environment.reorder");+ store.dispatch("command/dispatchCommand", "bb.environment.reorder");};return {diff --git a/frontend/src/components/Quickstart.vue b/frontend/src/components/Quickstart.vueindex b01bb91216..442509e465 100644--- a/frontend/src/components/Quickstart.vue+++ b/frontend/src/components/Quickstart.vue@@ -119,7 +119,7 @@ export default {{name: "Request a database",link:- "/issue/new?template=bytebase.database.create&description=Estimated QPS: 10",+ "/issue/new?template=bb.database.create&description=Estimated QPS: 10",allowDeveloper: true,done: computed(() =>store.getters["uistate/introStateByKey"]("database.create")@@ -128,7 +128,7 @@ export default {{name: "Create a table",link:- "/issue/new?template=bytebase.database.schema.update&name=Create employee table&description=Stores employee basic info&sql=CREATE TABLE employee (\n id INT NOT NULL,\n name TEXT,\n age INT,\n PRIMARY KEY (name)\n);&rollbacksql=DROP TABLE employee;",+ "/issue/new?template=bb.database.schema.update&name=Create employee table&description=Stores employee basic info&sql=CREATE TABLE employee (\n id INT NOT NULL,\n name TEXT,\n age INT,\n PRIMARY KEY (name)\n);&rollbacksql=DROP TABLE employee;",allowDeveloper: true,done: computed(() =>store.getters["uistate/introStateByKey"]("table.create")diff --git a/frontend/src/components/RequestDatabasePrepForm.vue b/frontend/src/components/RequestDatabasePrepForm.vueindex 58f60158ce..cb5d300ffa 100644--- a/frontend/src/components/RequestDatabasePrepForm.vue+++ b/frontend/src/components/RequestDatabasePrepForm.vue@@ -222,7 +222,7 @@ export default {issueSlug: "new",},query: {- template: "bytebase.database.create",+ template: "bb.database.create",name: `[${environment.name}] Request new database '${state.databaseName}'`,environment: state.environmentId,project: state.projectId,@@ -239,7 +239,7 @@ export default {issueSlug: "new",},query: {- template: "bytebase.database.grant",+ template: "bb.database.grant",name: `[${environment.name}] Request database '${database.name}' ${state.readOnly ? "Read Only access" : "Read & Write access"}`,diff --git a/frontend/src/miragejs/factories/activity.js b/frontend/src/miragejs/factories/activity.jsindex a2442dfb9e..bd88fdfeda 100644--- a/frontend/src/miragejs/factories/activity.js+++ b/frontend/src/miragejs/factories/activity.js@@ -16,7 +16,7 @@ export default {return Date.now() - (10 - i) * 1800 * 1000;},actionType() {- return "bytebase.issue.comment.create";+ return "bb.issue.comment.create";},containerId() {return "0";diff --git a/frontend/src/miragejs/factories/issue.js b/frontend/src/miragejs/factories/issue.jsindex b4cd766071..810092e1dc 100644--- a/frontend/src/miragejs/factories/issue.js+++ b/frontend/src/miragejs/factories/issue.js@@ -23,7 +23,7 @@ export default {return "OPEN";},type() {- return "bytebase.database.create";+ return "bb.database.create";},description() {return faker.fake("{{lorem.paragraphs}}");diff --git a/frontend/src/miragejs/factories/stage.js b/frontend/src/miragejs/factories/stage.jsindex 75d3773049..43d3f03d9d 100644--- a/frontend/src/miragejs/factories/stage.js+++ b/frontend/src/miragejs/factories/stage.js@@ -20,7 +20,7 @@ export default {return faker.fake("{{lorem.sentence}}");},type() {- return "bytebase.stage.unknown";+ return "bb.stage.unknown";},databaseId() {return UNKNOWN_ID;diff --git a/frontend/src/miragejs/factories/task.js b/frontend/src/miragejs/factories/task.jsindex f4522f60d5..6ee6dc3959 100644--- a/frontend/src/miragejs/factories/task.js+++ b/frontend/src/miragejs/factories/task.js@@ -20,7 +20,7 @@ export default {return faker.fake("{{lorem.sentence}}");},type() {- return "bytebase.task.unknown";+ return "bb.task.unknown";},status() {return "PENDING";diff --git a/frontend/src/miragejs/routes/activity.js b/frontend/src/miragejs/routes/activity.jsindex 0f9a7434f1..131323b57f 100644--- a/frontend/src/miragejs/routes/activity.js+++ b/frontend/src/miragejs/routes/activity.js@@ -27,7 +27,7 @@ export default function configureActivity(route) {createdTs: ts,updaterId: attrs.creatorId,updatedTs: ts,- actionType: "bytebase.issue.comment.create",+ actionType: "bb.issue.comment.create",workspaceId: WORKSPACE_ID,};const createdActivity = schema.activities.create(newActivity);diff --git a/frontend/src/miragejs/routes/database.js b/frontend/src/miragejs/routes/database.jsindex a7470958b8..b7c8ec7a68 100644--- a/frontend/src/miragejs/routes/database.js+++ b/frontend/src/miragejs/routes/database.js@@ -113,7 +113,7 @@ export default function configureDatabase(route) {createdTs: ts,updaterId: creatorId,updatedTs: ts,- actionType: "bytebase.issue",+ actionType: "bb.issue",containerId: issueId,comment: `Created database ${newDatabase.name}`,workspaceId: WORKSPACE_ID,diff --git a/frontend/src/miragejs/routes/issue.js b/frontend/src/miragejs/routes/issue.jsindex 5b45fd0131..e57199a5d1 100644--- a/frontend/src/miragejs/routes/issue.js+++ b/frontend/src/miragejs/routes/issue.js@@ -103,7 +103,7 @@ export default function configureIssue(route) {createdTs: ts,updaterId: attrs.updaterId,updatedTs: ts,- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: createdIssue.id,comment: "",workspaceId: WORKSPACE_ID,@@ -257,7 +257,7 @@ export default function configureIssue(route) {createdTs: ts,updaterId: attrs.updaterId,updatedTs: ts,- actionType: "bytebase.issue.field.update",+ actionType: "bb.issue.field.update",containerId: updatedIssue.id,comment: attrs.comment,payload,@@ -405,7 +405,7 @@ export default function configureIssue(route) {createdTs: ts,updaterId: attrs.updaterId,updatedTs: ts,- actionType: "bytebase.issue.status.update",+ actionType: "bb.issue.status.update",containerId: updatedIssue.id,comment: attrs.comment,payload,diff --git a/frontend/src/miragejs/routes/task.js b/frontend/src/miragejs/routes/task.jsindex 1d2ba73dfc..ed9cad05de 100644--- a/frontend/src/miragejs/routes/task.js+++ b/frontend/src/miragejs/routes/task.js@@ -42,7 +42,7 @@ export default function configureTask(route) {createdTs: ts,updaterId: attrs.updaterId,updatedTs: ts,- actionType: "bytebase.pipeline.task.status.update",+ actionType: "bb.pipeline.task.status.update",containerId: attrs.containerId,comment: attrs.comment,payload,@@ -77,7 +77,7 @@ export default function configureTask(route) {createdTs: ts,updaterId: SYSTEM_BOT_ID,updatedTs: ts,- actionType: "bytebase.pipeline.task.status.update",+ actionType: "bb.pipeline.task.status.update",containerId: attrs.containerId,comment: attrs.comment,payload,diff --git a/frontend/src/miragejs/seeds/index.ts b/frontend/src/miragejs/seeds/index.tsindex 36b417c60a..b397a21fba 100644--- a/frontend/src/miragejs/seeds/index.ts+++ b/frontend/src/miragejs/seeds/index.ts@@ -179,7 +179,7 @@ const workspacesSeeder = (server: any) => {});let issue = server.create("issue", {- type: "bytebase.general",+ type: "bb.general",name: "Hello, World!",description:"Welcome to Bytebase, this is the issue interface where DBAs and developers collaborate on database management issues such as: \n\n - Requesting a new database\n - Creating a table\n - Creating an index\n - Adding a column\n - Troubleshooting performance issue\n\nLet's bookmark this issue by clicking the star icon on the top of this page.",@@ -198,7 +198,7 @@ const workspacesSeeder = (server: any) => {creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,name: environmentList1[3].name,- type: "bytebase.stage.database.create",+ type: "bb.stage.database.create",status: "PENDING",environmentId: environmentList1[3].id,pipeline,@@ -209,7 +209,7 @@ const workspacesSeeder = (server: any) => {creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,name: "Waiting approval",- type: "bytebase.task.approve",+ type: "bb.task.approve",status: "PENDING",when: "MANUAL",databaseId: databaseList1[3].id,@@ -219,7 +219,7 @@ const workspacesSeeder = (server: any) => {});const createdActivity = server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,@@ -352,7 +352,7 @@ const workspacesSeeder = (server: any) => {for (let i = 0; i < 3; i++) {const user = ws1UserList[Math.floor(Math.random() * ws1UserList.length)];server.create("activity", {- actionType: "bytebase.issue.comment.create",+ actionType: "bb.issue.comment.create",containerId: issue.id,creatorId: user.id,updaterId: user.id,@@ -383,7 +383,7 @@ const workspacesSeeder = (server: any) => {});issue = server.create("issue", {- type: "bytebase.database.create",+ type: "bb.database.create",name: title,creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,@@ -402,7 +402,7 @@ const workspacesSeeder = (server: any) => {creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,name: "Create database",- type: "bytebase.stage.database.create",+ type: "bb.stage.database.create",status: "PENDING",environmentId: environmentList1[1].id,pipeline,@@ -413,7 +413,7 @@ const workspacesSeeder = (server: any) => {creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,name: "Waiting approval",- type: "bytebase.task.approve",+ type: "bb.task.approve",status: "PENDING",when: "MANUAL",pipeline,@@ -422,7 +422,7 @@ const workspacesSeeder = (server: any) => {});server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,@@ -443,7 +443,7 @@ const workspacesSeeder = (server: any) => {});issue = server.create("issue", {- type: "bytebase.database.grant",+ type: "bb.database.grant",name: title,creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,@@ -462,7 +462,7 @@ const workspacesSeeder = (server: any) => {creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,name: "Create database",- type: "bytebase.stage.database.grant",+ type: "bb.stage.database.grant",status: "PENDING",environmentId: environmentList1[2].id,pipeline,@@ -473,7 +473,7 @@ const workspacesSeeder = (server: any) => {creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,name: "Waiting approval",- type: "bytebase.task.approve",+ type: "bb.task.approve",status: "PENDING",when: "MANUAL",databaseId: databaseList1[2].id,@@ -483,7 +483,7 @@ const workspacesSeeder = (server: any) => {});server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,@@ -577,7 +577,7 @@ const workspacesSeeder = (server: any) => {issue = server.create("issue", {name: data.title,- type: "bytebase.database.schema.update",+ type: "bb.database.schema.update",creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,assigneeId: ws1Owner.id,@@ -600,7 +600,7 @@ const workspacesSeeder = (server: any) => {);server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws1Dev1.id,updaterId: ws1Dev1.id,@@ -610,7 +610,7 @@ const workspacesSeeder = (server: any) => {for (let i = 0; i < 3; i++) {const user = ws1UserList[Math.floor(Math.random() * ws1UserList.length)];server.create("activity", {- actionType: "bytebase.issue.comment.create",+ actionType: "bb.issue.comment.create",containerId: issue.id,creatorId: user.id,updaterId: user.id,@@ -635,7 +635,7 @@ const workspacesSeeder = (server: any) => {issue = server.create("issue", {name: data.title,- type: "bytebase.database.schema.update",+ type: "bb.database.schema.update",creatorId: ws1Owner.id,updaterId: ws1Owner.id,assigneeId: ws1DBA.id,@@ -658,7 +658,7 @@ const workspacesSeeder = (server: any) => {);server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws1Owner.id,updaterId: ws1Owner.id,@@ -668,7 +668,7 @@ const workspacesSeeder = (server: any) => {for (let i = 0; i < 3; i++) {const user = ws1UserList[Math.floor(Math.random() * ws1UserList.length)];server.create("activity", {- actionType: "bytebase.issue.comment.create",+ actionType: "bb.issue.comment.create",containerId: issue.id,creatorId: user.id,updaterId: user.id,@@ -693,7 +693,7 @@ const workspacesSeeder = (server: any) => {issue = server.create("issue", {name: data.title,- type: "bytebase.database.schema.update",+ type: "bb.database.schema.update",creatorId: ws1Dev2.id,updaterId: ws1Dev2.id,assigneeId: ws1DBA.id,@@ -716,7 +716,7 @@ const workspacesSeeder = (server: any) => {);server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws1Dev2.id,updaterId: ws1Dev2.id,@@ -726,7 +726,7 @@ const workspacesSeeder = (server: any) => {for (let i = 0; i < 3; i++) {const user = ws1UserList[Math.floor(Math.random() * ws1UserList.length)];server.create("activity", {- actionType: "bytebase.issue.comment.create",+ actionType: "bb.issue.comment.create",containerId: issue.id,creatorId: user.id,updaterId: user.id,@@ -750,7 +750,7 @@ const workspacesSeeder = (server: any) => {issue = server.create("issue", {name: data.title,- type: "bytebase.database.schema.update",+ type: "bb.database.schema.update",creatorId: ws2Dev.id,updaterId: ws2Dev.id,assigneeId: ws2DBA.id,@@ -772,7 +772,7 @@ const workspacesSeeder = (server: any) => {);server.create("activity", {- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",containerId: issue.id,creatorId: ws2Dev.id,updaterId: ws2Dev.id,@@ -894,7 +894,7 @@ const createUpdateSchemaStage = (creatorId: creatorId,updaterId: creatorId,name: `${environmentList[i].name}`,- type: "bytebase.stage.schema.update",+ type: "bb.stage.schema.update",environmentId: environmentList[i].id,pipelineId,workspaceId,@@ -904,7 +904,7 @@ const createUpdateSchemaStage = (creatorId: creatorId,updaterId: creatorId,name: `Update ${databaseList[i].name} schema`,- type: "bytebase.task.schema.udpate",+ type: "bb.task.schema.udpate",status: taskStatusList[i],when: i < 3 ? "ON_SUCCESS" : "MANUAL",databaseId: databaseList[i].id,diff --git a/frontend/src/plugins/issue/DatabaseCreateTemplate.ts b/frontend/src/plugins/issue/DatabaseCreateTemplate.tsindex 863adb4c12..7ea0fdba0a 100644--- a/frontend/src/plugins/issue/DatabaseCreateTemplate.ts+++ b/frontend/src/plugins/issue/DatabaseCreateTemplate.ts@@ -14,7 +14,7 @@ const INPUT_DATABASE_NAME = INPUT_CUSTOM_FIELD_ID_BEGIN;const OUTPUT_DATABASE_FIELD_ID = OUTPUT_CUSTOM_FIELD_ID_BEGIN;const template: IssueTemplate = {- type: "bytebase.database.create",+ type: "bb.database.create",buildIssue: (ctx: TemplateContext): Omit<IssueNew, "projectId" | "creatorId"> => {@@ -23,18 +23,18 @@ const template: IssueTemplate = {return {name: "Request new db",- type: "bytebase.database.create",+ type: "bb.database.create",description: "",pipeline: {stageList: [{name: "Create database",environmentId: ctx.environmentList[0].id,- type: "bytebase.stage.database.create",+ type: "bb.stage.database.create",taskList: [{name: "Waiting for approval",- type: "bytebase.task.approve",+ type: "bb.task.approve",when: "MANUAL",},],diff --git a/frontend/src/plugins/issue/DatabaseGrantTemplate.ts b/frontend/src/plugins/issue/DatabaseGrantTemplate.tsindex cd7d21b345..95685ed11e 100644--- a/frontend/src/plugins/issue/DatabaseGrantTemplate.ts+++ b/frontend/src/plugins/issue/DatabaseGrantTemplate.ts@@ -14,7 +14,7 @@ const INPUT_READ_ONLY_FIELD_ID = INPUT_CUSTOM_FIELD_ID_BEGIN;const OUTPUT_DATABASE_FIELD_ID = OUTPUT_CUSTOM_FIELD_ID_BEGIN;const template: IssueTemplate = {- type: "bytebase.database.grant",+ type: "bb.database.grant",buildIssue: (ctx: TemplateContext): Omit<IssueNew, "projectId" | "creatorId"> => {@@ -22,18 +22,18 @@ const template: IssueTemplate = {return {name: "Request database access",- type: "bytebase.database.grant",+ type: "bb.database.grant",description: "",pipeline: {stageList: [{name: "Request database access",- type: "bytebase.stage.database.grant",+ type: "bb.stage.database.grant",environmentId: ctx.environmentList[0].id,taskList: [{name: "Waiting for approval",- type: "bytebase.task.approve",+ type: "bb.task.approve",when: "MANUAL",databaseId: ctx.databaseList[0].id,},diff --git a/frontend/src/plugins/issue/DatabaseSchemaUpdateTemplate.ts b/frontend/src/plugins/issue/DatabaseSchemaUpdateTemplate.tsindex 53e61aad50..4f3fc70aac 100644--- a/frontend/src/plugins/issue/DatabaseSchemaUpdateTemplate.ts+++ b/frontend/src/plugins/issue/DatabaseSchemaUpdateTemplate.ts@@ -10,7 +10,7 @@ import {import { Database, Stage, StageNew, IssueNew, UNKNOWN_ID } from "../../types";const template: IssueTemplate = {- type: "bytebase.database.schema.update",+ type: "bb.database.schema.update",buildIssue: (ctx: TemplateContext): Omit<IssueNew, "projectId" | "creatorId"> => {@@ -19,12 +19,12 @@ const template: IssueTemplate = {for (let i = 0; i < ctx.databaseList.length; i++) {stageList.push({name: `[${ctx.databaseList[i].instance.environment.name}] ${ctx.databaseList[i].name}`,- type: "bytebase.stage.schema.update",+ type: "bb.stage.schema.update",environmentId: ctx.environmentList[i].id,taskList: [{name: `Update ${ctx.databaseList[i].name} schema`,- type: "bytebase.task.database.schema.update",+ type: "bb.task.database.schema.update",when: "MANUAL",databaseId: ctx.databaseList[i].id,},@@ -33,7 +33,7 @@ const template: IssueTemplate = {}return {name: "Update database schema",- type: "bytebase.database.schema.update",+ type: "bb.database.schema.update",description: "",pipeline: {stageList,diff --git a/frontend/src/plugins/issue/DefaultTemplate.ts b/frontend/src/plugins/issue/DefaultTemplate.tsindex 0a84d765be..f9f830fa86 100644--- a/frontend/src/plugins/issue/DefaultTemplate.ts+++ b/frontend/src/plugins/issue/DefaultTemplate.ts@@ -2,13 +2,13 @@ import { IssueNew, UNKNOWN_ID } from "../../types";import { IssueTemplate, TemplateContext } from "../types";const template: IssueTemplate = {- type: "bytebase.general",+ type: "bb.general",buildIssue: (ctx: TemplateContext): Omit<IssueNew, "projectId" | "creatorId"> => {return {name: "",- type: "bytebase.general",+ type: "bb.general",description: "",payload: {},};diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.tsindex 0666e49703..0826d8e41c 100644--- a/frontend/src/router/index.ts+++ b/frontend/src/router/index.ts@@ -80,29 +80,29 @@ const routes: Array<RouteRecordRaw> = [["OWNER",[- "quickaction.bytebase.database.schema.update",- "quickaction.bytebase.database.create",- "quickaction.bytebase.database.troubleshoot",- "quickaction.bytebase.instance.create",- "quickaction.bytebase.user.manage",+ "quickaction.bb.database.schema.update",+ "quickaction.bb.database.create",+ "quickaction.bb.database.troubleshoot",+ "quickaction.bb.instance.create",+ "quickaction.bb.user.manage",],],["DBA",[- "quickaction.bytebase.database.schema.update",- "quickaction.bytebase.database.create",- "quickaction.bytebase.database.troubleshoot",- "quickaction.bytebase.instance.create",+ "quickaction.bb.database.schema.update",+ "quickaction.bb.database.create",+ "quickaction.bb.database.troubleshoot",+ "quickaction.bb.instance.create",],],["DEVELOPER",[- "quickaction.bytebase.database.schema.update",- "quickaction.bytebase.database.request",- "quickaction.bytebase.database.troubleshoot",- "quickaction.bytebase.project.create",+ "quickaction.bb.database.schema.update",+ "quickaction.bb.database.request",+ "quickaction.bb.database.troubleshoot",+ "quickaction.bb.project.create",],],]),@@ -275,15 +275,15 @@ const routes: Array<RouteRecordRaw> = [["OWNER",[- "quickaction.bytebase.environment.create",- "quickaction.bytebase.environment.reorder",+ "quickaction.bb.environment.create",+ "quickaction.bb.environment.reorder",],],["DBA",[- "quickaction.bytebase.environment.create",- "quickaction.bytebase.environment.reorder",+ "quickaction.bb.environment.create",+ "quickaction.bb.environment.reorder",],],]),@@ -318,9 +318,9 @@ const routes: Array<RouteRecordRaw> = [meta: {title: () => "Project",quickActionListByRole: new Map([- ["OWNER", ["quickaction.bytebase.project.create"]],- ["DBA", ["quickaction.bytebase.project.create"]],- ["DEVELOPER", ["quickaction.bytebase.project.create"]],+ ["OWNER", ["quickaction.bb.project.create"]],+ ["DBA", ["quickaction.bb.project.create"]],+ ["DEVELOPER", ["quickaction.bb.project.create"]],]),},components: {@@ -339,9 +339,9 @@ const routes: Array<RouteRecordRaw> = [.name;},quickActionListByRole: new Map([- ["OWNER", ["quickaction.bytebase.database.schema.update"]],- ["DBA", ["quickaction.bytebase.database.schema.update"]],- ["DEVELOPER", ["quickaction.bytebase.database.schema.update"]],+ ["OWNER", ["quickaction.bb.database.schema.update"]],+ ["DBA", ["quickaction.bb.database.schema.update"]],+ ["DEVELOPER", ["quickaction.bb.database.schema.update"]],]),allowBookmark: true,},@@ -357,8 +357,8 @@ const routes: Array<RouteRecordRaw> = [meta: {title: () => "Instance",quickActionListByRole: new Map([- ["OWNER", ["quickaction.bytebase.instance.create"]],- ["DBA", ["quickaction.bytebase.instance.create"]],+ ["OWNER", ["quickaction.bb.instance.create"]],+ ["DBA", ["quickaction.bb.instance.create"]],]),},components: {@@ -376,23 +376,23 @@ const routes: Array<RouteRecordRaw> = [["OWNER",[- "quickaction.bytebase.database.schema.update",- "quickaction.bytebase.database.create",+ "quickaction.bb.database.schema.update",+ "quickaction.bb.database.create",],],["DBA",[- "quickaction.bytebase.database.schema.update",- "quickaction.bytebase.database.create",+ "quickaction.bb.database.schema.update",+ "quickaction.bb.database.create",],],["DEVELOPER",[- "quickaction.bytebase.database.schema.update",- "quickaction.bytebase.database.request",- "quickaction.bytebase.database.troubleshoot",+ "quickaction.bb.database.schema.update",+ "quickaction.bb.database.request",+ "quickaction.bb.database.troubleshoot",],],]),@@ -613,7 +613,7 @@ router.beforeEach((to, from, next) => {if (to.name === "workspace.database.create") {if (- !store.getters["plan/feature"]("bytebase.dba-workflow") ||+ !store.getters["plan/feature"]("bb.dba-workflow") ||isDBAOrOwner(loginUser.role)) {next();@@ -628,7 +628,7 @@ router.beforeEach((to, from, next) => {if (to.name?.toString().startsWith("workspace.database.datasource")) {if (- !store.getters["plan/feature"]("bytebase.data-source") ||+ !store.getters["plan/feature"]("bb.data-source") ||!isDBAOrOwner(loginUser.role)) {next({diff --git a/frontend/src/store/modules/activity.ts b/frontend/src/store/modules/activity.tsindex 4985bfdef5..42329fae46 100644--- a/frontend/src/store/modules/activity.ts+++ b/frontend/src/store/modules/activity.ts@@ -87,7 +87,7 @@ const actions = {);// There might exist other activities happened since the last fetch, so we do a full refetch.- if (newActivity.actionType.startsWith("bytebase.issue.")) {+ if (newActivity.actionType.startsWith("bb.issue.")) {dispatch("fetchActivityListForIssue", newActivity.containerId);}@@ -130,7 +130,7 @@ const actions = {async deleteActivity({ dispatch }: any, activity: Activity) {await axios.delete(`/api/activity/${activity.id}`);- if (activity.actionType.startsWith("bytebase.issue.")) {+ if (activity.actionType.startsWith("bb.issue.")) {dispatch("fetchActivityListForIssue", activity.containerId);}},diff --git a/frontend/src/store/modules/auth.ts b/frontend/src/store/modules/auth.tsindex 6a3c472b17..d3066b9798 100644--- a/frontend/src/store/modules/auth.ts+++ b/frontend/src/store/modules/auth.ts@@ -20,7 +20,7 @@ const GUEST: Principal = {status: "ACTIVE",type: "END_USER",name: "Guest",- email: "[email protected]",+ email: "[email protected]",role: "GUEST",};diff --git a/frontend/src/store/modules/plan.ts b/frontend/src/store/modules/plan.tsindex 60397c7dd5..ec9853415f 100644--- a/frontend/src/store/modules/plan.ts+++ b/frontend/src/store/modules/plan.ts@@ -2,9 +2,9 @@ import { FeatureType, PlanState, PlanType } from "../../types";// A map from the a particular feature to the respective enablement of a particular planconst FEATURE_MATRIX: Map<FeatureType, boolean[]> = new Map([- ["bytebase.admin", [false, true, true]],- ["bytebase.dba-workflow", [false, false, true]],- ["bytebase.data-source", [false, false, false]],+ ["bb.admin", [false, true, true]],+ ["bb.dba-workflow", [false, false, true]],+ ["bb.data-source", [false, false, false]],]);const state: () => PlanState = () => ({diff --git a/frontend/src/types/common.ts b/frontend/src/types/common.tsindex 41456790b9..8301c81199 100644--- a/frontend/src/types/common.ts+++ b/frontend/src/types/common.ts@@ -50,16 +50,16 @@ export type Command = {};export type EnvironmentQuickActionType =- | "quickaction.bytebase.environment.create"- | "quickaction.bytebase.environment.reorder";-export type ProjectQuickActionType = "quickaction.bytebase.project.create";-export type InstanceQuickActionType = "quickaction.bytebase.instance.create";-export type UserQuickActionType = "quickaction.bytebase.user.manage";+ | "quickaction.bb.environment.create"+ | "quickaction.bb.environment.reorder";+export type ProjectQuickActionType = "quickaction.bb.project.create";+export type InstanceQuickActionType = "quickaction.bb.instance.create";+export type UserQuickActionType = "quickaction.bb.user.manage";export type DatabaseQuickActionType =- | "quickaction.bytebase.database.create" // Used by DBA and Owner- | "quickaction.bytebase.database.request" // Used by Developer- | "quickaction.bytebase.database.schema.update"- | "quickaction.bytebase.database.troubleshoot";+ | "quickaction.bb.database.create" // Used by DBA and Owner+ | "quickaction.bb.database.request" // Used by Developer+ | "quickaction.bb.database.schema.update"+ | "quickaction.bb.database.troubleshoot";export type QuickActionType =| EnvironmentQuickActionType@@ -228,7 +228,7 @@ export const unknown = (updatedTs: 0,name: "<<Unknown issue>>",status: "DONE",- type: "bytebase.general",+ type: "bb.general",description: "",subscriberList: [],payload: {},@@ -242,7 +242,7 @@ export const unknown = (updater: UNKNOWN_PRINCIPAL,updatedTs: 0,name: "<<Unknown stage>>",- type: "bytebase.stage.unknown",+ type: "bb.stage.unknown",environment: UNKNOWN_ENVIRONMENT,taskList: [],};@@ -256,7 +256,7 @@ export const unknown = (updater: UNKNOWN_PRINCIPAL,updatedTs: 0,name: "<<Unknown task>>",- type: "bytebase.task.unknown",+ type: "bb.task.unknown",status: "DONE",when: "ON_SUCCESS",database: UNKNOWN_DATABASE,@@ -267,7 +267,7 @@ export const unknown = (containerId: UNKNOWN_ID,createdTs: 0,updatedTs: 0,- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",creator: UNKNOWN_PRINCIPAL,updater: UNKNOWN_PRINCIPAL,comment: "<<Unknown comment>>",@@ -466,7 +466,7 @@ export const empty = (updatedTs: 0,name: "",status: "DONE",- type: "bytebase.general",+ type: "bb.general",description: "",subscriberList: [],payload: {},@@ -480,7 +480,7 @@ export const empty = (updater: EMPTY_PRINCIPAL,updatedTs: 0,name: "",- type: "bytebase.stage.unknown",+ type: "bb.stage.unknown",environment: EMPTY_ENVIRONMENT,taskList: [],};@@ -494,7 +494,7 @@ export const empty = (updater: EMPTY_PRINCIPAL,updatedTs: 0,name: "",- type: "bytebase.task.unknown",+ type: "bb.task.unknown",status: "DONE",when: "ON_SUCCESS",database: EMPTY_DATABASE,@@ -505,7 +505,7 @@ export const empty = (containerId: EMPTY_ID,createdTs: 0,updatedTs: 0,- actionType: "bytebase.issue.create",+ actionType: "bb.issue.create",creator: EMPTY_PRINCIPAL,updater: EMPTY_PRINCIPAL,comment: "",diff --git a/frontend/src/types/issue.ts b/frontend/src/types/issue.tsindex f14356ee5d..7e5cfd4fe2 100644--- a/frontend/src/types/issue.ts+++ b/frontend/src/types/issue.ts@@ -3,14 +3,14 @@ import { Pipeline, PipelineNew } from "./pipeline";import { Principal } from "./principal";import { Project } from "./project";-type IssueTypeGeneral = "bytebase.general";+type IssueTypeGeneral = "bb.general";type IssueTypeDatabase =- | "bytebase.database.create"- | "bytebase.database.grant"- | "bytebase.database.schema.update";+ | "bb.database.create"+ | "bb.database.grant"+ | "bb.database.schema.update";-type IssueTypeDataSource = "bytebase.data-source.request";+type IssueTypeDataSource = "bb.data-source.request";export type IssueType =| IssueTypeGeneraldiff --git a/frontend/src/types/pipeline.ts b/frontend/src/types/pipeline.tsindex 66962cbb4c..db5da0a374 100644--- a/frontend/src/types/pipeline.ts+++ b/frontend/src/types/pipeline.ts@@ -142,12 +142,12 @@ export type PipelineStatusPatch = {// Stageexport type StageType =- | "bytebase.stage.unknown"- | "bytebase.stage.final"- | "bytebase.stage.transition"- | "bytebase.stage.database.create"- | "bytebase.stage.database.grant"- | "bytebase.stage.schema.update";+ | "bb.stage.unknown"+ | "bb.stage.final"+ | "bb.stage.transition"+ | "bb.stage.database.create"+ | "bb.stage.database.grant"+ | "bb.stage.schema.update";export type StageRunnable = {auto: boolean;@@ -188,9 +188,9 @@ export type StageNew = {// Taskexport type TaskType =- | "bytebase.task.unknown"- | "bytebase.task.approve"- | "bytebase.task.database.schema.update";+ | "bb.task.unknown"+ | "bb.task.approve"+ | "bb.task.database.schema.update";export type TaskStatus = "PENDING" | "RUNNING" | "DONE" | "FAILED" | "SKIPPED";diff --git a/frontend/src/types/plan.ts b/frontend/src/types/plan.tsindex 99f5b4dc77..c9fdd6987a 100644--- a/frontend/src/types/plan.ts+++ b/frontend/src/types/plan.ts@@ -1,12 +1,12 @@export type FeatureType =// Support Owner and DBA role at the workspace level- | "bytebase.admin"+ | "bb.admin"// Support DBA workflow, including// 1. Developers can't create database directly, they need to do this via a request db issue.// 2. Allow developers to submit troubleshooting ticket.- | "bytebase.dba-workflow"+ | "bb.dba-workflow"// Support defining extra data source for a database and exposing the related data source UI.- | "bytebase.data-source";+ | "bb.data-source";export enum PlanType {FREE = 0,diff --git a/frontend/src/utils/role.ts b/frontend/src/utils/role.tsindex ab82dce760..fdec6d662f 100644--- a/frontend/src/utils/role.ts+++ b/frontend/src/utils/role.ts@@ -9,12 +9,12 @@ export function registerStoreWithRoleUtil(theStore: Store<any>) {// Returns true if admin feature is NOT supported or the principal is OWNERexport function isOwner(role: RoleType): boolean {- return !store.getters["plan/feature"]("bytebase.admin") || role == "OWNER";+ return !store.getters["plan/feature"]("bb.admin") || role == "OWNER";}// Returns true if admin feature is NOT supported or the principal is DBAexport function isDBA(role: RoleType): boolean {- return !store.getters["plan/feature"]("bytebase.admin") || role == "DBA";+ return !store.getters["plan/feature"]("bb.admin") || role == "DBA";}export function isDBAOrOwner(role: RoleType): boolean {@@ -23,14 +23,12 @@ export function isDBAOrOwner(role: RoleType): boolean {// Returns true if admin feature is NOT supported or the principal is DEVELOPERexport function isDeveloper(role: RoleType): boolean {- return (- !store.getters["plan/feature"]("bytebase.admin") || role == "DEVELOPER"- );+ return !store.getters["plan/feature"]("bb.admin") || role == "DEVELOPER";}// Returns true if admin feature is NOT supported or the principal is GUESTexport function isGuest(role: RoleType): boolean {- return !store.getters["plan/feature"]("bytebase.admin") || role == "GUEST";+ return !store.getters["plan/feature"]("bb.admin") || role == "GUEST";}export function roleName(role: RoleType): string {@@ -48,13 +46,11 @@ export function roleName(role: RoleType): string {// Project Roleexport function isProjectOwner(role: ProjectRoleType): boolean {- return !store.getters["plan/feature"]("bytebase.admin") || role == "OWNER";+ return !store.getters["plan/feature"]("bb.admin") || role == "OWNER";}export function isProjectDeveloper(role: ProjectRoleType): boolean {- return (- !store.getters["plan/feature"]("bytebase.admin") || role == "DEVELOPER"- );+ return !store.getters["plan/feature"]("bb.admin") || role == "DEVELOPER";}export function projectRoleName(role: ProjectRoleType): string {diff --git a/frontend/src/views/DatabaseDetail.vue b/frontend/src/views/DatabaseDetail.vueindex c85ce6a47e..648d77cf3f 100644--- a/frontend/src/views/DatabaseDetail.vue+++ b/frontend/src/views/DatabaseDetail.vue@@ -318,7 +318,7 @@ export default {const currentUser = computed(() => store.getters["auth/currentUser"]());const hasDataSourceFeature = computed(() =>- store.getters["plan/feature"]("bytebase.data-source")+ store.getters["plan/feature"]("bb.data-source"));const database = computed(() => {diff --git a/frontend/src/views/DatabaseNew.vue b/frontend/src/views/DatabaseNew.vueindex 7549563555..a982962dcd 100644--- a/frontend/src/views/DatabaseNew.vue+++ b/frontend/src/views/DatabaseNew.vue@@ -242,28 +242,21 @@ export default {// If it's from database request issue, we disallow changing the preset field.// This is to prevent accidentally changing the requested field.const allowEditProject = computed(() => {- return (- state.fromIssueType != "bytebase.database.create" || !state.projectId- );+ return state.fromIssueType != "bb.database.create" || !state.projectId;});const allowEditEnvironment = computed(() => {return (- state.fromIssueType != "bytebase.database.create" ||- !state.environmentId+ state.fromIssueType != "bb.database.create" || !state.environmentId);});const allowEditDatabaseName = computed(() => {- return (- state.fromIssueType != "bytebase.database.create" || !state.databaseName- );+ return state.fromIssueType != "bb.database.create" || !state.databaseName;});const allowEditIssue = computed(() => {- return (- state.fromIssueType != "bytebase.database.create" || !state.issueId- );+ return state.fromIssueType != "bb.database.create" || !state.issueId;});const instanceLink = computed((): string => {diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vueindex 3dd632c264..fbded399a2 100644--- a/frontend/src/views/EnvironmentDashboard.vue+++ b/frontend/src/views/EnvironmentDashboard.vue@@ -119,14 +119,14 @@ export default {onMounted(() => {store.dispatch("command/registerCommand", {- id: "bytebase.environment.create",+ id: "bb.environment.create",registerId: "environment.dashboard",run: () => {createEnvironment();},});store.dispatch("command/registerCommand", {- id: "bytebase.environment.reorder",+ id: "bb.environment.reorder",registerId: "environment.dashboard",run: () => {startReorder();@@ -146,11 +146,11 @@ export default {onUnmounted(() => {store.dispatch("command/unregisterCommand", {- id: "bytebase.environment.create",+ id: "bb.environment.create",registerId: "environment.dashboard",});store.dispatch("command/unregisterCommand", {- id: "bytebase.environment.reorder",+ id: "bb.environment.reorder",registerId: "environment.dashboard",});});diff --git a/frontend/src/views/InstanceDetail.vue b/frontend/src/views/InstanceDetail.vueindex bba58fd6c6..a61e4ae940 100644--- a/frontend/src/views/InstanceDetail.vue+++ b/frontend/src/views/InstanceDetail.vue@@ -75,7 +75,7 @@ export default {const store = useStore();const hasDataSourceFeature = computed(() =>- store.getters["plan/feature"]("bytebase.data-source")+ store.getters["plan/feature"]("bb.data-source"));const instance = computed(diff --git a/frontend/src/views/IssueActivityPanel.vue b/frontend/src/views/IssueActivityPanel.vueindex d1dc212157..6505cd9165 100644--- a/frontend/src/views/IssueActivityPanel.vue+++ b/frontend/src/views/IssueActivityPanel.vue@@ -17,7 +17,7 @@aria-hidden="true"></span><div class="relative flex items-start">- <template v-if="activity.actionType == 'bytebase.issue.create'">+ <template v-if="activity.actionType == 'bb.issue.create'"><div class="relative pl-0.5"><divclass="w-7 h-7 bg-control-bg rounded-full ring-4 ring-white flex items-center justify-center"@@ -38,9 +38,7 @@</div></template><template- v-else-if="- activity.actionType == 'bytebase.issue.field.update'- "+ v-else-if="activity.actionType == 'bb.issue.field.update'"><div class="relative pl-0.5"><div@@ -100,8 +98,7 @@<templatev-if="activity.createdTs != activity.updatedTs &&- activity.actionType ==- 'bytebase.issue.comment.create'+ activity.actionType == 'bb.issue.comment.create'">(edited@@ -140,8 +137,7 @@<!-- Delete Comment Button--><buttonv-if="- activity.actionType ==- 'bytebase.issue.comment.create'+ activity.actionType == 'bb.issue.comment.create'"class="btn-icon"@click.prevent="@@ -416,7 +412,7 @@ export default {props.issue.id);return list.filter((activity: Activity) => {- if (activity.actionType == "bytebase.issue.field.update") {+ if (activity.actionType == "bb.issue.field.update") {let containUserVisibleChange = false;for (const update of (activity.payload as ActionFieldUpdatePayload)?.changeList || []) {@@ -440,7 +436,7 @@ export default {const doCreateComment = () => {store.dispatch("activity/createActivity", {- actionType: "bytebase.issue.comment.create",+ actionType: "bb.issue.comment.create",containerId: props.issue.id,creatorId: currentUser.value.id,comment: newComment.value,@@ -507,12 +503,12 @@ export default {const actionSentence = (activity: Activity): string => {switch (activity.actionType) {- case "bytebase.issue.create":+ case "bb.issue.create":return "created issue";- case "bytebase.issue.comment.create":+ case "bb.issue.comment.create":return "commented";- case "bytebase.issue.field.update":- case "bytebase.issue.status.update": {+ case "bb.issue.field.update":+ case "bb.issue.status.update": {const updateInfoList: string[] = [];for (const update of (activity.payload as ActionFieldUpdatePayload)?.changeList || []) {@@ -597,7 +593,7 @@ export default {}return "updated";}- case "bytebase.pipeline.task.status.update": {+ case "bb.pipeline.task.status.update": {if (props.issue.pipeline.id != EMPTY_ID) {const payload = activity.payload as ActionTaskStatusUpdatePayload;const task = findTaskById(props.issue.pipeline, payload.taskId);diff --git a/frontend/src/views/IssueDetail.vue b/frontend/src/views/IssueDetail.vueindex 4ab84f8196..221822534e 100644--- a/frontend/src/views/IssueDetail.vue+++ b/frontend/src/views/IssueDetail.vue@@ -536,13 +536,13 @@ export default {const showIssueSqlPanel = computed(() => {return (- state.issue.type == "bytebase.general" ||- state.issue.type == "bytebase.database.schema.update"+ state.issue.type == "bb.general" ||+ state.issue.type == "bb.database.schema.update");});const showIssueRollbackSqlPanel = computed(() => {- return state.issue.type == "bytebase.database.schema.update";+ return state.issue.type == "bb.database.schema.update";});return {diff --git a/frontend/src/views/IssueOutputPanel.vue b/frontend/src/views/IssueOutputPanel.vueindex 133ccad348..2b54b1feeb 100644--- a/frontend/src/views/IssueOutputPanel.vue+++ b/frontend/src/views/IssueOutputPanel.vue@@ -178,8 +178,8 @@ export default {return false;}return (- props.issue.type == "bytebase.database.create" ||- props.issue.type == "bytebase.database.grant"+ props.issue.type == "bb.database.create" ||+ props.issue.type == "bb.database.grant");});diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vueindex f3d7c357c1..c2d18f3b04 100644--- a/frontend/src/views/ProfileDashboard.vue+++ b/frontend/src/views/ProfileDashboard.vue@@ -196,7 +196,7 @@ export default {);const hasAdminFeature = computed(() =>- store.getters["plan/feature"]("bytebase.admin")+ store.getters["plan/feature"]("bb.admin"));const principal = computed(() => {