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: ! (reverse) operator not handled correctly #2364

Merged
merged 2 commits into from
Mar 10, 2022

Conversation

SkyeYoung
Copy link
Member

@SkyeYoung SkyeYoung commented Mar 7, 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?

Correct handling ! (reverse) operator

Related issues

fix #2166

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

@SkyeYoung
Copy link
Member Author

can you add the test cases

I'll try to do it.

@SkyeYoung
Copy link
Member Author

@guoqqqi I added test cases, pls have a look. : )

Copy link
Contributor

@Baoyuantop Baoyuantop 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 #2364 (75107f7) into master (e0d92c4) will decrease coverage by 1.40%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2364      +/-   ##
==========================================
- Coverage   69.91%   68.50%   -1.41%     
==========================================
  Files         184      131      -53     
  Lines        7279     3420    -3859     
  Branches      830      828       -2     
==========================================
- Hits         5089     2343    -2746     
+ Misses       1896     1077     -819     
+ Partials      294        0     -294     
Flag Coverage Δ
backend-e2e-test ?
backend-e2e-test-ginkgo ?
backend-unit-test ?
frontend-e2e-test 68.50% <100.00%> (+0.34%) ⬆️

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

Impacted Files Coverage Δ
...pages/Route/components/Step1/MatchingRulesView.tsx 75.00% <100.00%> (+0.26%) ⬆️
web/src/pages/Route/transform.ts 78.30% <100.00%> (+0.52%) ⬆️
...omponents/Upstream/components/UpstreamSelector.tsx 85.71% <0.00%> (-14.29%) ⬇️
web/src/helpers.tsx 70.49% <0.00%> (-3.28%) ⬇️
web/src/components/Upstream/UpstreamForm.tsx 90.12% <0.00%> (-2.29%) ⬇️
web/src/pages/PluginTemplate/List.tsx 71.42% <0.00%> (-1.08%) ⬇️
web/src/pages/Service/List.tsx 94.11% <0.00%> (-0.76%) ⬇️
web/src/components/Plugin/UI/limit-count.tsx 88.09% <0.00%> (ø)
api/internal/log/zap.go
api/internal/utils/version.go
... and 63 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 e0d92c4...75107f7. Read the comment docs.

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!

@bzp2010 bzp2010 merged commit 4e72d92 into apache:master Mar 10, 2022
hongbinhsu pushed a commit to fitphp/apix-dashboard that referenced this pull request Mar 13, 2022
* origin:
  feat: release 2.11.0 (apache#2361)
  feat: add data loader framework (apache#2371)
  feat: improve Consumer module (apache#2327)
  fix: ! (reverse) operator not handled correctly (apache#2364)
  chore: modify the select upstream field to upstream (apache#2344)
  feat: support protobuf on Web (apache#2320)
  chore: Extract paging related functions into standalone hook (apache#2334)
  feat: basic support Apache APISIX 2.12.1 (apache#2315)

# Conflicts:
#	web/src/helpers.tsx
#	web/yarn.lock
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.

route.vars support "!" operator
7 participants