Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Assigne the task assignee to current user in demo mode to ease the experience. Also fix the assigneeId init to the prinicipalSelect
天舟cdc26d7f9363
diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vueindex af8403347f..4d9e1b2b0f 100644--- a/frontend/src/views/TaskDetail.vue+++ b/frontend/src/views/TaskDetail.vue@@ -182,7 +182,7 @@ import { useRouter } from "vue-router";import cloneDeep from "lodash-es/cloneDeep";import isEmpty from "lodash-es/isEmpty";import isEqual from "lodash-es/isEqual";-import { idFromSlug, taskSlug, pendingResolve } from "../utils";+import { idFromSlug, taskSlug, isDemo } from "../utils";import TaskHighlightPanel from "../views/TaskHighlightPanel.vue";import TaskStageFlow from "./TaskStageFlow.vue";import TaskOutputPanel from "../views/TaskOutputPanel.vue";@@ -336,6 +336,11 @@ export default {currentUser: currentUser.value,});+ // For demo mode, we assign the task to the current user, so it can also experience the assignee user flow.+ if (isDemo()) {+ newTask.assigneeId = currentUser.value.id;+ }+newTask.creatorId = currentUser.value.id;if (router.currentRoute.value.query.name) {diff --git a/frontend/src/views/TaskSidebar.vue b/frontend/src/views/TaskSidebar.vueindex af6eb9c260..dc337ed503 100644--- a/frontend/src/views/TaskSidebar.vue+++ b/frontend/src/views/TaskSidebar.vue@@ -20,7 +20,7 @@<div class="w-full"><PrincipalSelect:disabled="!allowEditAssignee"- :selectedId="task.assignee?.id"+ :selectedId="$props.new ? task.assigneeId : task.assignee?.id":allowAllRoles="false"@select-principal-id="(principalId) => {