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

chore: Create route form optimization #2336

Merged
merged 4 commits into from
Feb 28, 2022

Conversation

oil-oil
Copy link
Contributor

@oil-oil oil-oil commented Feb 23, 2022

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?
When Service is selected in the form in step 1:
image
The Upstream selector will select "None" by default in the form in step 2:
image

When Service is not selected in the form in step 1:
image
image

Related issues

resolve #2167

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

@oil-oil oil-oil changed the title Create route form optimization chore: Create route form optimization Feb 23, 2022
@zaunist
Copy link
Contributor

zaunist commented Feb 24, 2022

It's better to add some test cases cover this change. And need to wait all cases passed.

@oil-oil
Copy link
Contributor Author

oil-oil commented Feb 24, 2022

It's better to add some test cases cover this change. And need to wait all cases passed.

OK, I'm fixing some test related issues.🧐

@codecov-commenter
Copy link

Codecov Report

Merging #2336 (29cfba6) into master (03a6cc1) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2336      +/-   ##
==========================================
+ Coverage   68.10%   68.12%   +0.01%     
==========================================
  Files         127      127              
  Lines        3374     3379       +5     
  Branches      830      832       +2     
==========================================
+ Hits         2298     2302       +4     
- Misses       1076     1077       +1     
Flag Coverage Δ
frontend-e2e-test 68.12% <100.00%> (+0.01%) ⬆️

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

Impacted Files Coverage Δ
web/src/components/Plugin/UI/limit-req.tsx 100.00% <ø> (ø)
web/src/components/Upstream/UpstreamForm.tsx 90.12% <100.00%> (-2.29%) ⬇️
...omponents/Upstream/components/UpstreamSelector.tsx 85.71% <100.00%> (-14.29%) ⬇️
web/src/pages/Route/List.tsx 82.94% <100.00%> (+0.10%) ⬆️
web/src/pages/Upstream/List.tsx 90.00% <0.00%> (ø)
web/src/components/Plugin/UI/limit-count.tsx 88.09% <0.00%> (ø)
web/src/helpers.tsx 73.77% <0.00%> (+3.27%) ⬆️

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 fc62ca3...29cfba6. Read the comment docs.

@zaunist
Copy link
Contributor

zaunist commented Feb 24, 2022

@guoqqqi PTAL

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.

also LGTM

@juzhiyuan juzhiyuan merged commit abefe97 into apache:master Feb 28, 2022
@oil-oil oil-oil deleted the create-route-form-optimization branch February 28, 2022 03:37
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Mar 13, 2022
* origin:
  chore: Create route form optimization (apache#2336)
  fix: add rejected_msg field to limit-count plugin form (apache#2328)
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.

"Create Route" form optimization
7 participants