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

feat: Add more fields to limit-count plugin #2322

Merged
merged 2 commits into from
Feb 23, 2022

Conversation

oil-oil
Copy link
Contributor

@oil-oil oil-oil commented Feb 17, 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?

Added group, allow_degradation, show_limit_quota_header fields to the limit-count plugin form.

image

Related issues

resolve #2301

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

@juzhiyuan juzhiyuan requested review from LiteSun and okaybase and removed request for LiteSun February 17, 2022 13:22
@oil-oil
Copy link
Contributor Author

oil-oil commented Feb 18, 2022

🧐 I can pass the test case in the development environment, can you help me re-execute the CI. @bzp2010

Copy link
Contributor

@zaunist zaunist left a comment

Choose a reason for hiding this comment

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

That's great.

@codecov-commenter
Copy link

Codecov Report

Merging #2322 (2fddf22) into master (758c432) will decrease coverage by 1.73%.
The diff coverage is 100.00%.

❗ Current head 2fddf22 differs from pull request most recent head 2b66eb7. Consider uploading reports for the commit 2b66eb7 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2322      +/-   ##
==========================================
- Coverage   69.91%   68.17%   -1.74%     
==========================================
  Files         184      127      -57     
  Lines        7280     3375    -3905     
  Branches      830      830              
==========================================
- Hits         5090     2301    -2789     
+ Misses       1896     1074     -822     
+ Partials      294        0     -294     
Flag Coverage Δ
backend-e2e-test ?
backend-e2e-test-ginkgo ?
backend-unit-test ?
frontend-e2e-test 68.17% <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-count.tsx 88.09% <ø> (ø)
web/src/components/Plugin/UI/limit-req.tsx 100.00% <ø> (ø)
web/src/pages/Route/List.tsx 82.94% <100.00%> (+0.10%) ⬆️
api/internal/core/store/validate.go
api/internal/handler/schema/schema.go
api/internal/handler/tool/tool.go
api/internal/core/server/http.go
api/internal/log/log.go
api/internal/core/server/store.go
api/internal/handler/route/route.go
... and 50 more

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 758c432...2b66eb7. Read the comment docs.

@juzhiyuan juzhiyuan merged commit fd44364 into apache:master Feb 23, 2022
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Feb 23, 2022
* origin:
  feat: Add more fields to limit-count plugin (apache#2322)
  sytle : adjust width of limit-req plugin form label (apache#2316)
  style: add ellipsis for route table (apache#2317)
  fix: add rejected_msg field to limit-req plugin form (apache#2312)
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Feb 23, 2022
* origin:
  feat: Add more fields to limit-count plugin (apache#2322)
  sytle : adjust width of limit-req plugin form label (apache#2316)
  style: add ellipsis for route table (apache#2317)
  fix: add rejected_msg field to limit-req plugin form (apache#2312)
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Feb 23, 2022
* origin:
  feat: Add more fields to limit-count plugin (apache#2322)
  sytle : adjust width of limit-req plugin form label (apache#2316)
  style: add ellipsis for route table (apache#2317)
  fix: add rejected_msg field to limit-req plugin form (apache#2312)
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Mar 13, 2022
* origin:
  feat: Add more fields to limit-count plugin (apache#2322)
  sytle : adjust width of limit-req plugin form label (apache#2316)
  style: add ellipsis for route table (apache#2317)
  fix: add rejected_msg field to limit-req plugin form (apache#2312)
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.

FR - limit-count plugin form need to add allow_degradation section.
7 participants