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
- Closes [LS] Introduce a minimum language server versio... (#541744 - closed)
- Closes [LS] Enforce minimum language server version fo... (#541751 - closed)
Screenshots or screen recordings
Before | After |
---|---|
![]() |
|
![]() |
How to set up and validate locally
- Checkout this branch.
- Run
bundle exec rake db:migrate
- Run new RSpec coverage.
- Visit Application Settings under http://gdk.test:3000
- Install GitLab Workflow in VS Code.
- Authenticate with your gdk instance using a personal access token.
- Test extension with feature disabled requests with a minimum version of 999.0.0.
- Test extension with feature disabled requests still succeed with a minimum version of 999.0.0.
- Test extension with feature enabled and application setting disabled still succeed when minimum is 999.0.0.
- Test feature enabled with application setting enabled fails when minimum is 999.0.0.
- 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