Skip to content
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

[Fix][UI] Fix data-quality component multi-language support. #10202

Merged
merged 2 commits into from
May 23, 2022

Conversation

songjianet
Copy link
Member

Purpose of the pull request

close #10138
image
image

Brief change log

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:

@songjianet songjianet added bug Something isn't working UI ui and front end related labels May 23, 2022
@songjianet songjianet added this to the 3.0.0-beta-1 milestone May 23, 2022
@songjianet songjianet self-assigned this May 23, 2022
const items = JSON.parse(result).map((item: IResponseJsonItem) => {
item.props.placeholder = t('project.node.' + item.props.placeholder.split(' ').join('_').split(',').join('').toLowerCase())
return formatResponseJson(item)
})
Copy link
Member

Choose a reason for hiding this comment

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

It's better to handle the placeholder format in the formatResponseJson function as well.

Copy link
Member

@Amy0104 Amy0104 left a comment

Choose a reason for hiding this comment

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

LGTM.

@codecov-commenter
Copy link

Codecov Report

Merging #10202 (b2704e3) into dev (7a8f3f1) will decrease coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev   #10202      +/-   ##
============================================
- Coverage     40.94%   40.92%   -0.02%     
+ Complexity     4732     4728       -4     
============================================
  Files           854      854              
  Lines         34553    34553              
  Branches       3818     3818              
============================================
- Hits          14148    14142       -6     
- Misses        19051    19053       +2     
- Partials       1354     1358       +4     
Impacted Files Coverage Δ
...er/master/dispatch/host/assign/RandomSelector.java 77.77% <0.00%> (-5.56%) ⬇️
...e/dolphinscheduler/remote/NettyRemotingClient.java 50.70% <0.00%> (-2.82%) ⬇️
...dolphinscheduler/remote/future/ResponseFuture.java 81.96% <0.00%> (-1.64%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a8f3f1...b2704e3. Read the comment docs.

@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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@songjianet songjianet merged commit c8a4c69 into apache:dev May 23, 2022
@songjianet songjianet deleted the fix-data-quality branch May 24, 2022 06:38
zhongjiajie pushed a commit that referenced this pull request May 24, 2022
* [Fix][UI] Fix data-quality component multi-language support.

* [Fix][UI] Fix data-quality component multi-language support.

(cherry picked from commit c8a4c69)
ITBOX-ITBOY pushed a commit to ITBOX-ITBOY/dolphinscheduler that referenced this pull request Jul 8, 2022
…10202)

* [Fix][UI] Fix data-quality component multi-language support.

* [Fix][UI] Fix data-quality component multi-language support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI ui and front end related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [workflows] Data_quality workflows in Chinese mode are not translated into Chinese
3 participants