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

invite_to_organization: fix InvitationOrganizationJoinEmail ctor call #637

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

ryan-williams
Copy link
Member

[sc-54346]

@ryan-williams
Copy link
Member Author

Looks like the autobuild GHA has been failing off and on lately, including on main currently. Anyone have context?

Copy link
Collaborator

@sgillies sgillies left a comment

Choose a reason for hiding this comment

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

Looks correct to me @ryan-williams ! Can you add a line about actions to the docstring and a simple test? I don't think we need much more than a new test_organization.py and a test that calls invite_to_organization(), mocking tiledb.cloud.client, so that we can be sure that we've got it wired properly and that it stays that way.

For the docstring, it's okay to be vague, like we are for the other parameters. Eventually it could be nice to include a enumeration of acceptable values (here
https://github.com/TileDB-Inc/TileDB-Cloud-API-Spec/blob/3783c171eb780c47c7c5890a3616870c2bb9e061/openapi-v1.yaml#L330, I think), but we don't need to figure out the best way to do that now.

I'm not sure about the wheel upload test... I asked a question about it in #629, which introduced the test.

@thetorpedodog
Copy link
Contributor

Looks like the autobuild GHA has been failing off and on lately, including on main currently. Anyone have context?

This looks like we’re trying to write things to the same backend path in multiple tests and it’s stepping on each other. We (the main maintainers of this package, not necessarily you) should make sure we set up per-run unique paths for our tests.

# This call used to raise a ValueError.
invites.invite_to_organization(
"test_org", recipients=["[email protected]"], role="read_only"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If invite_to_organization() uses the low-level API constructor improperly, this test will fail. That's the only thing this test checks. Wider (other module functions) and deeper tests are a different story.

@sgillies sgillies merged commit 77b3d6d into main Sep 10, 2024
18 checks passed
@sgillies sgillies deleted the rw/sc-54356 branch September 10, 2024 14:12
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.

3 participants