-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement-15815][ui] improving to find current version identifier(#15815) #15933
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
Conversation
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/Version.java
Outdated
Show resolved
Hide resolved
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/mapper/VersionMapper.java
Outdated
Show resolved
Hide resolved
|
|
||
| Map<String, Object> queryUiPluginDetailById(int id); | ||
|
|
||
| Map<String, Object> queryProductInfo(User loginUser, int userId); |
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.
Please use a specific object rather than `Map<String, Object> as the service method result.
|
Is this PR want to solve #15875 ? |
SbloodyS
left a comment
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 can't find the code for the UI part. Where is it?
The front-end code has also been completed and will be submitted after the back-end is error free |
Features like this need to be committed at both the backend and frontend. |
Okay, then I will modify the interface return class and resubmit the front-end and back-end code |
+1 |
...heduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UiPluginController.java
Outdated
Show resolved
Hide resolved
...ler-api/src/test/java/org/apache/dolphinscheduler/api/controller/UiPluginControllerTest.java
Outdated
Show resolved
Hide resolved
|
|
||
| /** | ||
| * obtain project version and address | ||
| * @return product info | ||
| */ |
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.
| /** | |
| * obtain project version and address | |
| * @return product info | |
| */ | |
| /** | |
| * obtain project version and address | |
| * @return product info | |
| */ |
| /** | ||
| * ProductInfoDto | ||
| */ |
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.
| /** | |
| * ProductInfoDto | |
| */ | |
| /** | |
| * ProductInfoDto | |
| */ |
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.
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.
This comment is meaningless, you need to remove.
| import org.springframework.web.bind.annotation.PathVariable; | ||
| import org.springframework.web.bind.annotation.RequestParam; | ||
|
|
||
| import static org.apache.dolphinscheduler.api.enums.Status.*; |
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.
Avoid wildcard import.
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.
Please use mvn spotless:apply to fix these.
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.
Okay, I have executed it as required
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #15933 +/- ##
=========================================
Coverage 40.71% 40.71%
- Complexity 5246 5247 +1
=========================================
Files 1385 1385
Lines 46109 46117 +8
Branches 4923 4923
=========================================
+ Hits 18771 18775 +4
- Misses 25412 25415 +3
- Partials 1926 1927 +1 ☔ View full report in Codecov by Sentry. |
ruanwenjun
left a comment
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.
Basically LGTM.
Some NIP, it's not a good idea to add a unknown version here, version is a must.
|
@SbloodyS PTAL |
Thanks. In the scenario, unless the database version is empty, there will be no unknown |
SbloodyS
left a comment
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.
Please resolve conflicts.
� Conflicts: � dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/enums/Status.java
SbloodyS
left a comment
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.
+1
|
|
Awesome work, congrats on your first merged pull request! |







Purpose of the pull request
close #15815
close #15875
Brief change log
The version identifier of dolphinscheduler cannot be found on the UI. Please add the current version identifier on the UI.
在WEB 的UI界面上 无法找到当前运行的 dolphinscheduler 版本信息,无法确定当前运行的版本。
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
at testQueryProductInfo() method of UiPluginControllerTest class
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md