Skip to content

Check that possibleTypes for apollo are correct

Lukas Eipert requested to merge leipert-graphql-types into master

What does this MR do and why?

When our GraphQL Union types or Interfaces change, we need to regenerate app/assets/javascripts/graphql_shared/possibleTypes.json. Not doing this has caused a regression before, so we create a little script to regenerate the types and check whether the checked in types are correct in CI.

This would have help prevent: !82833 (merged)

Fixes: #351896 (closed)

Screenshots or screen recordings

N/A

How to set up and validate locally

N/A

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 Lukas Eipert

Merge request reports