Skip to content

Comments

feat(gooddata-sdk): [AUTO] add deployment info fields to CatalogOrganization#1347

Open
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P009-add-deployment-info-to-organization
Open

feat(gooddata-sdk): [AUTO] add deployment info fields to CatalogOrganization#1347
yenkins-admin wants to merge 1 commit intomasterfrom
feature/auto-P009-add-deployment-info-to-organization

Conversation

@yenkins-admin
Copy link
Contributor

@yenkins-admin yenkins-admin commented Feb 19, 2026

Expose new read-only deployment info fields ('region' and 'dataCenter') on CatalogOrganization by updating the SDK wrapper to extract these fields from the API response.

P009 | https://github.com/gooddata/gdc-nas/actions/runs/22181963264

Caution

Test fixtures were modified. Manually edited fixtures may not match real API responses.
Re-record these fixtures against a live server before merging:

  • packages/gooddata-sdk/tests/catalog/fixtures/organization/organization.yaml

What changed in gdc-nas

Commit f0f3783 added two new read-only deployment info fields to the Organization model in metadata-model and exposed them via metadata-api:

  • region field (nullable String, @ApiOutOnly) — description: "Current deployment cluster name", maps from gdc.deploymentInfo.clusterName config
  • dataCenter field (nullable String, @ApiOutOnly) — description: "Current deployment region", maps from gdc.deploymentInfo.region config

Both fields are gated by the ENABLE_DEPLOYMENT_INFO feature flag. The gooddata-api-client has already been regenerated to expose data_center and region as optional nullable fields on JsonApiOrganizationOutAttributes.

What was implemented in SDK

  • Added data_center: Optional[str] = None and region: Optional[str] = None fields to CatalogOrganizationAttributes
  • Updated CatalogOrganization.from_api() to extract both fields from the API response attributes (fields are @ApiOutOnly so no as_api_model() changes required)
  • Updated cassette fixture organization.yaml to include the new nullable fields in the recorded response
  • Added test assertions for the new fields in test_catalog_organization.py

Files modified

  • packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/entity_model/organization.py
  • packages/gooddata-sdk/tests/catalog/fixtures/organization/organization.yaml
  • packages/gooddata-sdk/tests/catalog/test_catalog_organization.py

JIRA: PENDING (Jira ticket will be created after review)
Risk: Low

…ization

Add 'data_center' and 'region' optional nullable string fields to
CatalogOrganizationAttributes and extract them in CatalogOrganization.from_api()
from the API response. Both fields are read-only (ApiOutOnly) and gated by the
ENABLE_DEPLOYMENT_INFO feature flag on the server side.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant