[MM-44488] Cloud limits: enforcing messages (#20362)

* Add new Job to keep updating the last_accessible_post time

* Filter out posts for funcs returning PostList model

* Separate methods to get and compute cache

* filter pinned posts

* For posts with sorted CreateAt order, support a faster form of filtering.

* Add inaccessible header for getPost and getPostsByIDs APIs

* replace manual binary search with the std. library

* in-place filter posts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Nathaniel Allred <neallred@protonmail.com>
Этот коммит содержится в:
Vishal
2022-07-06 11:56:39 +05:30
коммит произвёл GitHub
родитель c62d4bee5f
Коммит e5ee5eecd8
26 изменённых файлов: 1253 добавлений и 45 удалений

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

@@ -5475,6 +5475,10 @@
"id": "app.job.update.app_error",
"translation": "Unable to update the job."
},
{
"id": "app.last_accessible_post.app_error",
"translation": "Error fetching last accessible post"
},
{
"id": "app.license.generate_renewal_token.app_error",
"translation": "Failed to generate a new renewal token."
@@ -5811,6 +5815,10 @@
"id": "app.post.analytics_user_counts_posts_by_day.app_error",
"translation": "Unable to get user counts with posts."
},
{
"id": "app.post.cloud.get.app_error",
"translation": "Can not fetch the post as it is past the cloud's plan limit."
},
{
"id": "app.post.delete.app_error",
"translation": "Unable to delete the post."
@@ -6895,6 +6903,10 @@
"id": "brand.save_brand_image.save_image.app_error",
"translation": "Unable to write the image file to your file storage. Please check your connection and try again."
},
{
"id": "common.parse_error_int64",
"translation": "Failed to parse the value:{{.Value}} to int64"
},
{
"id": "ent.account_migration.get_all_failed",
"translation": "Unable to get users."