Skip to content

Conversation

@pusl6
Copy link
Contributor

@pusl6 pusl6 commented Apr 28, 2024

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


Map<String, Object> queryUiPluginDetailById(int id);

Map<String, Object> queryProductInfo(User loginUser, int userId);
Copy link
Member

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.

@ruanwenjun
Copy link
Member

Is this PR want to solve #15875 ?

Copy link
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 can't find the code for the UI part. Where is it?

@pusl6
Copy link
Contributor Author

pusl6 commented Apr 29, 2024

Is this PR want to solve #15875 ?

Is this PR want to solve #15875 ?
Yes, I am currently addressing the issue you mentioned

Is this PR want to solve #15875 ?
I am currently addressing the issue you mentioned, yes, and also addressing 15875

@pusl6
Copy link
Contributor Author

pusl6 commented Apr 29, 2024

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

@SbloodyS
Copy link
Member

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.

@pusl6
Copy link
Contributor Author

pusl6 commented Apr 29, 2024

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

@ruanwenjun
Copy link
Member

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.

+1

@github-actions github-actions bot added the UI ui and front end related label Apr 30, 2024
@pusl6
Copy link
Contributor Author

pusl6 commented Apr 30, 2024

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.

+1
I have modified the backend code as required and submitted the frontend code at the same time. Here is a screenshot of the completed version
image

@pusl6
Copy link
Contributor Author

pusl6 commented Apr 30, 2024

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.

I have modified the backend code as required and submitted the frontend code at the same time. Here is a screenshot of the completed version
image

wangxj3
wangxj3 previously approved these changes May 6, 2024
@pusl6 pusl6 changed the title [Improvement][ui] improving to find current version identifier(#15815) [Improvement - 15815][ui] improving to find current version identifier(#15815) May 6, 2024
@pusl6 pusl6 changed the title [Improvement - 15815][ui] improving to find current version identifier(#15815) [Improvement-15815][ui] improving to find current version identifier May 6, 2024
@pusl6 pusl6 changed the title [Improvement-15815][ui] improving to find current version identifier [Improvement-15815][ui] Improvement finding current version identifier May 6, 2024
@pusl6 pusl6 changed the title [Improvement-15815][ui] Improvement finding current version identifier [Improvement][ui] improving to find current version identifier(#15815) May 7, 2024
Comment on lines 92 to 96

/**
* obtain project version and address
* @return product info
*/
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/**
* obtain project version and address
* @return product info
*/
/**
* obtain project version and address
* @return product info
*/

Comment on lines +25 to +24
/**
* ProductInfoDto
*/
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/**
* ProductInfoDto
*/
/**
* ProductInfoDto
*/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My original idea for the throw code was to report errors when there is data but the version field is empty or null
Based on your proposal, I have made the following changes:

  1. Remove error prompts and directly display unknown when missing data
  2. Modify API URL path
  3. Remove method comments
    image

Copy link
Member

@ruanwenjun ruanwenjun Jun 7, 2024

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.

@pusl6 pusl6 requested a review from ruanwenjun June 4, 2024 10:08
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import static org.apache.dolphinscheduler.api.enums.Status.*;
Copy link
Member

Choose a reason for hiding this comment

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

Avoid wildcard import.

Copy link
Member

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.

Copy link
Contributor Author

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

@pusl6 pusl6 requested a review from SbloodyS June 13, 2024 10:34
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 40.71%. Comparing base (834c320) to head (2fe4101).

Current head 2fe4101 differs from pull request most recent head 8924bd8

Please upload reports for the commit 8924bd8 to get more accurate results.

Files Patch % Lines
...cheduler/api/service/impl/UiPluginServiceImpl.java 40.00% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

ruanwenjun
ruanwenjun previously approved these changes Jun 15, 2024
Copy link
Member

@ruanwenjun ruanwenjun left a 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.

@ruanwenjun
Copy link
Member

@SbloodyS PTAL

@ruanwenjun ruanwenjun added this to the 3.3.0 milestone Jun 15, 2024
@pusl6
Copy link
Contributor Author

pusl6 commented Jun 18, 2024

Some NIP, it's not a good idea to add a unknown version here, version is a must.

Thanks. In the scenario, unless the database version is empty, there will be no unknown

@SbloodyS SbloodyS changed the title [Improvement][ui] improving to find current version identifier(#15815) [Improvement-15815][ui] improving to find current version identifier(#15815) Jul 1, 2024
Copy link
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.

Please resolve conflicts.

@pusl6
Copy link
Contributor Author

pusl6 commented Jul 3, 2024

Please resolve conflicts.

oh, the reason for the conflict is that the enumeration class was not updated for a long time and has now been processed and resubmitted
1719978135279
1719978135285

Copy link
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

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
50.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarCloud

@SbloodyS SbloodyS merged commit 0d59dd0 into apache:dev Jul 4, 2024
@boring-cyborg
Copy link

boring-cyborg bot commented Jul 4, 2024

Awesome work, congrats on your first merged pull request!

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

Labels

3.3.0 backend first time contributor First-time contributor improvement make more easy to user or prompt friendly test UI ui and front end related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DSIP-30][UI] Add a page "about Dolphinscheduler" [Improvement][ui] Unable to find current version identifier

8 participants