Skip to content

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

fix: missing issue description from plan (#14095)

boojackf78ed55e076b
diff --git a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue
index 5911023c0f..97c11ba1c0 100644
--- a/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue
+++ b/frontend/src/components/IssueV1/components/Sidebar/GhostSection/GhostSection.vue
@@ -80,7 +80,7 @@ const shouldShowGhostSection = computed(() => {
// 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) {
+ if (issue.value.planEntity?.releaseSource?.release) {
return false;
}
diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
index c76fcc97a0..45cf8f4fa7 100644
--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue
@@ -325,7 +325,7 @@ const allowEditStatementWhenCreating = computed(() => {
return false;
}
// Do not allow to edit statement for the plan with release source.
- if (issue.value.planEntity?.releaseSource) {
+ if (issue.value.planEntity?.releaseSource?.release) {
return false;
}
if (selectedTask.value.type === Task_Type.DATABASE_SCHEMA_BASELINE) {
@@ -385,7 +385,7 @@ const shouldShowEditButton = computed(() => {
return false;
}
// Do not allow to edit statement for the plan with release source.
- if (issue.value.planEntity?.releaseSource) {
+ if (issue.value.planEntity?.releaseSource?.release) {
return false;
}
// Will show another button group as [Upload][Cancel][Save]
diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
index 5cdc5cc16b..70c16ac71f 100644
--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
@@ -98,7 +98,7 @@ const schemaVersion = computed(() => {
const v = extractSchemaVersionFromTask(props.task);
// Always show the schema version for tasks from a release source.
- if (issue.value.planEntity?.releaseSource) {
+ if (issue.value.planEntity?.releaseSource?.release) {
return v;
}
diff --git a/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateIssueButton.vue b/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateIssueButton.vue
index 257d83cdcb..da9a799bfb 100644
--- a/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateIssueButton.vue
+++ b/frontend/src/components/Plan/components/HeaderSection/Actions/create/CreateIssueButton.vue
@@ -194,6 +194,7 @@ const buildIssue = () => {
issue.project = plan.value.projectEntity.name;
issue.projectEntity = plan.value.projectEntity;
issue.title = plan.value.title;
+ issue.description = plan.value.description;
issue.status = IssueStatus.OPEN;
issue.type = Issue_Type.DATABASE_CHANGE;
return issue;