Fix CRM issue filters when contacts not sourced from root group
What does this MR do and why?
Fix CRM issue filters when contacts not sourced from root group
Changelog: fixed
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
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
- Create a root group
my-company - Create a subgroup
contacts - Set the
contactsgroup as the contact source formy-company: https://docs.gitlab.com/ee/user/crm/#configure-the-contact-source - Create a contact and linked organization in
contacts - Create a project
product-ainmy-company - Create an issue in
product-aand add the contact (using the/add_contactsquick action - Create another issue in
product-awithout a contact assigned - Give a user planner+ access to
contactsguest+ access toproduct-ais required (unless it's a public project/group in which case no access is required) - While impersonating the user, ensure you can filer the issue list for the contact and only the issue with that contact assigned is returned
Related to #516945 (closed)
Edited by Lee Tickett