Message export: Fix job progress calculation (#21925)

* use posts count instead of job duration to calculate progress

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Vishal
2022-12-27 14:34:40 +05:30
коммит произвёл GitHub
родитель ab133f20de
Коммит dc533e59b8
4 изменённых файлов: 166 добавлений и 32 удалений

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

@@ -333,13 +333,16 @@ type GetPostsOptions struct {
type PostCountOptions struct {
// Only include posts on a specific team. "" for any team.
TeamId string
MustHaveFile bool
MustHaveHashtag bool
ExcludeDeleted bool
UsersPostsOnly bool
TeamId string
MustHaveFile bool
MustHaveHashtag bool
ExcludeDeleted bool
ExcludeSystemPosts bool
UsersPostsOnly bool
// AllowFromCache looks up cache only when ExcludeDeleted and UsersPostsOnly are true and rest are falsy.
AllowFromCache bool
SincePostID string
SinceUpdateAt int64
}
func (o *Post) Etag() string {