Add ShowFullName property (#14189)
Этот коммит содержится в:
@@ -70,6 +70,7 @@ func GenerateClientConfig(c *model.Config, diagnosticID string, license *model.L
|
|||||||
props["EmailNotificationContentsType"] = *c.EmailSettings.EmailNotificationContentsType
|
props["EmailNotificationContentsType"] = *c.EmailSettings.EmailNotificationContentsType
|
||||||
|
|
||||||
props["ShowEmailAddress"] = strconv.FormatBool(*c.PrivacySettings.ShowEmailAddress)
|
props["ShowEmailAddress"] = strconv.FormatBool(*c.PrivacySettings.ShowEmailAddress)
|
||||||
|
props["ShowFullName"] = strconv.FormatBool(*c.PrivacySettings.ShowFullName)
|
||||||
|
|
||||||
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
|
props["EnableFileAttachments"] = strconv.FormatBool(*c.FileSettings.EnableFileAttachments)
|
||||||
props["EnablePublicLink"] = strconv.FormatBool(*c.FileSettings.EnablePublicLink)
|
props["EnablePublicLink"] = strconv.FormatBool(*c.FileSettings.EnablePublicLink)
|
||||||
|
|||||||
@@ -165,6 +165,19 @@ func TestGetClientConfig(t *testing.T) {
|
|||||||
"IsDefaultMarketplace": "false",
|
"IsDefaultMarketplace": "false",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"enable ShowFullName prop",
|
||||||
|
&model.Config{
|
||||||
|
PrivacySettings: model.PrivacySettings{
|
||||||
|
ShowFullName: bToP(true),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"tag1",
|
||||||
|
nil,
|
||||||
|
map[string]string{
|
||||||
|
"ShowFullName": "true",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, testCase := range testCases {
|
for _, testCase := range testCases {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user