未验证 提交 3aa34bc7 编写于 作者: M muzhongjiang 提交者: GitHub

[bugfix] "getNotifyGroupList" cache bug #3179 (#3200)

* add state

* fixed bug "jackson enum conversion  : InvalidFormatException"

* Word spelling modification
Comment modification
Word spelling modification,Comment modification,Log level modification

* Update EmailManager.java

* Update FlinkParameters.java

* Update SqlTask.java

* fixed  "getNotifyGroupList cache"  bug
Co-authored-by: Nmzjnumber1@163.com <mzjnumber1@163.com>
Co-authored-by: Ndailidong <dailidong66@gmail.com>
上级 a7aa58e6
...@@ -76,14 +76,9 @@ ...@@ -76,14 +76,9 @@
return '-' return '-'
}, },
_getNotifyGroupList () { _getNotifyGroupList () {
let notifyGroupListS = _.cloneDeep(this.store.state.dag.notifyGroupListS) || []
if (!notifyGroupListS.length) {
this.store.dispatch('dag/getNotifyGroupList').then(res => { this.store.dispatch('dag/getNotifyGroupList').then(res => {
this.notifyGroupList = res this.notifyGroupList = res
}) })
} else {
this.notifyGroupList = notifyGroupListS
}
}, },
_getWorkerGroupList () { _getWorkerGroupList () {
let stateWorkerGroupsList = this.store.state.security.workerGroupsListAll || [] let stateWorkerGroupsList = this.store.state.security.workerGroupsListAll || []
......
...@@ -243,16 +243,10 @@ ...@@ -243,16 +243,10 @@
}, },
_getNotifyGroupList () { _getNotifyGroupList () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let notifyGroupListS = _.cloneDeep(this.store.state.dag.notifyGroupListS) || []
if (!notifyGroupListS.length) {
this.store.dispatch('dag/getNotifyGroupList').then(res => { this.store.dispatch('dag/getNotifyGroupList').then(res => {
this.notifyGroupList = res this.notifyGroupList = res
resolve() resolve()
}) })
} else {
this.notifyGroupList = notifyGroupListS
resolve()
}
}) })
}, },
_getReceiver () { _getReceiver () {
......
...@@ -280,8 +280,6 @@ ...@@ -280,8 +280,6 @@
_getNotifyGroupList () { _getNotifyGroupList () {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let notifyGroupListS = _.cloneDeep(this.store.state.dag.notifyGroupListS) || []
if (!notifyGroupListS.length) {
this.store.dispatch('dag/getNotifyGroupList').then(res => { this.store.dispatch('dag/getNotifyGroupList').then(res => {
this.notifyGroupList = res this.notifyGroupList = res
if (this.notifyGroupList.length) { if (this.notifyGroupList.length) {
...@@ -290,10 +288,6 @@ ...@@ -290,10 +288,6 @@
reject(new Error(0)) reject(new Error(0))
} }
}) })
} else {
this.notifyGroupList = notifyGroupListS
resolve()
}
}) })
}, },
ok () { ok () {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册