Skip to content

WIP: Refactor Apollo cache update logic for Design Upload

What does this MR do?

Raised in #38248, this MR aims to refactor our mutations/updates to Apollo Cache such that the following goals are achieved:

  • easy testability of transformations/cache update payloads
  • easy to use
    • lean functions, limited dependencies
    • hide as much complexity as possible
  • easy to find/intuitive location within vue apps

This is still very much in-flux but I feel it would be good to get some early opinions on this, as it could potentially be a pattern we adopt for future Apollo-based Vue apps (that use Apollo's cache)

Edited by Tom Quirk

Merge request reports