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

[Serve] Make public all of the type hints that are used by the serve.status() API #43394

Closed
hangg112233 opened this issue Feb 23, 2024 · 0 comments · Fixed by #48299
Closed
Assignees
Labels
enhancement Request for new feature and/or capability P1.5 Issues that will be fixed in a couple releases. It will be bumped once all P1s are cleared serve Ray Serve Related Issue

Comments

@hangg112233
Copy link

hangg112233 commented Feb 23, 2024

Description

Currently, serve.status() returns a ServeStatus class type which is a Public API. However, ServeStatus has children/descendants whose types are not part of the Public API, such as ProxyStatus and ApplicationStatus.

As a result, when a user wants to use the ServeStatus type hint, they must also import additional type hints from ray.serve._private.

It would be great if all of these types are part of the Public API, so that I do not have to import from ray.serve._private.common.

Use case

With this change, I would not have to import from the ray.serve._private module when using the ServeStatus type hint.

@hangg112233 hangg112233 added enhancement Request for new feature and/or capability triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Feb 23, 2024
@anyscalesam anyscalesam added the serve Ray Serve Related Issue label Feb 27, 2024
@GeneDer GeneDer added P1.5 Issues that will be fixed in a couple releases. It will be bumped once all P1s are cleared and removed triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Mar 5, 2024
@GeneDer GeneDer self-assigned this Mar 5, 2024
@zcin zcin assigned akyang-anyscale and unassigned GeneDer Oct 22, 2024
@zcin zcin closed this as completed in bb4efd5 Oct 30, 2024
Jay-ju pushed a commit to Jay-ju/ray that referenced this issue Nov 5, 2024
…-project#48299)

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->
This PR moves `ProxyStatus` out of the `_private` directory, allowing it
to be included in the API docs. This is the final attribute of
`ServeStatus` that needs to be included in the documentation.

## Related issue number

<!-- For example: "Closes ray-project#1234" -->
Closes ray-project#43394

---------

Signed-off-by: akyang-anyscale <[email protected]>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this issue Nov 14, 2024
…-project#48299)

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->
This PR moves `ProxyStatus` out of the `_private` directory, allowing it
to be included in the API docs. This is the final attribute of
`ServeStatus` that needs to be included in the documentation.

## Related issue number

<!-- For example: "Closes ray-project#1234" -->
Closes ray-project#43394

---------

Signed-off-by: akyang-anyscale <[email protected]>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this issue Nov 15, 2024
…-project#48299)

## Why are these changes needed?

<!-- Please give a short summary of the change and the problem this
solves. -->
This PR moves `ProxyStatus` out of the `_private` directory, allowing it
to be included in the API docs. This is the final attribute of
`ServeStatus` that needs to be included in the documentation.

## Related issue number

<!-- For example: "Closes ray-project#1234" -->
Closes ray-project#43394

---------

Signed-off-by: akyang-anyscale <[email protected]>
Signed-off-by: mohitjain2504 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for new feature and/or capability P1.5 Issues that will be fixed in a couple releases. It will be bumped once all P1s are cleared serve Ray Serve Related Issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants