Update to /connector/sharepoint/data_collections.go
Removal of metadata from SharePoint Library collect call. Stub left in overall DataCollections for future use.
This commit is contained in:
parent
77f404d476
commit
05a83de91a
@ -74,7 +74,6 @@ func DataCollections(
|
|||||||
spcs, _, err = collectLibraries(
|
spcs, _, err = collectLibraries(
|
||||||
ctx,
|
ctx,
|
||||||
itemClient,
|
itemClient,
|
||||||
metadata,
|
|
||||||
serv,
|
serv,
|
||||||
creds.AzureTenantID,
|
creds.AzureTenantID,
|
||||||
site,
|
site,
|
||||||
@ -145,7 +144,6 @@ func collectLists(
|
|||||||
func collectLibraries(
|
func collectLibraries(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
itemClient *http.Client,
|
itemClient *http.Client,
|
||||||
metadata []data.RestoreCollection,
|
|
||||||
serv graph.Servicer,
|
serv graph.Servicer,
|
||||||
tenantID, siteID string,
|
tenantID, siteID string,
|
||||||
scope selectors.SharePointScope,
|
scope selectors.SharePointScope,
|
||||||
@ -159,6 +157,7 @@ func collectLibraries(
|
|||||||
|
|
||||||
logger.Ctx(ctx).With("site", siteID).Debug("Creating SharePoint Library collections")
|
logger.Ctx(ctx).With("site", siteID).Debug("Creating SharePoint Library collections")
|
||||||
|
|
||||||
|
// TODO (ashmrtn): metadata for incremental support
|
||||||
odcs, excludes, err := onedrive.NewCollections(
|
odcs, excludes, err := onedrive.NewCollections(
|
||||||
itemClient,
|
itemClient,
|
||||||
tenantID,
|
tenantID,
|
||||||
@ -167,7 +166,7 @@ func collectLibraries(
|
|||||||
folderMatcher{scope},
|
folderMatcher{scope},
|
||||||
serv,
|
serv,
|
||||||
updater.UpdateStatus,
|
updater.UpdateStatus,
|
||||||
ctrlOpts).Get(ctx, metadata)
|
ctrlOpts).Get(ctx, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, support.WrapAndAppend(siteID, err, errs)
|
return nil, nil, support.WrapAndAppend(siteID, err, errs)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user