Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update ghost checks for release (#14057)
boojackbc3f94833309
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vueindex d83ca55060..5911023c0f 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue@@ -78,6 +78,12 @@ const shouldShowGhostSection = computed(() => {return false;}+ // Hide ghost section if the release source is set for now.+ // TODO(steven): maybe we can support gh-ost for release source later.+ if (issue.value.planEntity?.releaseSource) {+ return false;+ }+// We need all tasks and specs to be gh-ost-able to enable gh-ost mode.const tasks = flattenTaskV1List(issue.value.rolloutEntity);if (isCreating.value) {diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vueindex 558a9a0318..32103ac1ca 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSwitch.vue@@ -33,7 +33,7 @@ import { NSwitch, NTooltip } from "naive-ui";import { computed, ref } from "vue";import { useI18n } from "vue-i18n";import InstanceAssignment from "@/components/InstanceAssignment.vue";-import { specForTask, useIssueContext } from "@/components/IssueV1/logic";+import { useIssueContext } from "@/components/IssueV1/logic";import type { ErrorItem } from "@/components/misc/ErrorList.vue";import { default as ErrorList } from "@/components/misc/ErrorList.vue";import { hasFeature } from "@/store";@@ -48,7 +48,7 @@ import {import { allowGhostForTask, useIssueGhostContext } from "./common";const { t } = useI18n();-const { isCreating, issue, selectedTask: task, events } = useIssueContext();+const { isCreating, issue, events } = useIssueContext();const { viewType, toggleGhost, showFeatureModal, showMissingInstanceLicense } =useIssueGhostContext();const isUpdating = ref(false);@@ -110,11 +110,9 @@ const toggleChecked = async (on: boolean) => {return;}- const spec = specForTask(issue.value.planEntity, task.value);- if (!spec) return;isUpdating.value = true;try {- await toggleGhost(spec, on);+ await toggleGhost(on);} finally {isUpdating.value = false;}diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.tsindex 3c3eff9c22..4a4f1320fd 100644--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/common.ts@@ -42,7 +42,7 @@ export type IssueGhostContext = {denyEditGhostFlagsReasons: Ref<string[]>;showFeatureModal: Ref<boolean>;showMissingInstanceLicense: Ref<boolean>;- toggleGhost: (spec: Plan_Spec, on: boolean) => Promise<void>;+ toggleGhost: (on: boolean) => Promise<void>;};export const KEY = Symbol(@@ -113,7 +113,7 @@ export const provideIssueGhostContext = () => {});});- const toggleGhost = async (spec: Plan_Spec, on: boolean) => {+ const toggleGhost = async (on: boolean) => {const overrides: Record<string, string> = {};if (on) {overrides["ghost"] = "1";diff --git a/frontend/src/components/Project/ProjectReleasesPanel.vue b/frontend/src/components/Project/ProjectReleasesPanel.vueindex 1f7b4b52ac..408afdf216 100644--- a/frontend/src/components/Project/ProjectReleasesPanel.vue+++ b/frontend/src/components/Project/ProjectReleasesPanel.vue@@ -2,7 +2,8 @@<div class="flex flex-col gap-y-2"><div class="relative min-h-[20rem]"><PagedReleaseTable- :session-key="`project-${project}-releases`"+ :key="project.name"+ :session-key="`project-${project.name}-releases`":project="project.name":page-size="50">