From ab99f0656fabed8a62a8c6340be7d538cc7bf8d9 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 17 Sep 2018 15:51:26 +0100 Subject: MM-11781: Basic Data Export Command Line. (#9296) * MM-11781: Basic Data Export Command Line. * ChannelStore new unit tests. * TeamStore new unit tests. * Unit test for new UserStore function. * Unit tests for post store new methods. * Review fixes. * Fix duplicate command name. --- store/store.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'store/store.go') diff --git a/store/store.go b/store/store.go index 8c731f8d5..8073b9437 100644 --- a/store/store.go +++ b/store/store.go @@ -111,6 +111,8 @@ type TeamStore interface { ResetAllTeamSchemes() StoreChannel ClearAllCustomRoleAssignments() StoreChannel AnalyticsGetTeamCountForScheme(schemeId string) StoreChannel + GetAllForExportAfter(limit int, afterId string) StoreChannel + GetTeamMembersForExport(userId string) StoreChannel } type ChannelStore interface { @@ -179,6 +181,8 @@ type ChannelStore interface { EnableExperimentalPublicChannelsMaterialization() DisableExperimentalPublicChannelsMaterialization() IsExperimentalPublicChannelsMaterializationEnabled() bool + GetAllChannelsForExportAfter(limit int, afterId string) StoreChannel + GetChannelMembersForExport(userId string, teamId string) StoreChannel } type ChannelMemberHistoryStore interface { @@ -217,6 +221,8 @@ type PostStore interface { PermanentDeleteBatch(endTime int64, limit int64) StoreChannel GetOldest() StoreChannel GetMaxPostSize() StoreChannel + GetParentsForExportAfter(limit int, afterId string) StoreChannel + GetRepliesForExport(parentId string) StoreChannel } type UserStore interface { @@ -272,6 +278,7 @@ type UserStore interface { GetEtagForProfilesNotInTeam(teamId string) StoreChannel ClearAllCustomRoleAssignments() StoreChannel InferSystemInstallDate() StoreChannel + GetAllAfter(limit int, afterId string) StoreChannel } type SessionStore interface { -- cgit v1.2.3-1-g7c22