Skip to content

Support minimum language server client restriction

What does this MR do and why?

  • What? Support restricting users from accessing the API from out of date Editor Extensions clients through a minimum language server version application setting.
  • Why? To allow instance administrators to enforce compliance to a minimum language server version. This helps promote better update management of Editor Extensions. For example model switching functionality will require Editor Extensions include a minimum language server version to pass model name instead of only model provider.

References

Screenshots or screen recordings

Before After
Screenshot 2025-06-05 at 16.32.58.png
Screenshot 2025-06-05 at 16.32.50.png

How to set up and validate locally

  1. Checkout this branch.
  2. Run bundle exec rake db:migrate
  3. Run new RSpec coverage.
  4. Visit Application Settings under http://gdk.test:3000
  5. Install GitLab Workflow in VS Code.
  6. Authenticate with your gdk instance using a personal access token.
  7. Test extension with feature disabled requests with a minimum version of 999.0.0.
  8. Test extension with feature disabled requests still succeed with a minimum version of 999.0.0.
  9. Test extension with feature enabled and application setting disabled still succeed when minimum is 999.0.0.
  10. Test feature enabled with application setting enabled fails when minimum is 999.0.0.
  11. Test feature enabled with application setting enabled suceeds when minimum is 0.0.1.

MR acceptance checklist

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

Edited by Erran Carey

Merge request reports

Loading