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: add rejected_msg field to limit-req plugin form #2312

Merged
merged 3 commits into from
Feb 17, 2022

Conversation

oil-oil
Copy link
Contributor

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

Add rejected_msg field to limit-req plugin form.
image

Related issues

#2310

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

@zaunist
Copy link
Contributor

zaunist commented Feb 11, 2022

It's better to add some test case.

@guoqqqi
Copy link
Member

guoqqqi commented Feb 12, 2022

Hi, @oil-oil add some pictures of your changes in the description section to make it easier to review 😄

@oil-oil
Copy link
Contributor Author

oil-oil commented Feb 12, 2022

It's better to add some test case.

OK,I'll do it.

@codecov-commenter
Copy link

codecov-commenter commented Feb 13, 2022

Codecov Report

Merging #2312 (9856ad2) into master (758c432) will decrease coverage by 1.80%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2312      +/-   ##
==========================================
- Coverage   69.91%   68.10%   -1.81%     
==========================================
  Files         184      127      -57     
  Lines        7280     3374    -3906     
  Branches      830      830              
==========================================
- Hits         5090     2298    -2792     
+ Misses       1896     1076     -820     
+ Partials      294        0     -294     
Flag Coverage Δ
backend-e2e-test ?
backend-e2e-test-ginkgo ?
backend-unit-test ?
frontend-e2e-test 68.10% <ø> (-0.06%) ⬇️

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/helpers.tsx 70.49% <0.00%> (-3.28%) ⬇️
api/internal/route.go
api/internal/core/migrate/migrate.go
api/internal/utils/runtime/runtime.go
api/internal/handler/migrate/migrate.go
api/internal/handler/data_loader/route_import.go
api/internal/utils/json_patch.go
api/internal/core/storage/etcd.go
api/internal/core/migrate/dataset.go
... and 49 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...9856ad2. Read the comment docs.

@zaunist
Copy link
Contributor

zaunist commented Feb 14, 2022

Could you provide some screenshoot about your change?

@oil-oil
Copy link
Contributor Author

oil-oil commented Feb 14, 2022

I added a new field to the form.

before:
image

after:
image

@bzp2010
Copy link
Contributor

bzp2010 commented Feb 15, 2022

If the CI test passes it's ready.

@oil-oil
Copy link
Contributor Author

oil-oil commented Feb 15, 2022

If the CI test passes it's ready.

@bzp2010 I can pass the test in the development environment, can you re-execute the CI test for me?

@bzp2010 bzp2010 requested a review from LiteSun February 17, 2022 01:17
@bzp2010 bzp2010 merged commit 03a6cc1 into apache:master Feb 17, 2022
@oil-oil oil-oil deleted the add-rejected_code branch February 18, 2022 08:33
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.

8 participants