Skip to content

fix: consumer lookups while using default lookup tags for consumer-goups#1749

Merged
Prashansa-K merged 3 commits intomainfrom
fix/default-lookup-consumer-groups
Sep 17, 2025
Merged

fix: consumer lookups while using default lookup tags for consumer-goups#1749
Prashansa-K merged 3 commits intomainfrom
fix/default-lookup-consumer-groups

Conversation

@Prashansa-K
Copy link
Contributor

@Prashansa-K Prashansa-K commented Sep 2, 2025

Syncing and diffing with default_lookup_tags
for consumer-groups was errorneous. While
dumping config, we would dump all consumers
in case of default-lookup tags. Thus, in case of
serial syncing of consumers, previous consumers
would end up getting deleted.
This fix ensures that no unexpected deletions occur
while using consumer-group lookups.

Issue is described in detail in
the doc and FTI below:

@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2025

Codecov Report

❌ Patch coverage is 0% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 32.84%. Comparing base (8e4e308) to head (1bf3b1f).

Files with missing lines Patch % Lines
cmd/common.go 0.00% 27 Missing ⚠️
tests/integration/test_utils.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1749      +/-   ##
==========================================
- Coverage   32.89%   32.84%   -0.06%     
==========================================
  Files          73       73              
  Lines        8068     8093      +25     
==========================================
+ Hits         2654     2658       +4     
- Misses       5248     5270      +22     
+ Partials      166      165       -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.

@Prashansa-K Prashansa-K force-pushed the fix/default-lookup-consumer-groups branch from 0d40193 to 4c75590 Compare September 2, 2025 11:02
@Prashansa-K Prashansa-K changed the title fix: consumer lookups while using default lookup tags for consumer-gr… fix: consumer lookups while using default lookup tags for consumer-goups Sep 5, 2025
@Prashansa-K Prashansa-K requested review from harshadixit12 and removed request for harshadixit12 September 5, 2025 06:53
@Prashansa-K Prashansa-K marked this pull request as draft September 5, 2025 06:55
go.mod Outdated
github.com/google/go-cmp v0.7.0
github.com/kong/go-apiops v0.1.49
github.com/kong/go-database-reconciler v1.26.0
github.com/kong/go-database-reconciler v1.26.1-0.20250902104042-b53c60cc6db1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be updated post this pr merge: Kong/go-database-reconciler#336

@Prashansa-K Prashansa-K force-pushed the fix/default-lookup-consumer-groups branch from 9b2c3c2 to 30a7894 Compare September 16, 2025 08:22
@Prashansa-K Prashansa-K marked this pull request as ready for review September 17, 2025 08:08
@Prashansa-K Prashansa-K merged commit 23ac32f into main Sep 17, 2025
35 checks passed
@Prashansa-K Prashansa-K deleted the fix/default-lookup-consumer-groups branch September 17, 2025 08:38
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