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

Skeleton dev3 #289

Merged
merged 6 commits into from
Dec 17, 2024
Merged

Skeleton dev3 #289

merged 6 commits into from
Dec 17, 2024

Conversation

kebwi
Copy link
Collaborator

@kebwi kebwi commented Dec 16, 2024

No description provided.

Copy link

codecov bot commented Dec 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 20 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
caveclient/skeletonservice.py 0.00% 20 Missing ⚠️
Files with missing lines Coverage Δ
caveclient/endpoints.py 100.00% <ø> (ø)
caveclient/skeletonservice.py 18.61% <0.00%> (-0.59%) ⬇️

@kebwi kebwi requested a review from fcollman December 16, 2024 19:40
@@ -295,6 +296,7 @@ def _build_bulk_async_endpoint(
root_ids: List,
datastack_name: str,
skeleton_version: int,
post: bool = False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can't you just make it smart and use post if the server is above the version, there is no reason to not use post and why have the user have to specify a thing?

Copy link
Collaborator

Choose a reason for hiding this comment

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

i'm sorry in the review it was hard to see what this was associated with.. i see now its an internal function

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To clarify your second comment, I was certainly endeavoring to accomplish precisely that behavior, honoring the existing GET method if the server is old and doesn't offer a POST endpoint, but using POST if the server is the latest version with a snazzy POST endpoint. It's a little tedious to test it because I have to switch ltv5 back and forth between old and new versions on PrinceAllenCave and wait for them to fully deploy via CAVEdeployment to confirm the correct behavior in the two scenarios, but I can take a few minutes to do that to be sure it's working as intended.

But to be clear, that was certainly my intent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I suppose a properly mocked unit test can sort of test this behavior -- but I find integration tests to feel more certain. A unit test against both versions is a good idea too though.

@fcollman fcollman merged commit 037fb81 into master Dec 17, 2024
13 of 14 checks passed
@kebwi kebwi deleted the skeleton_dev3 branch December 17, 2024 19:09
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.

2 participants