Add Boolean AI network settings
What does this MR do and why?
Followup to !229563 (merged) - which added the setting data to the database.
This MR makes available to the front-end the boolean settings allow_project_extension, include_recommended_allowed, enforce_on_local_clients and allow_all_unix_sockets (for both instance-level and TLG settings)
References
Relates to https://gitlab.com/gitlab-org/gitlab/-/work_items/593149
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
From the console, check settings:
Instance level:
::Ai::Setting.instance.allow_all_unix_sockets
::Ai::Setting.instance.include_recommended_allowed
::Ai::Setting.instance.allow_project_extension
::Ai::Setting.instance.enforce_on_local_clientsNamespace level:
namespace = Group.find(1000000)
namespace.ai_settings.allow_all_unix_sockets
namespace.ai_settings.include_recommended_allowed
namespace.ai_settings.allow_project_extension
namespace.ai_settings.enforce_on_local_clientsTo verify these settings are being passed to the front-end, go to the settings page (group level for SaaS, instance admin for SM), view page source and search for data-allow-all-unix-sockets, data-allow-project-extension, and data-include-recommended-allowed
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.