You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2021/12/29 07:22:23 UTC
[GitHub] [dolphinscheduler] SbloodyS opened a new pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
SbloodyS opened a new pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704
<!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
## Purpose of the pull request
close #6151
## Brief change log
add cache for getProcessByProjectCode
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] Wangyizhi1 commented on a change in pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
Posted by GitBox <gi...@apache.org>.
Wangyizhi1 commented on a change in pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#discussion_r776230167
##########
File path: dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/dependItemList.vue
##########
@@ -137,15 +140,21 @@
},
_getProcessByProjectCode (code) {
return new Promise((resolve, reject) => {
- this.store.dispatch('dag/getProcessByProjectCode', code).then(res => {
- let definitionList = _.map(_.cloneDeep(res), v => {
- return {
- value: v.processDefinition.code,
- label: v.processDefinition.name
- }
+ let definitionCacheList = JSON.parse(sessionStorage.getItem(projectCodePrefix + code))
+ if (definitionCacheList) {
Review comment:
If sessionStorage is used here, and the user adds a workflow after caching, the drop-down list may not display the new workflow?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] codecov-commenter commented on pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#issuecomment-1002441144
# [Codecov](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#7704](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (5f68c0f) into [dev](https://codecov.io/gh/apache/dolphinscheduler/commit/71ccb42697e197b2668a08a83eb9bb19261b4f5a?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (71ccb42) will **increase** coverage by `0.07%`.
> The diff coverage is `n/a`.
[](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
```diff
@@ Coverage Diff @@
## dev #7704 +/- ##
============================================
+ Coverage 41.08% 41.16% +0.07%
- Complexity 3674 3680 +6
============================================
Files 642 642
Lines 26659 26659
Branches 2992 2992
============================================
+ Hits 10953 10973 +20
+ Misses 14659 14638 -21
- Partials 1047 1048 +1
```
| [Impacted Files](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...dolphinscheduler/remote/future/ResponseFuture.java](https://codecov.io/gh/apache/dolphinscheduler/pull/7704/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZG9scGhpbnNjaGVkdWxlci1yZW1vdGUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvcmVtb3RlL2Z1dHVyZS9SZXNwb25zZUZ1dHVyZS5qYXZh) | `81.96% <0.00%> (-1.64%)` | :arrow_down: |
| [...er/master/dispatch/host/assign/RandomSelector.java](https://codecov.io/gh/apache/dolphinscheduler/pull/7704/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZG9scGhpbnNjaGVkdWxlci1tYXN0ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9kaXNwYXRjaC9ob3N0L2Fzc2lnbi9SYW5kb21TZWxlY3Rvci5qYXZh) | `83.33% <0.00%> (+5.55%)` | :arrow_up: |
| [...rver/master/processor/queue/TaskResponseEvent.java](https://codecov.io/gh/apache/dolphinscheduler/pull/7704/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZG9scGhpbnNjaGVkdWxlci1tYXN0ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9wcm9jZXNzb3IvcXVldWUvVGFza1Jlc3BvbnNlRXZlbnQuamF2YQ==) | `100.00% <0.00%> (+6.45%)` | :arrow_up: |
| [...er/master/processor/queue/TaskResponseService.java](https://codecov.io/gh/apache/dolphinscheduler/pull/7704/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZG9scGhpbnNjaGVkdWxlci1tYXN0ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2RvbHBoaW5zY2hlZHVsZXIvc2VydmVyL21hc3Rlci9wcm9jZXNzb3IvcXVldWUvVGFza1Jlc3BvbnNlU2VydmljZS5qYXZh) | `68.18% <0.00%> (+18.18%)` | :arrow_up: |
------
[Continue to review full report at Codecov](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Last update [71ccb42...5f68c0f](https://codecov.io/gh/apache/dolphinscheduler/pull/7704?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] sonarcloud[bot] commented on pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
Posted by GitBox <gi...@apache.org>.
sonarcloud[bot] commented on pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#issuecomment-1002443380
Kudos, SonarCloud Quality Gate passed! 
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=CODE_SMELL) [2 Code Smells](https://sonarcloud.io/project/issues?id=apache-dolphinscheduler&pullRequest=7704&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=7704&metric=coverage&view=list) No Coverage information
[](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=7704&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache-dolphinscheduler&pullRequest=7704&metric=new_duplicated_lines_density&view=list)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] SbloodyS closed pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
Posted by GitBox <gi...@apache.org>.
SbloodyS closed pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] Wangyizhi1 commented on a change in pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
Posted by GitBox <gi...@apache.org>.
Wangyizhi1 commented on a change in pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#discussion_r776230167
##########
File path: dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/dependItemList.vue
##########
@@ -137,15 +140,21 @@
},
_getProcessByProjectCode (code) {
return new Promise((resolve, reject) => {
- this.store.dispatch('dag/getProcessByProjectCode', code).then(res => {
- let definitionList = _.map(_.cloneDeep(res), v => {
- return {
- value: v.processDefinition.code,
- label: v.processDefinition.name
- }
+ let definitionCacheList = JSON.parse(sessionStorage.getItem(projectCodePrefix + code))
+ if (definitionCacheList) {
Review comment:
If sessionStorage is used here, and the user adds a workflow after caching, the drop-down list may not display the new workflow?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] Wangyizhi1 commented on a change in pull request #7704: [Feature-6151][Dependent Node UI] dependent node loaded multiple times
Posted by GitBox <gi...@apache.org>.
Wangyizhi1 commented on a change in pull request #7704:
URL: https://github.com/apache/dolphinscheduler/pull/7704#discussion_r776235252
##########
File path: dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/dependItemList.vue
##########
@@ -137,15 +140,21 @@
},
_getProcessByProjectCode (code) {
return new Promise((resolve, reject) => {
- this.store.dispatch('dag/getProcessByProjectCode', code).then(res => {
- let definitionList = _.map(_.cloneDeep(res), v => {
- return {
- value: v.processDefinition.code,
- label: v.processDefinition.name
- }
+ let definitionCacheList = JSON.parse(sessionStorage.getItem(projectCodePrefix + code))
+ if (definitionCacheList) {
Review comment:
Maybe it’s better to use component state to cache project definition list
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org