Skip to content

Commit

Permalink
feat(hub-common): add feature flag for site pages via catalog (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwayson authored Nov 12, 2024
1 parent 1691f34 commit e459c74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package-lock.json

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

7 changes: 7 additions & 0 deletions packages/common/src/permissions/HubPermissionPolicies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ const SystemPermissionPolicies: IPermissionPolicy[] = [
environments: ["devext"],
availability: ["alpha"],
},
{
// Enable site getting pages from it's catalog
// instead of those linked in the site's data
permission: "hub:feature:pagescatalog",
environments: ["qaext"],
availability: ["alpha"],
},
// NOTE: only use this permission if necessary. Use the licenses check on a permission to check license when able instead of a separate permission.
// checks if using hub-premium
{
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/permissions/types/Permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const SystemPermissions = [
"hub:feature:history",
"hub:feature:catalogs",
"hub:feature:inline-workspace",
"hub:feature:pagescatalog",
"hub:license:hub-premium",
"hub:license:hub-basic",
"hub:license:enterprise-sites",
Expand Down

0 comments on commit e459c74

Please sign in to comment.