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

Merged
merged 3 commits into from
Nov 21, 2024

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- requested a review from ArtificialOwl November 18, 2024 17:15
@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 <[email protected]>
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 <[email protected]>
@mejo- mejo- force-pushed the fix/probe_initiator branch from 5528f13 to 70e3ebf Compare November 20, 2024 11:27
@mejo- mejo- marked this pull request as draft November 20, 2024 11:27
@mejo- mejo- force-pushed the fix/probe_initiator branch from 70e3ebf to a8de480 Compare November 20, 2024 11:34
@mejo- mejo- marked this pull request as ready for review November 20, 2024 12:04
@mejo- mejo- force-pushed the fix/probe_initiator branch from a8de480 to 8aae043 Compare November 20, 2024 12:07
@mejo-
Copy link
Member Author

mejo- commented Nov 20, 2024

/backport to stable30

@mejo-
Copy link
Member Author

mejo- commented Nov 20, 2024

/backport to stable29

@mejo-
Copy link
Member Author

mejo- commented Nov 20, 2024

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

probeCircles() with dataProbe for initiator returns wrong member level.
2 participants