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: do not list consumers in a GET Consumer Group call #487

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

Prashansa-K
Copy link
Collaborator

Gateways before 3.9 return a list of consumers
along with consumer_group information, when
performing a GET call on a specific consumer_group. This can become slow in case a consumer_group has
a lots of consumers. A separate endpoint and relevant constructs already exist to fetch consumers for a
particular group. Thus, we are trying to not list
consumers while fetching a consumer_group by passing a query parameter in the API call. Gateway 3.9 supports this.

This will make decK faster for cases where a consumer- group holds thousands of consumers.
For: Kong/deck#1457

Gateways before 3.9 return a list of consumers
along with consumer_group information, when
performing a GET call on a specific consumer_group.
This can become slow in case a consumer_group has
a lots of consumers. A separate endpoint and relevant
constructs already exist to fetch consumers for a
particular group. Thus, we are trying to not list
consumers while fetching a consumer_group by passing
a query parameter in the API call. Gateway 3.9 supports
this.

This will make decK faster for cases where a consumer-
group holds thousands of consumers.
For: Kong/deck#1457
@Prashansa-K Prashansa-K requested review from a team as code owners December 6, 2024 11:35
@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.15%. Comparing base (4d30454) to head (6973a89).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #487   +/-   ##
=======================================
  Coverage   55.15%   55.15%           
=======================================
  Files          71       71           
  Lines        5691     5691           
=======================================
  Hits         3139     3139           
  Misses       1935     1935           
  Partials      617      617           
Flag Coverage Δ
2.1 33.38% <0.00%> (ø)
2.2 43.85% <0.00%> (ø)
2.3 44.42% <0.00%> (ø)
2.4 44.49% <0.00%> (ø)
2.5 44.49% <0.00%> (ø)
2.6 44.49% <0.00%> (ø)
2.7 45.96% <100.00%> (ø)
2.8 45.96% <100.00%> (ø)
3.0 49.51% <100.00%> (ø)
3.1 50.85% <100.00%> (ø)
3.2 50.85% <100.00%> (ø)
3.3 50.85% <100.00%> (ø)
3.4 52.87% <100.00%> (ø)
3.5 51.02% <100.00%> (ø)
3.6 51.02% <100.00%> (ø)
3.7 51.02% <100.00%> (ø)
3.8 52.62% <100.00%> (ø)
community 41.60% <0.00%> (ø)
enterprise 53.75% <100.00%> (ø)
integration 55.15% <100.00%> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Prashansa-K Prashansa-K requested a review from pmalek December 6, 2024 11:38
Copy link
Member

@pmalek pmalek left a comment

Choose a reason for hiding this comment

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

Please make sure to add a changelog to this. Otherwise just minor nits.

kong/consumer_group_test.go Outdated Show resolved Hide resolved
kong/consumer_group_test.go Outdated Show resolved Hide resolved
kong/consumer_group_test.go Outdated Show resolved Hide resolved
kong/consumer_group_test.go Outdated Show resolved Hide resolved
@Prashansa-K
Copy link
Collaborator Author

Added changelog for both the PRs here: #488

@Prashansa-K Prashansa-K requested a review from pmalek December 6, 2024 12:26
kong/consumer_group_test.go Show resolved Hide resolved
@pmalek pmalek enabled auto-merge (squash) December 6, 2024 12:33
@pmalek pmalek merged commit 262937e into main Dec 6, 2024
91 checks passed
@pmalek pmalek deleted the feat/skip-consumers-list-in-get-cg-calls branch December 6, 2024 12:33
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.

3 participants