Skip to content

Commit

Permalink
feat: add supporting groups to sites property map (#1205)
Browse files Browse the repository at this point in the history
* feat: add supporting groups to sites property map

* feat: add to IHubSite

* feat: supportingGroups to trait

* feat: supportingGroups to legacyTeams
  • Loading branch information
benstoltz authored Sep 11, 2023
1 parent 6b7d51d commit 2d473d6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 31 deletions.
50 changes: 19 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions packages/common/src/core/types/IHubSite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export interface IHubSite
* @internal
*/
legacyCapabilities: string[];

/** Legacy teams - list of ids */
legacyTeams: string[];
}

export type IHubSiteEditor = Omit<IHubSite, "extent"> & {
Expand Down
4 changes: 4 additions & 0 deletions packages/common/src/sites/_internal/getPropertyMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export function getPropertyMap(): IPropertyMap[] {
entityKey: "location",
storeKey: "item.properties.location",
});
map.push({
entityKey: "legacyTeams",
storeKey: "item.properties.teams",
});
map.push({ entityKey: "catalog", storeKey: "data.catalog" });

map.push({
Expand Down

0 comments on commit 2d473d6

Please sign in to comment.