Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: resolve conflict with PR 15427 (#15433)

ecmadao9d656db20f0f
diff --git a/frontend/src/components/TransferOutDatabaseForm/TransferOutDatabaseForm.vue b/frontend/src/components/TransferOutDatabaseForm/TransferOutDatabaseForm.vue
index 3b3fcc9434..d46b203436 100644
--- a/frontend/src/components/TransferOutDatabaseForm/TransferOutDatabaseForm.vue
+++ b/frontend/src/components/TransferOutDatabaseForm/TransferOutDatabaseForm.vue
@@ -192,7 +192,7 @@ const doTransfer = async () => {
if (databaseList.length > 0) {
await useDatabaseV1Store().batchUpdateDatabases({
parent: "-",
- requests: selectedDatabaseList.value.map((database) => {
+ requests: databaseList.map((database) => {
return UpdateDatabaseRequest.fromPartial({
database: {
name: database.name,
diff --git a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue
index fbe08e34c3..9f4459b9b7 100644
--- a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue
+++ b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue
@@ -374,7 +374,7 @@ const unAssignDatabases = async () => {
}
try {
state.loading = true;
- const databases = await useDatabaseV1Store().batchUpdateDatabases({
+ const databases = await databaseStore.batchUpdateDatabases({
parent: "-",
requests: assignedDatabases.value.map((database) => {
return UpdateDatabaseRequest.fromPartial({
@@ -591,7 +591,7 @@ const onLabelsApply = async (labelsList: { [key: string]: string }[]) => {
...Database.fromPartial(database),
labels: label,
};
- return await useDatabaseV1Store().updateDatabase({
+ return await databaseStore.updateDatabase({
database: patch,
updateMask: ["labels"],
});
@@ -607,7 +607,7 @@ const onLabelsApply = async (labelsList: { [key: string]: string }[]) => {
};
const onEnvironmentUpdate = async (environment: string) => {
- await useDatabaseV1Store().batchUpdateDatabases({
+ const updatedDatabases = await databaseStore.batchUpdateDatabases({
parent: "-",
requests: props.databases.map((database) => {
return UpdateDatabaseRequest.fromPartial({
@@ -619,6 +619,7 @@ const onEnvironmentUpdate = async (environment: string) => {
});
}),
});
+ emit("refresh", updatedDatabases);
pushNotification({
module: "bytebase",