-
- Downloads
Add duo_features_enabled cascading setting
* `duo_features_enabled` was already an attribute on the `project_settings` table * This MR uses the cascading settings framework to add this attribute to the `namespace_settings` table as well: https://docs.gitlab.com/ee/development/cascading_settings.html * Other cascading settings assume that projects inherit the setting value from their parent group. For this setting, we want each project to be able to have a distinct setting value that may be different from its parent group. To do this, a new `CascadingProjectSettingAttribute` module was added that has very similar functionality to the `CascadingNamespaceSettingsAttribute` module. * THis MR adds the cascading setting and behavior but the setting will not affect Duo Chat or Code Suggestions settings until a follow-on MR. * #441481 Changelog: added EE: true
parent
5ff2f3e3
No related branches found
No related tags found
Showing
- app/models/concerns/cascading_project_setting_attribute.rb 174 additions, 0 deletionsapp/models/concerns/cascading_project_setting_attribute.rb
- app/models/project_setting.rb 1 addition, 0 deletionsapp/models/project_setting.rb
- db/migrate/20240213223630_add_duo_features_enabled_cascading_setting.rb 16 additions, 0 deletions...40213223630_add_duo_features_enabled_cascading_setting.rb
- db/schema_migrations/20240213223630 1 addition, 0 deletionsdb/schema_migrations/20240213223630
- db/structure.sql 4 additions, 0 deletionsdb/structure.sql
- ee/app/models/ee/namespace_setting.rb 2 additions, 0 deletionsee/app/models/ee/namespace_setting.rb
- ee/app/models/ee/project_setting.rb 2 additions, 0 deletionsee/app/models/ee/project_setting.rb
- ee/spec/models/ee/project_setting_spec.rb 4 additions, 0 deletionsee/spec/models/ee/project_setting_spec.rb
- ee/spec/models/namespace_setting_spec.rb 4 additions, 0 deletionsee/spec/models/namespace_setting_spec.rb
- spec/requests/api/graphql/projects/projects_spec.rb 3 additions, 1 deletionspec/requests/api/graphql/projects/projects_spec.rb
- spec/support/shared_examples/models/concerns/cascading_project_setting_shared_examples.rb 160 additions, 0 deletions...els/concerns/cascading_project_setting_shared_examples.rb
db/schema_migrations/20240213223630
0 → 100644
-
mentioned in merge request kubitus-project/kubitus-installer!2869 (merged)
Please register or sign in to comment