Skip to content

graphqlbackend: add new query repositoryRedirect

Administrator requested to merge jc/fix-graphql-api-repository-empty-string into master

Created by: unknwon

This PR adds another GraphQL query repositoryRedirect and changes the web app to use this new query instead of the old repository.

  • The repository query now consistently returns null when the repository not found on the local server.
  • The repositoryRedirect query returns a redirect URL (if enabled in the site configuration) when the repository not found on the local server. Name of this new query up for debate, I chose current one because it's the most intuitive.

Fixes #5125.

Review Tips

The diff itself looks weird, might be easier to review if expand up and down to see the full method body.

Merge request reports

Loading