GC: Use Human-Readable Path Names for data.Collections (#882)

Changes all `data.Collection.` FullPath to use display name.
This commit is contained in:
Danny 2022-09-16 15:32:23 -04:00 committed by GitHub
parent ac638d3162
commit 31e4a68355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -500,7 +500,9 @@ func IterateSelectAllContactsForCollections(
return true // Invalid state TODO: How should this be named
}
dirPath, err := path.Builder{}.Append(*folder.GetId()).ToDataLayerExchangePathForCategory(
directory := *folder.GetDisplayName()
dirPath, err := path.Builder{}.Append(directory).ToDataLayerExchangePathForCategory(
qp.Credentials.TenantID,
qp.User,
path.ContactsCategory,
@ -523,7 +525,7 @@ func IterateSelectAllContactsForCollections(
statusUpdater,
)
edc.jobs = append(edc.jobs, listOfIDs...)
collections[*folder.GetId()] = &edc
collections[directory] = &edc
return true
}

View File

@ -141,6 +141,7 @@ func CollectMailFolders(
support.ConnectorStackErrorTrace(err),
)
}
// Iterator required to ensure all potential folders are inspected
// when the breadth of the folder space is large
pageIterator, err := msgraphgocore.NewPageIterator(