Skip to content

Added hierarchy finder for saved replies

Phil Hughes requested to merge ph/groupSavedRepliesImprovedFinder into master

What does this MR do and why?

This allows for the GraphQL query to fetch all saved replies for the current group and all ancestor groups.

Query for root group:

SELECT "group_saved_replies".* FROM "group_saved_replies" WHERE "group_saved_replies"."group_id" IN (9970)

https://explain.depesz.com/s/tvm0

Query for when inside of a sub-group:

SELECT "group_saved_replies".* FROM "group_saved_replies" WHERE "group_saved_replies"."group_id" IN (9970, 1755573)

https://explain.depesz.com/s/xIYb

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Phil Hughes

Merge request reports