Skip to content

enh(performance): get deck share permissions in one query - #8359

Open
grnd-alt wants to merge 1 commit into
mainfrom
improve/join-query-on-share-permissions
Open

enh(performance): get deck share permissions in one query#8359
grnd-alt wants to merge 1 commit into
mainfrom
improve/join-query-on-share-permissions

Conversation

@grnd-alt

@grnd-alt grnd-alt commented Sep 9, 2026

Copy link
Copy Markdown
Member

No description provided.

@grnd-alt
grnd-alt force-pushed the improve/join-query-on-share-permissions branch from c3ccc7a to b8d3912 Compare September 10, 2026 08:37
Signed-off-by: grnd-alt <git@belakkaf.net>
@grnd-alt
grnd-alt force-pushed the improve/join-query-on-share-permissions branch from b8d3912 to 3cae83a Compare September 10, 2026 09:29
@github-actions

Copy link
Copy Markdown
Contributor

馃悽 Performance warning.
It looks like the query count of the integration tests increased with this PR.
Database query count is now 203779 was 198420 (+2.7%)
Please check your code again. If you added a new test this can be expected and the base value in tests/integration/base-query-count.txt can be increased.

@grnd-alt
grnd-alt marked this pull request as ready for review September 10, 2026 10:45
@grnd-alt
grnd-alt requested a review from a team September 10, 2026 10:59
* @param bool $allowDeleted
* @return array<int, array<Acl::PERMISSION_*, bool>>
*/
public function getPermissionsForCards(array $cardIds, ?string $userId = null, bool $allowDeleted = false): array {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The param $allowDeleted is currently unused and should be maybe removed.

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.

2 participants