Skip to content

perf(teamrec): avoid calling ListMembers inside loop#70

Merged
tstollin merged 1 commit into
Interhyp:mainfrom
ruizink:perf-optimize-teamrec
Jul 17, 2026
Merged

perf(teamrec): avoid calling ListMembers inside loop#70
tstollin merged 1 commit into
Interhyp:mainfrom
ruizink:perf-optimize-teamrec

Conversation

@ruizink

@ruizink ruizink commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

This PR optimizes the Team reconciler by calling ListMembers only once. This will also consume less of the API rate-limit budget.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Chore (refactoring, CI changes, dependency updates, etc.)

Checklist

  • My commits follow the Conventional Commits format
  • I have added/updated unit tests for any new or changed templates
  • I have updated documentation (README, CONTRIBUTING, values comments) if needed
  • I have updated the generated CRDs and Manifest

Related Issues

Signed-off-by: Mário Santos <mario.rf.santos@gmail.com>
@ruizink
ruizink requested a review from a team as a code owner July 16, 2026 17:44

@tstollin tstollin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Nice find! Thanks :)

But I need to look into the fact that not all required workflows ran after approving their execution. I'm on it.

@tstollin

tstollin commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

But I need to look into the fact that not all required workflows ran after approving their execution. I'm on it.

Fix incoming: #73

EDIT: fixed

Comment thread internal/reconciler/teamrec/rec_members.go
@tstollin tstollin closed this Jul 17, 2026
@tstollin tstollin reopened this Jul 17, 2026
@tstollin
tstollin merged commit 5f68c4f into Interhyp:main Jul 17, 2026
11 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.5.1 🎉

The release is available on GitHub release and as container image ghcr.io/interhyp/git-hubby:0.5.1

@ruizink
ruizink deleted the perf-optimize-teamrec branch July 17, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants