Skip to content

feat: consumer-restriction plugin support consumer_group_id type#8567

Merged
spacewander merged 2 commits into
apache:masterfrom
ronething:feat/consumer_group_id
Dec 27, 2022
Merged

feat: consumer-restriction plugin support consumer_group_id type#8567
spacewander merged 2 commits into
apache:masterfrom
ronething:feat/consumer_group_id

Conversation

@ronething

@ronething ronething commented Dec 24, 2022

Copy link
Copy Markdown
Member

Description

Fixes #8563

consumer-restriction plugin add consumer_group_id type

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

starsz
starsz previously approved these changes Dec 26, 2022
@ronething
ronething marked this pull request as ready for review December 26, 2022 02:12
Comment thread t/plugin/consumer-restriction.t Outdated



=== TEST 54: create consumer group(group1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you move the new tests to a new file?

When the test file is too large, for example > 800 lines, you should split it to a new file. Please take a look at t/plugin/limit-conn.t and t/plugin/limit-conn2.t.

https://github.com/apache/apisix/blob/master/CONTRIBUTING.md#check-code-style-and-test-case-style

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done.

@ronething
ronething requested review from spacewander and starsz and removed request for spacewander and starsz December 26, 2022 07:24
@spacewander
spacewander merged commit 053c53a into apache:master Dec 27, 2022
@ronething
ronething deleted the feat/consumer_group_id branch January 6, 2023 16:00
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.

feat: As a user, I want to configure consumer_group_id in consumer-restriction plugin, so that we can limit consumers by group_id

3 participants