Skip to content

Conversation

@cristianscheid
Copy link
Contributor

@cristianscheid cristianscheid commented Jan 21, 2026

Closed accidentally. Reopened in #2317.

@cristianscheid cristianscheid force-pushed the fix/2291/sync-groups-repair-step branch 2 times, most recently from 4cc3e6c to 7290d3a Compare January 21, 2026 22:52
}

$group = $this->groupManager->get($groupId);
if ($group->count() <= count($members)) {
Copy link
Member

Choose a reason for hiding this comment

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

Because you mentioned it in the PR description: I think this check should be removed to avoid sync issues. If the sync is broken for some reason and one user is added and one users is removed, then this would prevent syncing. I suppose this is done for performance reasons, but it might be better to just always sync or at least implement a better detection than the member count.

Comment on lines 280 to 286
$members = [];
foreach ($this->memberRequest->getMembers($circle->getSingleId()) as $member) {
if ($member->getUserType() === Member::TYPE_APP) {
continue;
}
$members[] = $member->getSingleId();
}
Copy link
Member

Choose a reason for hiding this comment

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

IMO array_filter is cleaner for such operations.

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