Move the sanitization and validation of CPA values to the model (#30653)

* Move the sanitization and validation of CPA values to the model

* Fix CI

* Use proper IDs instead of strings

---------

Co-authored-by: Miguel de la Cruz <miguel@ctrlz.es>
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Miguel de la Cruz
2025-04-10 11:31:40 +02:00
коммит произвёл GitHub
родитель c7165c5ff2
Коммит 0c8e30da4d
7 изменённых файлов: 329 добавлений и 303 удалений

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

@@ -1865,14 +1865,6 @@
"id": "api.custom_groups.no_remote_id",
"translation": "remote_id must be blank for custom group"
},
{
"id": "api.custom_profile_attributes.field_conversion_error",
"translation": "Unable to convert the property field to a custom profile attribute field"
},
{
"id": "api.custom_profile_attributes.field_not_found",
"translation": "trying to patch a field that does not exist"
},
{
"id": "api.custom_profile_attributes.invalid_field_patch",
"translation": "invalid custom profile attribute field patch"
@@ -5086,6 +5078,10 @@
"id": "app.custom_profile_attributes.search_property_fields.app_error",
"translation": "Unable to search Custom Profile Attribute fields"
},
{
"id": "app.custom_profile_attributes.validate_value.app_error",
"translation": "Failed to validate property value"
},
{
"id": "app.delete_scheduled_post.delete_error",
"translation": "Failed to delete scheduled post from database."