Skip to content

Migrate packages backend to use graphql

Summary

The backend controllers and API for the package stage is set up using standard rails controllers and Grape APIs, graphql is gaining traction in other stages and it looks like it could be a great improvement for package.

Improvements

Graphql allows for more expressive API calls and more efficient requests. This could also unify the backend api in one place.

Risks

This is a refactoring issue, so there is risk of overlapping work, slowing down current or future work due to learning the new system, etc.

Involved components

Models:

  • Packages::Package
  • Packages::PackageFile
  • ContainerRepository

Optional: Intended side effects

Optional: Missing test coverage