replace references to settings.yml

pull/10296/head
ulferts 3 years ago
parent 07801a8cf8
commit f5887d6d14
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 4
      app/seeders/basic_data/setting_seeder.rb
  2. 3
      docs/api/apiv3/tags/configuration.yml

@ -51,8 +51,8 @@ module BasicData
hash[definition.name] = definition.value || '' hash[definition.name] = definition.value || ''
end end
# deviate from the defaults specified in settings.yml here # deviate from the defaults specified in the settings definition here
# to set a default role. The role cannot be specified in the settings.yml as # to set a default role. The role cannot be specified in the definition as
# that would mean to know the ID upfront. # that would mean to know the ID upfront.
update_unless_present(settings, 'new_project_user_role_id') do update_unless_present(settings, 'new_project_user_role_id') do
Role.find_by(name: I18n.t(:default_role_project_admin)).try(:id) Role.find_by(name: I18n.t(:default_role_project_admin)).try(:id)

@ -1,7 +1,8 @@
--- ---
description: |- description: |-
The configuration endpoint allows to read certain configuration parameters of the OpenProject instance. 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. For now this endpoint will only allow access to settings deemed useful for a client to know in general.

Loading…
Cancel
Save