Merge branch 'master' of github.com:mattermost/mattermost-server into MM-51692-delete-reason-feedback-is-sending-notifications-with-translated-text

Этот коммит содержится в:
Conor Macpherson
2023-04-05 09:38:20 -04:00
родитель 5ca5d2be88 28ad1c80cd
Коммит aebc8e97f3
3 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@@ -442,7 +442,7 @@ func (lr *LicenseRecord) IsValid() *AppError {
}
if lr.Bytes == "" || len(lr.Bytes) > 10000 {
return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.create_at.app_error", nil, "", http.StatusBadRequest)
return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.bytes.app_error", nil, "", http.StatusBadRequest)
}
return nil

Просмотреть файл

@@ -120,7 +120,7 @@ func TestUploadLicenseFile(t *testing.T) {
require.Equal(t, http.StatusBadRequest, resp.StatusCode)
})
t.Run("try to get gone through trial, with TE build", func(t *testing.T) {
t.Run("try to get one through trial, with TE build", func(t *testing.T) {
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ExperimentalSettings.RestrictSystemAdmin = false })
th.App.Srv().Platform().SetLicenseManager(nil)

Просмотреть файл

@@ -9231,6 +9231,10 @@
"id": "model.job.is_valid.type.app_error",
"translation": "Invalid job type."
},
{
"id": "model.license_record.is_valid.bytes.app_error",
"translation": "Invalid value for bytes when uploading a license."
},
{
"id": "model.license_record.is_valid.create_at.app_error",
"translation": "Invalid value for create_at when uploading a license."