Skip to content

[Fix-7654]Dependent node onChangeProjectCode error#7672

Merged
brave-lee merged 5 commits intoapache:devfrom
lenboo:dev-1227
Dec 28, 2021
Merged

[Fix-7654]Dependent node onChangeProjectCode error#7672
brave-lee merged 5 commits intoapache:devfrom
lenboo:dev-1227

Conversation

@lenboo
Copy link
Contributor

@lenboo lenboo commented Dec 28, 2021

close #7654 check the project permission.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

putMsg(result, Status.PROCESS_DEFINE_NOT_EXIST, codes);
return result;
}
HashMap<Long, Project> userProjects = new HashMap(Constants.DEFAULT_HASH_MAP_SIZE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to set the map size by db query result.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to set the map size by db query result.

It's just a default initialize value, and the hash map size can be extended automatically.

Copy link
Contributor

@brave-lee brave-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@brave-lee brave-lee merged commit 605767e into apache:dev Dec 28, 2021
lenboo added a commit to lenboo/dolphinscheduler that referenced this pull request Dec 28, 2021
* fix apache#7654 Dependent node onChangeProjectCode error

* fix apache#7654 Dependent node onChangeProjectCode error

* fix apache#7654 Dependent node onChangeProjectCode error

* update ut
caishunfeng pushed a commit that referenced this pull request Dec 28, 2021
* fix #7654 Dependent node onChangeProjectCode error

* fix #7654 Dependent node onChangeProjectCode error

* fix #7654 Dependent node onChangeProjectCode error

* update ut
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [UI] Dependent node onChangeProjectCode error

3 participants