PLT-6554 Add config setting to control enabling API version 3 (#6835)
* Add config setting to control enabling API version 3 * Update help text for APIv3 config setting (#6843) * Update configuration_settings.jsx * Update en.json
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4bd7b68b24
Коммит
8ec8948c84
@@ -142,6 +142,7 @@ type ServiceSettings struct {
|
||||
EnableOnlyAdminIntegrations *bool
|
||||
EnablePostUsernameOverride bool
|
||||
EnablePostIconOverride bool
|
||||
EnableAPIv3 *bool
|
||||
EnableLinkPreviews *bool
|
||||
EnableTesting bool
|
||||
EnableDeveloper *bool
|
||||
@@ -563,6 +564,11 @@ func (o *Config) SetDefaults() {
|
||||
o.ServiceSettings.LicenseFileLocation = new(string)
|
||||
}
|
||||
|
||||
if o.ServiceSettings.EnableAPIv3 == nil {
|
||||
o.ServiceSettings.EnableAPIv3 = new(bool)
|
||||
*o.ServiceSettings.EnableAPIv3 = true
|
||||
}
|
||||
|
||||
if o.ServiceSettings.EnableLinkPreviews == nil {
|
||||
o.ServiceSettings.EnableLinkPreviews = new(bool)
|
||||
*o.ServiceSettings.EnableLinkPreviews = false
|
||||
|
||||
Ссылка в новой задаче
Block a user