Skip to content

Conversation

@yenkins-admin
Copy link

Add convenience properties to expose createdAt and modifiedAt timestamp fields in CatalogMetric entity model.
https://gooddata-jira-sandbox.atlassian.net/browse/DX-332
P005 - https://github.com/gooddata/gdc-nas/actions/runs/21868699246

The gdc-nas backend added proper OpenAPI schema definitions for createdAt and modifiedAt timestamp fields across multiple metadata model entities in STL-2296. The OpenAPI client has been regenerated with proper datetime types. This change adds convenience properties to the CatalogMetric entity model to expose these timestamp fields with proper typing, improving SDK usability by providing direct property access to timestamp metadata.

Changes

  • Added created_at property returning Optional[datetime] to CatalogMetric
  • Added modified_at property returning Optional[datetime] to CatalogMetric
  • Added datetime import to metric.py

Testing

The properties access the underlying json_api_attributes which are already properly typed as datetime from the regenerated API client.

Related to P005 - OpenAPI schema additions for timestamp fields in gdc-nas.

Add convenience properties to expose createdAt and modifiedAt timestamp fields
in the CatalogMetric entity model. These fields are already properly typed as
datetime in the underlying API client following the OpenAPI spec updates that
added schema annotations to timestamp fields.

This change improves SDK usability by providing direct property access to
timestamp metadata that was previously only accessible through json_api_attributes.

Related to P005 - OpenAPI schema additions for timestamp fields

Co-Authored-By: Claude Sonnet 4.5 <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