Skip to content

Remove deprecated /code_suggestions/tokens endpoint

Jessie Young requested to merge jy-remove-code-suggestions-tokens-endpoint into master

What does this MR do and why?

  • In an earlier iteration of code suggestions, this endpoint was used to generate a JWT for the IDE, which then made calls directly to the AI Gateway.
  • This endpoint already returns a 404 for gitlab.com, but we kept it around for older self-managed GitLab instances that were using code suggestions.
  • As of Feb 15th, all Code Suggestions users must be on 16.7 or newer if they are self managed so we can safely get rid of this endpoint.
  • Also removing instrumentation for this endpoint while I am here
  • https://gitlab.com/gitlab-org/editor-extensions/gitlab-lsp/-/issues/137

MR acceptance checklist

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

How to set up and validate locally

Removal of deprecated endpoint, nothing to test.

Edited by Jessie Young

Merge request reports