Skip to content

[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.ProjectController#10832

Merged
SbloodyS merged 31 commits intoapache:devfrom
tracehh:dev
Jul 26, 2022
Merged

[Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.ProjectController#10832
SbloodyS merged 31 commits intoapache:devfrom
tracehh:dev

Conversation

@tracehh
Copy link
Copy Markdown
Contributor

@tracehh tracehh commented Jul 7, 2022

Purpose of the pull request

Fix #10489

@tracehh tracehh changed the title [Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.Pr… [Feature][Api] Refactor org.apache.dolphinscheduler.api.controller.ProjectController Jul 7, 2022
@SbloodyS
Copy link
Copy Markdown
Member

SbloodyS commented Jul 7, 2022

Hi @tracehh , please associate the issue.

@SbloodyS
Copy link
Copy Markdown
Member

SbloodyS commented Jul 7, 2022

see issue: #10489

to target specific issue from PR, we recommend use keyword fix: #issue_id or close: #issue_id or closes: #issue_id in your PR describe(not title, just desc). It would not only connect issue to PR but also close issue automatically when PR is be closed.

@tracehh
Copy link
Copy Markdown
Contributor Author

tracehh commented Jul 7, 2022

Get it, thanks @SbloodyS

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 11, 2022

Codecov Report

Merging #10832 (a59e4b4) into dev (65d2b8f) will increase coverage by 0.03%.
The diff coverage is 67.69%.

@@             Coverage Diff              @@
##                dev   #10832      +/-   ##
============================================
+ Coverage     40.35%   40.39%   +0.03%     
- Complexity     4865     4887      +22     
============================================
  Files           943      953      +10     
  Lines         37062    37142      +80     
  Branches       4068     4070       +2     
============================================
+ Hits          14958    15005      +47     
- Misses        20601    20629      +28     
- Partials       1503     1508       +5     
Impacted Files Coverage Δ
...cheduler/api/dto/project/ProjectCreateRequest.java 0.00% <0.00%> (ø)
.../api/dto/project/ProjectDeleteBooleanResponse.java 0.00% <0.00%> (ø)
...heduler/api/service/impl/SchedulerServiceImpl.java 8.55% <0.00%> (ø)
...scheduler/api/dto/project/ProjectQueryRequest.java 50.00% <50.00%> (ø)
...hinscheduler/api/controller/ProjectController.java 68.75% <66.66%> (+0.75%) ⬆️
.../apache/dolphinscheduler/api/dto/PageQueryDto.java 66.66% <66.66%> (ø)
...nscheduler/api/controller/ProjectV2Controller.java 67.85% <67.85%> (ø)
...ler/api/dto/project/ProjectListPagingResponse.java 71.42% <71.42%> (ø)
...scheduler/api/dto/project/ProjectListResponse.java 71.42% <71.42%> (ø)
...phinscheduler/api/dto/project/ProjectResponse.java 71.42% <71.42%> (ø)
... and 7 more

@tracehh
Copy link
Copy Markdown
Contributor Author

tracehh commented Jul 11, 2022

@caishunfeng please review it, thx

Copy link
Copy Markdown
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM, but UT is missing, please add some UT of it.

Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

I think what you describe in #10489 is you want to refactor the whole ProjectController.

There seems to be a lot missing now.

@zhongjiajie
Copy link
Copy Markdown
Member

Hi @tracehh It is seem your UT failed, could you please take a look of the failed tests?

@tracehh
Copy link
Copy Markdown
Contributor Author

tracehh commented Jul 18, 2022

@caishunfeng @zhongjiajie please review and if it can merge

@tracehh
Copy link
Copy Markdown
Contributor Author

tracehh commented Jul 19, 2022

@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 71 Code Smells

34.8% 34.8% Coverage
0.0% 0.0% Duplication

Copy link
Copy Markdown
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

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

LGTM, do your guys have other option? @caishunfeng and @SbloodyS

Copy link
Copy Markdown
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

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

+1

@SbloodyS SbloodyS merged commit 8004e97 into apache:dev Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[API] Refactor org.apache.dolphinscheduler.api.controller.ProjectController

6 participants