Skip to content

Conversation

gustavohstrassburger
Copy link
Contributor

Problem

The command to sync cohorts people from CH to PG is using the first team from the ClickHouse query, instead of the team from the cohort, causing it to fail when running for multiple teams.

Changes

Uses the cohort's team_id when inserting new people into PG.

The command was already ran in prod-US, I'm updating it in case we need to run the command in other environment.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@github-project-automation github-project-automation bot moved this to Approved in Feature Flags Oct 20, 2025
@gustavohstrassburger gustavohstrassburger merged commit 3b846d7 into master Oct 20, 2025
170 of 171 checks passed
@gustavohstrassburger gustavohstrassburger deleted the fix/cohort-people-unsynced-wrong-team-id branch October 20, 2025 21:26
@github-project-automation github-project-automation bot moved this from Approved to Done in Feature Flags Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants