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

Client overhaul to match server routes #73

Draft
wants to merge 6 commits into
base: launch-v1
Choose a base branch
from

Conversation

yixu34
Copy link
Member

@yixu34 yixu34 commented Feb 9, 2023

No description provided.

@yixu34 yixu34 self-assigned this Feb 9, 2023
launch/client.py Outdated
gpu_type=gpu_type,
default_callback_url=default_callback_url,
)
return json.loads(response.resopnse.data)
Copy link
Member Author

Choose a reason for hiding this comment

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

ah typo

@yixu34 yixu34 requested a review from a team February 9, 2023 02:37
query_params=query_params,
skip_deserialization=True,
)
return response
Copy link
Member Author

Choose a reason for hiding this comment

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

need to parse

Copy link
Contributor

@phil-scale phil-scale Feb 9, 2023

Choose a reason for hiding this comment

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

I skipped deserialization because there are sometimes inconsistencies between return types and the auto-generated response types. They're finicky sometimes and imo the extra typing we get isn't worth the hassle.

Copy link
Contributor

@phil-scale phil-scale left a comment

Choose a reason for hiding this comment

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

I think wrapping purely around the REST APIs does make more sense, but I'm wondering what would make the most sense for releasing to users. We made the migration to v1 REST API routes relatively painless for users by maintaining pretty much the same Python API, and I wonder if we would want to be a bit less aggressive and simply decorate the old Python API as @deprecated and unsupported in a few minor releases.

@yixu34
Copy link
Member Author

yixu34 commented Feb 10, 2023

I think wrapping purely around the REST APIs does make more sense, but I'm wondering what would make the most sense for releasing to users. We made the migration to v1 REST API routes relatively painless for users by maintaining pretty much the same Python API, and I wonder if we would want to be a bit less aggressive and simply decorate the old Python API as @deprecated and unsupported in a few minor releases.

Yup those are my thoughts too - mark the existing functions as @deprecated and give a fairly generous migration timeline over a few versions.

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