MM-49564: Drafts upsert in the Store vs App layer (#22530)

* MM-49564: Upsert in the Store vs App layer

Refactor drafts so that Upserting a draft would happen in the DB and not
in the app layer.

* Fixes mocks

* Fixes tests

* Fixes translations

* Fixes tests

* Update tests

* Fixes tests

* Addresses review comments

- renames Save => Upsert
- removes Sleep from tests

* Fixes flaky test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Kyriakos Z
2023-04-01 10:32:40 +03:00
коммит произвёл GitHub
родитель 4a3c853636
Коммит 4d2ed469bf
15 изменённых файлов: 113 добавлений и 395 удалений

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

@@ -5027,10 +5027,6 @@
"id": "app.draft.save.app_error",
"translation": "Unable to save the Draft."
},
{
"id": "app.draft.update.app_error",
"translation": "Unable to update the Draft."
},
{
"id": "app.email.no_rate_limiter.app_error",
"translation": "Rate limiter is not set up."