Skip to content

Conversation

@kaviththiranga
Copy link
Contributor

This PR updates the Backstage plugins to align with OpenChoreo's removal of the Organization CRD (discussion #983).

The new hierarchy
is Namespace → Project → Component.

Fixes: openchoreo/openchoreo#1518

  This commit updates the Backstage plugins to align with OpenChoreo's
  removal of the Organization CRD (discussion #983). The new hierarchy
  is Namespace → Project → Component.

  API Changes:
  - Update all routes from /orgs/{orgName}/... to /namespaces/{namespaceName}/...
  - Rename path parameter orgName → namespaceName throughout
  - Update response field orgName → namespaceName in all schemas

  Frontend Changes:
  - Rename OrganizationSummary → NamespaceSummary
  - Rename useOrganizations → useNamespaces hook
  - Update ResourceHierarchy to use namespace/namespace_units
  - Update ComponentInfo and BuildLogsParams interfaces
  - Update OpenChoreoClient to use CHOREO_ANNOTATIONS.NAMESPACE

  Backend Changes:
  - Update PlatformEnvironmentService interface methods
  - Update observability backend router and service
  - Update scaffolder actions (project.ts, component.ts)
  - Update componentResourceBuilder to use namespaceName

  Entity Provider Changes:
  - Update DataplaneEntityV1alpha1 spec properties
  - Rename organizationVirtualHost → namespaceVirtualHost
  - Rename organizationHTTPPort/HTTPSPort → namespaceHTTPPort/HTTPSPort

  OpenAPI Spec:
  - Update DataPlaneResponse schema with namespace-based properties
  - Regenerate TypeScript clients

Related to: openchoreo/openchoreo#1518
  Permission system:
  - Update regex patterns from /^org\/.../ to /^namespace\/.../
  - Rename 'org' variables to 'namespace' throughout permission rules
  - Update capability path format in documentation and examples

  UI labels:
  - Change "Domain (Organization)" to "Domain (Namespace)" in catalog
  - Update related comments in filter and table column components

  Observability hooks:
  - Rename useGetOrgAndProjectByEntity to useGetNamespaceAndProjectByEntity
  - Rename useGetEnvironmentsByOrganization to useGetEnvironmentsByNamespace
  - Update API query param from ?organization= to ?namespace=
  - Update all consumer components (Metrics, Logs, Traces, RCA pages)

  Scaffolder templates:
  - Rename organization_name parameter to namespace_name
  - Update action input from orgName to namespaceName
  - Update field labels from "Organization Name" to "Namespace Name"

Related to: openchoreo/openchoreo#1518
  - Remove ORGANIZATION constant from CHOREO_ANNOTATIONS (keep NAMESPACE)
  - Update all usages of CHOREO_ANNOTATIONS.ORGANIZATION to NAMESPACE
  - Rename organizationName params to namespaceName across all plugins
  - Update entityUtils.ts interface: organization → namespace
  - Update API query params from organizationName to namespaceName
  - Replace hardcoded 'openchoreo.io/organization' strings with 'openchoreo.io/namespace'

  Files updated across:
  - openchoreo-observability hooks
  - openchoreo-ci plugin (client, hooks, components, backend router)
  - openchoreo plugin (traits, environments, workflows, projects)
  - openchoreo-react hooks
  - platform-engineer-core APIs
  - permission-backend-module-openchoreo-policy rules
  - catalog-backend-module-openchoreo converters
  - scaffolder field extensions
  - Rename orgName to namespaceName in backend routers and API params
  - Update ObservabilityApi interface and implementation
  - Update platform-engineer-core ComponentInfo interfaces
  - Migrate scaffolder templates from organization_name to namespace_name
  - Update scaffolder field extensions to read namespace_name from formContext
  - Update factory.ts JSDoc examples to use namespace paths
@kaviththiranga kaviththiranga marked this pull request as draft January 20, 2026 04:57
  - Rename organization to namespace in platform-engineer-core types
  - Update observability hooks parameter names (organization → namespaceName)
  - Rename organization to namespace in Access Control UI wizard state
  - Update permission system (organization:* → namespace:*)
  - Update UI text/error messages and comments/JSDoc
  - Update AuthzProfileService scope types (org → namespace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map the new OpenChoreo Hierarchical Resource Model to Backstage

1 participant