Use no-cache for work item types query to see renamed work item types

What does this MR do and why?

After renaming a work item type, the updated name is not consistently reflected across the UI. This is related to Apollo Cache not updating or invalidating cached data correctly. For example, when the Issue work item type is renamed to Pizza, some parts of the UI correctly display the new name, while others occasionally fall back to the old name.

To fix this, we use no-cache fetch policy for the work item types query so that renamed work item types are always fetched fresh from the server.

References

Closes #593437 (closed)

Screenshots or screen recordings

Use case Recording
Create work item type options
Type filter in project work items list page
Work item detail page

How to set up and validate locally

Enable the work_item_configurable_types FF

  1. Navigate to the Work Item Settings page at the root group.
  2. Rename the Issue work item type to Pizza.
  3. Go to the work item list page for the project
  4. See that you are able to see the renamed work item type in create work item type modal, type filter in list and on the detail page

MR acceptance checklist

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

Related to #593437 (closed)

Edited by Deepika Guliani

Merge request reports

Loading