Resolve "Replace fetching work item design with `DesignAtVersion`"
What does this MR do and why?
This MR removes the "local" design query we used as a workaround to prevent cache invalidation, and replaces it with fetching a design by its global ID and by version ID
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
No visual changes
How to set up and validate locally
- In rails console enable the new work item view
Feature.enable(:work_items_view_preference)
- Visit any project issues pages such as
http://127.0.0.1:3000/flightjs/Flight/-/issues
- Enable new work item experience with the switch in the top right corner
- Open an issue
- Upload a design
- Leave a few design comments and react with emojis
- Make sure there are no console errors
Related to #509095
Edited by Natalia Tepluhina