Skip to content

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

chore: suppress unnecessary error notifications (#6600)

Liu Ji1ec4c6ef9407
diff --git a/frontend/src/components/InstanceForm/InstanceForm.vue b/frontend/src/components/InstanceForm/InstanceForm.vue
index 3b16b8b8e3..6f815d2d78 100644
--- a/frontend/src/components/InstanceForm/InstanceForm.vue
+++ b/frontend/src/components/InstanceForm/InstanceForm.vue
@@ -1187,7 +1187,8 @@ const validateResourceId = async (
try {
const instance = await instanceV1Store.getOrFetchInstanceByName(
- instanceNamePrefix + resourceId
+ instanceNamePrefix + resourceId,
+ true /* silent */
);
if (instance) {
return [
diff --git a/frontend/src/store/modules/v1/instance.ts b/frontend/src/store/modules/v1/instance.ts
index 510221d67a..677c2f27c2 100644
--- a/frontend/src/store/modules/v1/instance.ts
+++ b/frontend/src/store/modules/v1/instance.ts
@@ -89,22 +89,27 @@ export const useInstanceV1Store = defineStore("instance_v1", () => {
name: instance.name,
});
};
- const fetchInstanceByName = async (name: string) => {
- const instance = await instanceServiceClient.getInstance({
- name,
- });
+ const fetchInstanceByName = async (name: string, silent = false) => {
+ const instance = await instanceServiceClient.getInstance(
+ {
+ name,
+ },
+ {
+ silent,
+ }
+ );
const composed = await upsertInstances([instance]);
return composed[0];
};
const getInstanceByName = (name: string) => {
return instanceMapByName.get(name) ?? unknownInstance();
};
- const getOrFetchInstanceByName = async (name: string) => {
+ const getOrFetchInstanceByName = async (name: string, silent = false) => {
const cached = instanceMapByName.get(name);
if (cached) {
return cached;
}
- await fetchInstanceByName(name);
+ await fetchInstanceByName(name, silent);
return getInstanceByName(name);
};
const fetchInstanceByUID = async (uid: string) => {