Skip to content

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

fix: several fix (#12548)

ecmadao7d6c16c7b178
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.go
index ad14061e7c..4aa223c5c0 100644
--- a/backend/api/v1/instance_service.go
+++ b/backend/api/v1/instance_service.go
@@ -1186,6 +1186,7 @@ func convertToV1DataSources(dataSources []*store.DataSourceMessage) ([]*v1pb.Dat
ReplicaSet: ds.ReplicaSet,
DirectConnection: ds.DirectConnection,
Region: ds.Region,
+ WarehouseId: ds.WarehouseID,
})
}
diff --git a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
index 01c30ba2b0..6d1c0eb127 100644
--- a/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
+++ b/frontend/src/components/InstanceForm/DataSourceSection/DataSourceForm.vue
@@ -568,7 +568,10 @@ MIIEvQ...
<template v-if="basicInfo.engine === Engine.DATABRICKS">
<div>
- <div class="textlabel black mt-4">Warehouse ID</div>
+ <div class="textlabel black mt-4">
+ Warehouse ID
+ <span class="text-red-600">*</span>
+ </div>
<NInput
v-model:value="dataSource.warehouseId"
class="mt-2"
@@ -577,25 +580,32 @@ MIIEvQ...
</div>
<div class="mt-2 sm:col-span-3 sm:col-start-1">
<NRadioGroup v-model:value="databricksAuth">
- <NRadio :value="'PASSWORD'"> Password </NRadio>
+ <NRadio :value="'PASSWORD'">
+ {{ $t("common.password") }}
+ </NRadio>
<NRadio :value="'ACCESS_TOKEN'"> Access Token </NRadio>
</NRadioGroup>
</div>
<div v-if="databricksAuth === 'PASSWORD'">
- <div class="textlabel black mt-4">Username</div>
+ <div class="textlabel black mt-4">
+ {{ $t("common.username") }}
+ </div>
<NInput
v-model:value="dataSource.username"
class="mt-2 w-full"
:disabled="!allowEdit"
/>
- <div class="textlabel black mt-4">Password</div>
+ <div class="textlabel black mt-4">
+ {{ $t("common.password") }}
+ </div>
<NInput
v-model:value="dataSource.password"
type="password"
show-password-on="click"
class="mt-2 w-full"
:disabled="!allowEdit"
+ :placeholder="$t('instance.password-write-only')"
/>
<div class="textlabel black mt-4">Account ID</div>
<NInput
@@ -606,7 +616,10 @@ MIIEvQ...
/>
</div>
<div v-else>
- <div class="textlabel black mt-4">Token</div>
+ <div class="textlabel black mt-4">
+ Token
+ <span class="text-red-600">*</span>
+ </div>
<NInput
v-model:value="dataSource.authenticationPrivateKey"
class="mt-2 w-full"
diff --git a/frontend/src/components/InstanceForm/context.ts b/frontend/src/components/InstanceForm/context.ts
index 6a0c53e4b0..a8d53dcf21 100644
--- a/frontend/src/components/InstanceForm/context.ts
+++ b/frontend/src/components/InstanceForm/context.ts
@@ -133,6 +133,10 @@ export const provideInstanceFormContext = (baseContext: {
if (!ds.sid && !ds.serviceName) {
return false;
}
+ } else if (basicInfo.value.engine === Engine.DATABRICKS) {
+ if (!ds.warehouseId) {
+ return false;
+ }
}
if (ds.saslConfig?.krbConfig) {
diff --git a/frontend/src/components/ProjectChangeHistoryPanel.vue b/frontend/src/components/ProjectChangeHistoryPanel.vue
index 2bfb484370..8a8a30c077 100644
--- a/frontend/src/components/ProjectChangeHistoryPanel.vue
+++ b/frontend/src/components/ProjectChangeHistoryPanel.vue
@@ -17,7 +17,10 @@
{{ section.title }}
</h1>
</div>
- <ChangeHistoryDataTable :change-histories="section.list" />
+ <ChangeHistoryDataTable
+ :key="`${section.title}-${i}`"
+ :change-histories="section.list"
+ />
</div>
</template>
<NoDataPlaceholder v-else>
diff --git a/frontend/src/components/ProjectMember/AddProjectMember/AddProjectMemberForm.vue b/frontend/src/components/ProjectMember/AddProjectMember/AddProjectMemberForm.vue
index 862e9423e6..5cc884e917 100644
--- a/frontend/src/components/ProjectMember/AddProjectMember/AddProjectMemberForm.vue
+++ b/frontend/src/components/ProjectMember/AddProjectMember/AddProjectMemberForm.vue
@@ -294,7 +294,7 @@ const generateConditionTitle = () => {
let conditionSuffix = "";
if (
state.role === PresetRoleType.PROJECT_QUERIER ||
- state.role === PresetRoleType.PROJECT_QUERIER
+ state.role === PresetRoleType.PROJECT_EXPORTER
) {
if (!state.databaseResources || state.databaseResources.length === 0) {
conditionSuffix = `${conditionSuffix} All`;