Skip to content

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

chore: add expiration field in frontend (#6877)

boojack4fd755598d78
diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
index 3dad329733..ff05b4dd13 100644
--- a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
+++ b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
@@ -450,6 +450,9 @@ const doCreateIssue = async () => {
condition: {
expression: celExpressionString,
},
+ // We need to pass a string type value to the expiration field because
+ // the type of Duration proto is string.
+ expiration: `${expireDays * 24 * 60 * 60}s`,
},
};
diff --git a/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue b/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue
index 95e52fd0aa..8f8260a629 100644
--- a/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue
+++ b/frontend/src/components/Issue/panel/RequestQueryPanel/index.vue
@@ -313,6 +313,7 @@ const doCreateIssue = async () => {
condition: {
expression: celExpressionString,
},
+ expiration: `${expireDays * 24 * 60 * 60}s`,
},
};