Report a problem (#30444)
* Add report a problem type and allow logs config * Improve device type logic * Add tests and minor fixes * Add texts * Fix tests by avoiding circular dependencies * Fix test * Fix useexternallink updating mailtos, and changing the content of query parameters * Fix texts * Fix e2e test * Fix tsc --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
29f7c895b8
Коммит
71334c6d8b
@@ -294,7 +294,10 @@ func GenerateLimitedClientConfig(c *model.Config, telemetryID string, license *m
|
||||
props["PrivacyPolicyLink"] = *c.SupportSettings.PrivacyPolicyLink
|
||||
props["AboutLink"] = *c.SupportSettings.AboutLink
|
||||
props["HelpLink"] = *c.SupportSettings.HelpLink
|
||||
props["ReportAProblemType"] = *c.SupportSettings.ReportAProblemType
|
||||
props["ReportAProblemLink"] = *c.SupportSettings.ReportAProblemLink
|
||||
props["ReportAProblemMail"] = *c.SupportSettings.ReportAProblemMail
|
||||
props["AllowDownloadLogs"] = strconv.FormatBool(*c.SupportSettings.AllowDownloadLogs)
|
||||
props["ForgotPasswordLink"] = *c.SupportSettings.ForgotPasswordLink
|
||||
props["SupportEmail"] = *c.SupportSettings.SupportEmail
|
||||
props["EnableAskCommunityLink"] = strconv.FormatBool(*c.SupportSettings.EnableAskCommunityLink)
|
||||
|
||||
@@ -319,6 +319,25 @@ func TestGetClientConfig(t *testing.T) {
|
||||
"GiphySdkKey": model.ServiceSettingsDefaultGiphySdkKeyTest,
|
||||
},
|
||||
},
|
||||
{
|
||||
"report a problem values",
|
||||
&model.Config{
|
||||
SupportSettings: model.SupportSettings{
|
||||
ReportAProblemType: model.NewPointer("type"),
|
||||
ReportAProblemLink: model.NewPointer("http://example.com"),
|
||||
ReportAProblemMail: model.NewPointer("mail"),
|
||||
AllowDownloadLogs: model.NewPointer(true),
|
||||
},
|
||||
},
|
||||
"",
|
||||
nil,
|
||||
map[string]string{
|
||||
"ReportAProblemType": "type",
|
||||
"ReportAProblemLink": "http://example.com",
|
||||
"ReportAProblemMail": "mail",
|
||||
"AllowDownloadLogs": "true",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, testCase := range testCases {
|
||||
|
||||
Ссылка в новой задаче
Block a user