Switch to using BuildMetadata helper (#4217)

<!-- PR description-->

---

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No

#### Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [x] 🧹 Tech Debt/Cleanup

#### Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
Abin Simon 2023-09-12 08:51:19 +05:30 committed by GitHub
parent bf08c2a257
commit 39428a4b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -543,9 +543,7 @@ func (suite *GroupsCollectionIntgSuite) TestCreateGroupsCollection_SharePoint()
// but it should be more than one.
assert.Greater(t, len(collections), 1)
// TODO(meain): Switch to using BuildMetadata
// https://github.com/alcionai/corso/pull/4184#discussion_r1316139701
p, err := path.Builder{}.ToServiceCategoryMetadataPath(
p, err := path.BuildMetadata(
suite.tenantID,
groupID,
path.GroupsService,

View File

@ -187,9 +187,7 @@ func getSitesMetadataCollection(
sites map[string]string,
su support.StatusUpdater,
) (data.BackupCollection, error) {
// TODO(meain): Switch to using BuildMetadata
// https://github.com/alcionai/corso/pull/4184#discussion_r1316139701
p, err := path.Builder{}.ToServiceCategoryMetadataPath(
p, err := path.BuildMetadata(
tenantID,
groupID,
path.GroupsService,