Skip to content

Changes the new jobs table cache config

Jose Ivan Vargas requested to merge jivanvl-change-cache-config into master

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

#293862 (closed)

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

  1. Enable the feature flags via the rails console bundle exec rails console -> Feature.enable(:jobs_table_vue) -> Feature.enable(:jobs_table_vue_search)
  2. Go to any project with jobs
  3. 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.

Edited by Jose Ivan Vargas

Merge request reports

Loading