Skip to content

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

Closed
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P016-add-deployment-info-to-organization
Closed

feat(gooddata-sdk): [AUTO] add deployment info fields to CatalogOrganizationAttributes#1341
yenkins-admin wants to merge 2 commits intomasterfrom
feature/auto-P016-add-deployment-info-to-organization

Conversation

@yenkins-admin
Copy link
Contributor

Expose new read-only deployment info fields (region, data_center) from the Organization API response in the SDK wrapper's CatalogOrganizationAttributes.

P016 | https://github.com/gooddata/gdc-nas/actions/runs/22176850727

What changed in gdc-nas

Commit f0f3783 adds two new output-only fields region and dataCenter to the Organization model in metadata-api. These fields are conditionally populated by OrganizationService when the ENABLE_DEPLOYMENT_INFO feature flag is enabled. The OpenAPI spec exposes:

  • region: nullable string — current deployment cluster name
  • dataCenter: nullable string — current deployment region

The gooddata-api-client was already regenerated and contains data_center and region as optional fields in JsonApiOrganizationOutAttributes.

What was implemented in SDK

  • Added region: Optional[str] = None and data_center: Optional[str] = None fields to CatalogOrganizationAttributes dataclass
  • Updated CatalogOrganization.from_api() to read attributes.region and attributes.data_center from the API response
  • Updated VCR cassette to include region and dataCenter in mocked API response body
  • Added test assertions to verify correct deserialization of both new fields

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

Warning: This PR adds/modifies test cassettes. These cassettes should be tested locally
before merging to ensure they match the actual API responses.

JIRA: DX-TBD (pending Jira Sandbox availability)
Risk: Low

Auto Implementor and others added 2 commits February 19, 2026 10:20
…izationAttributes

Add 'region' and 'data_center' optional fields to CatalogOrganizationAttributes
and update CatalogOrganization.from_api() to read these fields from the API
response. The fields map to the new @ApiOutOnly 'region' and 'dataCenter' fields
in the Organization model exposed by the metadata-api when ENABLE_DEPLOYMENT_INFO
feature flag is enabled.

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.

2 participants

Comments