MM-38698: Add limit to the CLI compliance export command (#20997)
```release-note A batchSize option has been added to the mattermost export CLI command to limit the number of items exported. By default, if it is not included, it exports all the posts. ``` https://mattermost.atlassian.net/browse/MM-38698 Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4f363574fc
Коммит
a8154ddae0
@@ -17,20 +17,20 @@ type MessageExportInterface struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
// RunExport provides a mock function with given fields: format, since
|
||||
func (_m *MessageExportInterface) RunExport(format string, since int64) (int64, *model.AppError) {
|
||||
ret := _m.Called(format, since)
|
||||
// RunExport provides a mock function with given fields: format, since, limit
|
||||
func (_m *MessageExportInterface) RunExport(format string, since int64, limit int) (int64, *model.AppError) {
|
||||
ret := _m.Called(format, since, limit)
|
||||
|
||||
var r0 int64
|
||||
if rf, ok := ret.Get(0).(func(string, int64) int64); ok {
|
||||
r0 = rf(format, since)
|
||||
if rf, ok := ret.Get(0).(func(string, int64, int) int64); ok {
|
||||
r0 = rf(format, since, limit)
|
||||
} else {
|
||||
r0 = ret.Get(0).(int64)
|
||||
}
|
||||
|
||||
var r1 *model.AppError
|
||||
if rf, ok := ret.Get(1).(func(string, int64) *model.AppError); ok {
|
||||
r1 = rf(format, since)
|
||||
if rf, ok := ret.Get(1).(func(string, int64, int) *model.AppError); ok {
|
||||
r1 = rf(format, since, limit)
|
||||
} else {
|
||||
if ret.Get(1) != nil {
|
||||
r1 = ret.Get(1).(*model.AppError)
|
||||
|
||||
Ссылка в новой задаче
Block a user