[MM-37772] Idiomatic naming (URL, URI, API) (#18128)
* s/Url/URL/g & s/Uri/URI/g * s/Api/API/g
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a7f5512ff3
Коммит
757dc96461
@@ -85,8 +85,8 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
||||
|
||||
props["EnableEmojiPicker"] = strconv.FormatBool(*c.ServiceSettings.EnableEmojiPicker)
|
||||
props["EnableGifPicker"] = strconv.FormatBool(*c.ServiceSettings.EnableGifPicker)
|
||||
props["GfycatApiKey"] = *c.ServiceSettings.GfycatApiKey
|
||||
props["GfycatApiSecret"] = *c.ServiceSettings.GfycatApiSecret
|
||||
props["GfycatApiKey"] = *c.ServiceSettings.GfycatAPIKey
|
||||
props["GfycatApiSecret"] = *c.ServiceSettings.GfycatAPISecret
|
||||
props["MaxFileSize"] = strconv.FormatInt(*c.FileSettings.MaxFileSize, 10)
|
||||
|
||||
props["MaxNotificationsPerChannel"] = strconv.FormatInt(*c.TeamSettings.MaxNotificationsPerChannel, 10)
|
||||
@@ -138,8 +138,8 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
||||
props["DataRetentionFileRetentionDays"] = "0"
|
||||
props["CWSUrl"] = ""
|
||||
|
||||
props["CustomUrlSchemes"] = strings.Join(c.DisplaySettings.CustomUrlSchemes, ",")
|
||||
props["IsDefaultMarketplace"] = strconv.FormatBool(*c.PluginSettings.MarketplaceUrl == model.PluginSettingsDefaultMarketplaceUrl)
|
||||
props["CustomUrlSchemes"] = strings.Join(c.DisplaySettings.CustomURLSchemes, ",")
|
||||
props["IsDefaultMarketplace"] = strconv.FormatBool(*c.PluginSettings.MarketplaceURL == model.PluginSettingsDefaultMarketplaceURL)
|
||||
props["ExperimentalSharedChannels"] = "false"
|
||||
props["CollapsedThreads"] = *c.ServiceSettings.CollapsedThreads
|
||||
|
||||
@@ -205,7 +205,7 @@ func GenerateClientConfig(c *model.Config, telemetryID string, license *model.Li
|
||||
}
|
||||
|
||||
if *license.Features.Cloud {
|
||||
props["CWSUrl"] = *c.CloudSettings.CWSUrl
|
||||
props["CWSUrl"] = *c.CloudSettings.CWSURL
|
||||
}
|
||||
|
||||
if *license.Features.SharedChannels {
|
||||
|
||||
@@ -142,7 +142,7 @@ func TestGetClientConfig(t *testing.T) {
|
||||
"default marketplace",
|
||||
&model.Config{
|
||||
PluginSettings: model.PluginSettings{
|
||||
MarketplaceUrl: model.NewString(model.PluginSettingsDefaultMarketplaceUrl),
|
||||
MarketplaceURL: model.NewString(model.PluginSettingsDefaultMarketplaceURL),
|
||||
},
|
||||
},
|
||||
"tag1",
|
||||
@@ -155,7 +155,7 @@ func TestGetClientConfig(t *testing.T) {
|
||||
"non-default marketplace",
|
||||
&model.Config{
|
||||
PluginSettings: model.PluginSettings{
|
||||
MarketplaceUrl: model.NewString("http://example.com"),
|
||||
MarketplaceURL: model.NewString("http://example.com"),
|
||||
},
|
||||
},
|
||||
"tag1",
|
||||
|
||||
@@ -85,8 +85,8 @@ func desanitize(actual, target *model.Config) {
|
||||
*target.MessageExportSettings.GlobalRelaySettings.SMTPPassword = *actual.MessageExportSettings.GlobalRelaySettings.SMTPPassword
|
||||
}
|
||||
|
||||
if target.ServiceSettings.GfycatApiSecret != nil && *target.ServiceSettings.GfycatApiSecret == model.FakeSetting {
|
||||
*target.ServiceSettings.GfycatApiSecret = *actual.ServiceSettings.GfycatApiSecret
|
||||
if target.ServiceSettings.GfycatAPISecret != nil && *target.ServiceSettings.GfycatAPISecret == model.FakeSetting {
|
||||
*target.ServiceSettings.GfycatAPISecret = *actual.ServiceSettings.GfycatAPISecret
|
||||
}
|
||||
|
||||
if *target.ServiceSettings.SplitKey == model.FakeSetting {
|
||||
|
||||
Ссылка в новой задаче
Block a user