Repository navigation
feat(generated): Changes to sso - #778
Conversation
[Medium impact] The PR reaches SSO list callers and package-level imports across several SDK areas. Restore the removed public type exports before merging. FindingsFix with agent prompt### Issue 1
src/workos/pipes/models/__init__.py:94
Removing the `*Literal` exports breaks existing imports. For example, `from workos.pipes.models import PipesOwnershipLiteral` now raises `ImportError`, even though the alias still exists in its source module. Applications using that import can fail to start after upgrading. This also affects `workos.pipes` and `workos.types.pipes`, which copy the model exports.
Restore these exports and the matching removals in the other model namespaces.
### Issue 2
tests/test_common_models_round_trip.py:606
This removes four round-trip and minimal-payload tests for public models that remain in the SDK. No remaining test references `OrganizationSelectionRequiredErrorBodyWithOrganizations`, so future changes to its nested organization list can break without these checks catching it. Keep these tests; the new SSO filter tests do not replace their coverage.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds
Reviews (1) · Last reviewed commit: "chore(generated): add release notes frag..." · Reviewed by Greptile |
| @@ -92,7 +92,6 @@ | |||
| OrganizationConnectedAccount as OrganizationConnectedAccount, | |||
| ) | |||
| from .pipes_ownership import PipesOwnership as PipesOwnership | |||
There was a problem hiding this comment.
Removing the *Literal exports breaks existing imports. For example, from workos.pipes.models import PipesOwnershipLiteral now raises ImportError, even though the alias still exists in its source module. Applications using that import can fail to start after upgrading. This also affects workos.pipes and workos.types.pipes, which copy the model exports.
Restore these exports and the matching removals in the other model namespaces.
Knowledge Base Used: Pagination and shared types
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/workos/pipes/models/__init__.py
Line: 94
Comment:
**Existing type imports fail**
Removing the `*Literal` exports breaks existing imports. For example, `from workos.pipes.models import PipesOwnershipLiteral` now raises `ImportError`, even though the alias still exists in its source module. Applications using that import can fail to start after upgrading. This also affects `workos.pipes` and `workos.types.pipes`, which copy the model exports.
Restore these exports and the matching removals in the other model namespaces.
**Knowledge Base Used:** [Pagination and shared types](https://app.greptile.com/-/switch-tenant?tenant=workos&next=%2Fcustom-context%2Fknowledge-base%2Fworkos%2Fworkos-python%2F-%2Fdocs%2Fpagination-and-shared-types.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| @@ -607,67 +605,6 @@ def test_error_body_minimal_payload(self): | |||
| serialized = instance.to_dict() | |||
| assert serialized["message"] == data["message"] | |||
There was a problem hiding this comment.
Existing model tests disappear
This removes four round-trip and minimal-payload tests for public models that remain in the SDK. No remaining test references OrganizationSelectionRequiredErrorBodyWithOrganizations, so future changes to its nested organization list can break without these checks catching it. Keep these tests; the new SSO filter tests do not replace their coverage.
Prompt To Fix With AI
This is a comment left during a code review.
Path: tests/test_common_models_round_trip.py
Line: 606
Comment:
**Existing model tests disappear**
This removes four round-trip and minimal-payload tests for public models that remain in the SDK. No remaining test references `OrganizationSelectionRequiredErrorBodyWithOrganizations`, so future changes to its nested organization list can break without these checks catching it. Keep these tests; the new SSO filter tests do not replace their coverage.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Summary
feat(sso): Update SSO API surface
ConnectionsState.Connections.list.state.Triggered by workos/openapi-spec@ae24da5
BEGIN_COMMIT_OVERRIDE
feat(sso): Update SSO API surface (#778)
END_COMMIT_OVERRIDE