Changes the new jobs table cache config
What does this MR do and why?
This changes the apollo cache configuration for the new jobs filter feature to prevent some bugs from happening, most notably adding the same results on top of the existing cache when filtering jobs
This is behind the jobs_table_vue
and jobs_table_vue_search
feature flag
Screenshots or screen recordings
Duplicate results being appended when hitting enter on a filtered cache
Before | After |
---|---|
Screen_Recording_2022-03-22_at_11.46.34 | Screen_Recording_2022-03-22_at_11.43.52 |
How to set up and validate locally
- Enable the feature flags via the rails console
bundle exec rails console
->Feature.enable(:jobs_table_vue)
->Feature.enable(:jobs_table_vue_search)
- Go to any project with jobs
- Use filters and no duplicates should be there even when entering the same query multiple times
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Jose Ivan Vargas