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(limit-count): support multiple variables as key #5378

Merged
merged 6 commits into from
Nov 4, 2021
Merged

feat(limit-count): support multiple variables as key #5378

merged 6 commits into from
Nov 4, 2021

Conversation

Xunzhuo
Copy link
Contributor

@Xunzhuo Xunzhuo commented Oct 30, 2021

What this PR does / why we need it:

feat(limit-count): support multiple variables as key

Pre-submission 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

@Xunzhuo Xunzhuo marked this pull request as ready for review November 1, 2021 08:14
@Xunzhuo
Copy link
Contributor Author

Xunzhuo commented Nov 2, 2021

cc @spacewander ,please take a look thanks. CI failed by other test case which is not related to limit-count

t/plugin/limit-count2.t Outdated Show resolved Hide resolved
@Xunzhuo Xunzhuo requested a review from tokers November 3, 2021 08:18
docs/en/latest/plugins/limit-count.md Outdated Show resolved Hide resolved
docs/zh/latest/plugins/limit-count.md Outdated Show resolved Hide resolved
@@ -328,7 +328,7 @@ code: 200
"limit-count": {
"count": ]] .. count .. [[,
"time_window": 60,
"key": "http_x_real_ip",
"key": "remote_addr",
Copy link
Member

Choose a reason for hiding this comment

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

Can we change the relative tests to use remote_addr too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes of course.

@spacewander spacewander merged commit 4346782 into apache:master Nov 4, 2021
@Xunzhuo Xunzhuo deleted the plugin/limit-count branch November 4, 2021 09:52
@Xunzhuo Xunzhuo restored the plugin/limit-count branch November 4, 2021 09:52
@Xunzhuo Xunzhuo deleted the plugin/limit-count branch November 4, 2021 09:52
@Xunzhuo Xunzhuo restored the plugin/limit-count branch November 4, 2021 09:52
@Xunzhuo Xunzhuo deleted the plugin/limit-count branch November 4, 2021 09:52
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.

4 participants