Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add organization membership deactivate and reactivate API methods #264

Conversation

mattgd
Copy link
Contributor

@mattgd mattgd commented May 10, 2024

Description

Add organization membership deactivate and reactivate API methods.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[x] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

@mattgd mattgd self-assigned this May 10, 2024
Copy link

linear bot commented May 10, 2024

@mattgd mattgd marked this pull request as ready for review May 15, 2024 18:35
@mattgd mattgd requested a review from a team as a code owner May 15, 2024 18:35
@@ -300,6 +307,7 @@ def list_organization_memberships(
Kwargs:
user_id (str): Filter Organization Memberships by user. (Optional)
organization_id (str): Filter Organization Memberships by organization. (Optional)
statuses (list): Filter Organization Memberships by status. (Optional)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we generally use this naming pattern for list params?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

@PavanKulkarni PavanKulkarni May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no strong opinion, but statuses seems a bit weird. Maybe status_list ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Down to change it. That being said statuses is how it's defined in the API/other SDKs. Maybe it's better to be consistent, thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be consistent and stick with statuses.

@mattgd mattgd merged commit 5c2b933 into main May 17, 2024
4 checks passed
@mattgd mattgd deleted the feature/dsync-1391-add-deactivate-organization-membership-method-to-python-sdk branch May 17, 2024 13:59
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.

None yet

3 participants