feat(gooddata-sdk): [AUTO] Add DeclarativeIpAllowlistPolicy schema to declarative org config#1607
feat(gooddata-sdk): [AUTO] Add DeclarativeIpAllowlistPolicy schema to declarative org config#1607yenkins-admin wants to merge 6 commits into
Conversation
… declarative org config
tychtjan
left a comment
There was a problem hiding this comment.
There are transcripts in the commit and also unit tests are failing. Please fix
✅ Review fixes appliedNote Addressed feedback from @tychtjan in Note 📼 Recording cassettes against staging — a follow-up commit will land shortly:
Invalidating cassettes for:
CI will be red until recording lands. That's expected. Reply to review summary
Actions✅ 2 fixed ✅ Fixed (2)
Claude output available in workflow artifacts. |
|
Warning 📼 Tests that did not record:
Last pytest output: Workflow run logs
|
Summary
Added CatalogDeclarativeIpAllowlistPolicy SDK wrapper for the new DeclarativeIpAllowlistPolicy schema and wired it into the organization service as get/put methods. The policies live on the DeclarativeOrganization object (no dedicated endpoint), so get uses get_organization_layout and put does a read-modify-write via set_organization_layout.
Impact: new_feature | Services:
gooddata-metadata-clientFiles changed
packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/layout/ip_allowlist_policy.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/organization/service.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/tests/catalog/test_catalog_organization.pyAgent decisions
Decisions (3)
No dedicated API endpoint — Use get_organization_layout / set_organization_layout (read-modify-write for puts)
Reuse existing identifier classes — Use CatalogDeclarativeUserGroupIdentifier and CatalogUserIdentifier from identifier.py
List field defaults — allowed_sources, user_groups, users all use attrs.field(factory=list)
Assumptions to verify (3)
Risks (2)
Layers touched (3)
packages/gooddata-sdk/src/gooddata_sdk/catalog/organization/layout/ip_allowlist_policy.pypackages/gooddata-sdk/src/gooddata_sdk/__init__.pypackages/gooddata-sdk/src/gooddata_sdk/catalog/organization/service.pypackages/gooddata-sdk/tests/catalog/test_catalog_organization.pySource commits (gdc-nas)
f36f74dMerge pull request #22737 from gooddata/dnik/md-allowlistOpenAPI diff
Workflow run
Generated by SDK OpenAPI Sync workflow