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

fix: display only active endpoints in EndpointSelect #2718

Merged
merged 1 commit into from
Sep 23, 2024

Commits on Sep 23, 2024

  1. fix: display only active endpoints in EndpointSelect (#2718)

    **Changes:**
    
    This PR enhances the `EndpointSelect` component by adding support for filtering endpoints based on their lifecycle stage. The main changes include:
    
    1. Importing the `useSuspendedBackendaiClient` hook.
    2. Adding a `filter` parameter to the `EndpointSelectQuery`.
    3. Implementing a conditional filter based on the client's support for the 'endpoint-lifecycle-stage-filter' feature.
    
    **Rationale:**
    
    The addition of the lifecycle stage filter allows for more precise endpoint selection, showing only endpoints in the "created" stage when supported by the client. This improves the user experience by presenting a more relevant list of endpoints.
    
    **Effects:**
    
    - Users will see a filtered list of endpoints in the "created" stage when using a client that supports this feature.
    - Developers can now leverage the new filter parameter in the `EndpointSelectQuery` for more flexible endpoint querying.
    yomybaby committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    53ce7b4 View commit details
    Browse the repository at this point in the history