From f5887d6d14e609b9f6cf1edb2decd08be7ef81a0 Mon Sep 17 00:00:00 2001 From: ulferts Date: Fri, 1 Apr 2022 14:20:15 +0200 Subject: [PATCH] replace references to settings.yml --- app/seeders/basic_data/setting_seeder.rb | 4 ++-- docs/api/apiv3/tags/configuration.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/seeders/basic_data/setting_seeder.rb b/app/seeders/basic_data/setting_seeder.rb index b3aa12b03e..3aca75f85b 100644 --- a/app/seeders/basic_data/setting_seeder.rb +++ b/app/seeders/basic_data/setting_seeder.rb @@ -51,8 +51,8 @@ module BasicData hash[definition.name] = definition.value || '' end - # deviate from the defaults specified in settings.yml here - # to set a default role. The role cannot be specified in the settings.yml as + # deviate from the defaults specified in the settings definition here + # to set a default role. The role cannot be specified in the definition as # that would mean to know the ID upfront. update_unless_present(settings, 'new_project_user_role_id') do Role.find_by(name: I18n.t(:default_role_project_admin)).try(:id) diff --git a/docs/api/apiv3/tags/configuration.yml b/docs/api/apiv3/tags/configuration.yml index 44cc7cb00f..1af5300498 100644 --- a/docs/api/apiv3/tags/configuration.yml +++ b/docs/api/apiv3/tags/configuration.yml @@ -1,7 +1,8 @@ --- description: |- The configuration endpoint allows to read certain configuration parameters of the OpenProject instance. - Note that there is no 1:1 relationship between this endpoint and the settings you can find in your settings.yml. + Note that there is no 1:1 relationship between this endpoint and the settings an administrator has at hand to modify the behaviour + of the application via configuration.yml or ENV variables. For now this endpoint will only allow access to settings deemed useful for a client to know in general.