-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature-10983] [refactor] ResourcesController #10998
Conversation
I have reactor the code and supplement UnitTest。but when i mvn package in my compute ,there has some stylecheck error like |
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/BaseService.java
Outdated
Show resolved
Hide resolved
I‘m sorry to forget to add license text for new class, so I repush the code |
I have fix all check-style error with incremental code @SbloodyS |
I had approved to run CI. |
it is confusing to me that i have checked by check-style plugin in my local , it also has no problem .Do you have any suggestions? |
The current CI is incremental detection. Please check all files you have modified. |
OK, it seems that check-style plugin skip the Test package |
198882f
to
a88d4bb
Compare
I try to fix check-style error ,please help to approve it |
@caishunfeng will you please help to review code |
...eduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
...-api/src/main/java/org/apache/dolphinscheduler/api/dto/resources/CreateDirectoryRequest.java
Outdated
Show resolved
Hide resolved
...uler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesV2Controller.java
Outdated
Show resolved
Hide resolved
314d16c
to
37e749c
Compare
@SbloodyS e2e MysqlDataSource module error , I haven't change it ,is it because I pull the lastest commit ? |
Please merge the latest dev branch again. This problem was just fixed this afternoon. |
Done |
I had approved to run CI. |
5d57607
to
62f4f9f
Compare
@SbloodyS Sorry ,I had e a mistake in code. now i had fix it .i find i can run action in my repo to check ALL UNIT Test , now |
It's alright. I had rerun the CI. |
Thanks! |
@SbloodyS I can see that there is still a check failed, but the status of the RP is "review required". Is this check important? How do I do it? Can you help me |
@SbloodyS Can you help to review code for PR ? |
...ler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
Outdated
Show resolved
Hide resolved
62f4f9f
to
4599cc6
Compare
@SbloodyS Excuse me ,but can you help approving |
Sorry for late reply. I had approved to run CI. |
SonarCloud Quality Gate failed. |
It’s no matter。can you help CR。 |
@SbloodyS can you please review code ? |
Sorry for late reply. I can't spare time these days. Do you have time to take a look at this PR? Thanks. @EricGao888 @caishunfeng @zhongjiajie @ruanwenjun @zhuangchong |
Sure, I will help with the review : ) |
@EricGao888 Excuse me, Can this PR still be review 。 |
Of course. |
public class UpdateResourceResponse extends Result<Object> { | ||
|
||
private Object data; | ||
|
||
public UpdateResourceResponse(Result<Object> result) { | ||
super(); | ||
this.setCode(result.getCode()); | ||
this.setMsg(result.getMsg()); | ||
this.setData(result.getData()); | ||
} | ||
|
||
@Override | ||
public Object getData() { | ||
return data; | ||
} | ||
|
||
@Override | ||
public void setData(Object data) { | ||
this.data = data; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
about all the response, is an other Result object, maybe we can directly use result object, we already have some example, you can see ScheduleV2Controller
as example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see ScheduleV2Controller
refer service method with V2 。So do I have to do the same. or i just to return result object like Result<Object>
| Map<String,
Object>`
...-api/src/test/java/org/apache/dolphinscheduler/api/controller/ResourcesV2ControllerTest.java
Show resolved
Hide resolved
This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs. |
This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request. |
refactor for api ResourcesController
fix #10983