Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CoreQueryBuilder): Use correct member entry for circle as initiator #1758

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Nov 18, 2024

Before, the member entry that matched the singleId of the user and level = 9 was used as initiator, which in practice means the member entry for the internal user circle of the user most of the time.

Instead, we want to use the member entry that matches singleId of the user and circleId of the circle in question.

This fixes the wrong level being set for initiator when calling circleProbe() with DataProbe::INITIATOR.

Fixes: #1757

@mejo- mejo- self-assigned this Nov 18, 2024
@mejo- mejo- force-pushed the fix/probe_initiator branch 7 times, most recently from 4211fa8 to 5528f13 Compare November 20, 2024 10:06
Before, the member entry that matched the `singleId` of the user and
`level = 9` was used as initiator, which in practice means the member
entry for the internal user circle of the user most of the time.

Instead, we want to use the member entry that matches `singleId` of
the user and `circleId` of the circle in question.

This fixes the wrong `level` being set for `initiator` when calling
`circleProbe()` with `DataProbe::INITIATOR`.

Fixes: #1757

Signed-off-by: Jonas <jonas@freesources.org>
Required for testing (where only one php thread is available), but as
well for clients that require the event to be excecuted immediately.

Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- marked this pull request as draft November 20, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

probeCircles() with dataProbe for initiator returns wrong member level.
1 participant