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: upstream host form warning message #1782

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

ericsyh
Copy link
Contributor

@ericsyh ericsyh commented Apr 17, 2021

Signed-off-by: EricSyh ericshenyuhao@outlook.com

Please answer these questions before submitting a pull request, or your PR will get closed.

Why submit this pull request?

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches

What changes will this PR take into?

The warning message of host form on upstream/services create pages uses raw regexp as below which is unfriendly to users.

截屏2021-04-17 下午2 40 56

So i modified nodes component under upstream to add an easy-to-understand warning message look like:

截屏2021-04-17 下午2 40 33

Related issues

No related issues.

Checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

Signed-off-by: EricSyh <ericshenyuhao@outlook.com>
@netlify
Copy link

netlify bot commented Apr 17, 2021

Deploy preview for apisix-dashboard ready!

Built with commit 00cf1ed

https://deploy-preview-1782--apisix-dashboard.netlify.app

Signed-off-by: EricSyh <ericshenyuhao@outlook.com>
@codecov-commenter
Copy link

codecov-commenter commented Apr 17, 2021

Codecov Report

Merging #1782 (00cf1ed) into master (f1b8f0c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1782   +/-   ##
=======================================
  Coverage   72.12%   72.12%           
=======================================
  Files         125      125           
  Lines        2906     2906           
  Branches      699      699           
=======================================
  Hits         2096     2096           
  Misses        810      810           
Flag Coverage Δ
frontend-e2e-test 72.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
web/src/components/Upstream/components/Nodes.tsx 100.00% <ø> (ø)

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 f1b8f0c...00cf1ed. Read the comment docs.

Copy link
Member

@LiteSun LiteSun left a comment

Choose a reason for hiding this comment

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

LGTM

@juzhiyuan juzhiyuan requested a review from membphis April 18, 2021 06:00
Copy link
Member

@guoqqqi guoqqqi left a comment

Choose a reason for hiding this comment

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

LGTM

@juzhiyuan juzhiyuan merged commit 3ed0b07 into apache:master Apr 19, 2021
@ericsyh ericsyh deleted the fix-form-warning-message branch April 19, 2021 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants