Skip to content

fix: consumerGroupConsumer pulling modified to account for presence of consumers in targetContent#1813

Merged
Prashansa-K merged 4 commits intomainfrom
fix/consumers-pulling-lookup-tags
Nov 12, 2025
Merged

fix: consumerGroupConsumer pulling modified to account for presence of consumers in targetContent#1813
Prashansa-K merged 4 commits intomainfrom
fix/consumers-pulling-lookup-tags

Conversation

@Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Nov 10, 2025

We were checking for group memberships while pulling consumer-groups via default_lookup_tags.
Checking for these memberships is important when consumers are a part of the targetContent. That way, we
can ensure that any removals or updates in groups for consumers can go through.
However, if the targetContent under process doesn't have any consumers, we can skip the check and add the
necessary consumerGroupConsumers. This also ensures that we aren't deleting any consumerGroupConsumers
by accident, in case a group match fails.

FTI: https://konghq.atlassian.net/browse/FTI-6966?focusedCommentId=182193&sourceType=mention

@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2025

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.76%. Comparing base (5d4a7e4) to head (14f26ce).

Files with missing lines Patch % Lines
cmd/common.go 0.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1813      +/-   ##
==========================================
- Coverage   32.83%   32.76%   -0.08%     
==========================================
  Files          73       73              
  Lines        6550     6556       +6     
==========================================
- Hits         2151     2148       -3     
- Misses       4234     4242       +8     
- Partials      165      166       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

cmd/common.go Outdated
if groupExists {
consumerGroupObject.Consumers = append(consumerGroupObject.Consumers, consumer)
}
// else {
Copy link
Contributor

Choose a reason for hiding this comment

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

This branch is not required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Stray code 😮‍💨 . I will remove it. Leave a comment when the initial review is completed.

@Prashansa-K Prashansa-K merged commit 19d969e into main Nov 12, 2025
38 of 39 checks passed
@Prashansa-K Prashansa-K deleted the fix/consumers-pulling-lookup-tags branch November 12, 2025 06:51
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