diff --git a/src/cli/export/groups.go b/src/cli/export/groups.go index ab9c19406..355987b8d 100644 --- a/src/cli/export/groups.go +++ b/src/cli/export/groups.go @@ -8,6 +8,7 @@ import ( "github.com/alcionai/corso/src/cli/flags" "github.com/alcionai/corso/src/cli/utils" "github.com/alcionai/corso/src/pkg/control" + "github.com/alcionai/corso/src/pkg/selectors" ) // called by export.go to map subcommands to provider-specific handling. @@ -100,6 +101,10 @@ func exportGroupsCmd(cmd *cobra.Command, args []string) error { sel := utils.IncludeGroupsRestoreDataSelectors(ctx, opts) utils.FilterGroupsRestoreInfoSelectors(sel, opts) + // TODO(pandeyabs): Exclude conversations from export since they are not + // supported yet. https://github.com/alcionai/corso/issues/4822 + sel.Exclude(sel.Conversation(selectors.Any())) + acceptedGroupsFormatTypes := []string{ string(control.DefaultFormat), string(control.JSONFormat), diff --git a/src/cli/restore/groups.go b/src/cli/restore/groups.go index 4b2f93c33..08d6a8949 100644 --- a/src/cli/restore/groups.go +++ b/src/cli/restore/groups.go @@ -7,6 +7,7 @@ import ( "github.com/alcionai/corso/src/cli/flags" "github.com/alcionai/corso/src/cli/utils" "github.com/alcionai/corso/src/pkg/dttm" + "github.com/alcionai/corso/src/pkg/selectors" ) // called by restore.go to map subcommands to provider-specific handling. @@ -91,6 +92,10 @@ func restoreGroupsCmd(cmd *cobra.Command, args []string) error { sel := utils.IncludeGroupsRestoreDataSelectors(ctx, opts) utils.FilterGroupsRestoreInfoSelectors(sel, opts) + // TODO(pandeyabs): Exclude conversations from restores since they are not + // supported yet. + sel.Exclude(sel.Conversation(selectors.Any())) + return runRestore( ctx, cmd,