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: do not push notification when comment issue (#11626)
boojacke220239f9e8c
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vueindex d5c6ba7725..bc72e0b11e 100644--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentList.vue@@ -220,8 +220,8 @@ const doCreateComment = async (comment: string) => {});state.newComment = "";await prepareIssueComments();- // // Because the user just added a comment and we assume she is interested in this- // // issue, and we add her to the subscriber list if she is not there+ // Because the user just added a comment and we assume she is interested in this+ // issue, and we add her to the subscriber list if she is not theretry {await doSubscribeIssue(issue.value, currentUser.value);} catch {diff --git a/frontend/src/components/IssueV1/logic/subscriber.ts b/frontend/src/components/IssueV1/logic/subscriber.tsindex 002bd91263..adb750bcb3 100644--- a/frontend/src/components/IssueV1/logic/subscriber.ts+++ b/frontend/src/components/IssueV1/logic/subscriber.ts@@ -7,7 +7,8 @@ import { Issue } from "@/types/proto/v1/issue_service";export const updateIssueSubscribers = async (issue: Issue,- subscribers: string[]+ subscribers: string[],+ silent?: boolean // If silent is true, no notification will be pushed) => {const issuePatch = Issue.fromJSON({...issue,@@ -18,11 +19,13 @@ export const updateIssueSubscribers = async (updateMask: ["subscribers"],});Object.assign(issue, updated);- pushNotification({- module: "bytebase",- style: "SUCCESS",- title: t("common.updated"),- });+ if (!silent) {+ pushNotification({+ module: "bytebase",+ style: "SUCCESS",+ title: t("common.updated"),+ });+ }};export const toggleSubscribeIssue = async (issue: Issue, user: User) => {@@ -45,5 +48,5 @@ export const doSubscribeIssue = async (issue: Issue, user: User) => {return;}subscribers.push(userTag);- return await updateIssueSubscribers(issue, subscribers);+ return await updateIssueSubscribers(issue, subscribers, true);};