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

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Sep 23, 2024

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.

Copy link

graphite-app bot commented Sep 23, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the size:S 10~30 LoC label Sep 23, 2024
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @yomybaby and the rest of your teammates on Graphite Graphite

@yomybaby yomybaby marked this pull request as ready for review September 23, 2024 06:54
Copy link

github-actions bot commented Sep 23, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.42% (-0% 🔻)
337/6220
🔴 Branches
4.99% (-0% 🔻)
214/4290
🔴 Functions 3.08% 63/2045
🔴 Lines
5.32% (-0% 🔻)
323/6075
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴
... / EndpointSelect.tsx
0%
0% (-100% 🔻)
0% 0%

Test suite run success

90 tests passing in 11 suites.

Report generated by 🧪jest coverage report action from 53ce7b4

Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link

graphite-app bot commented Sep 23, 2024

Merge activity

**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.
@agatha197 agatha197 force-pushed the fix/display-only-active-endpoints-for-llmchat branch from 26d226b to 53ce7b4 Compare September 23, 2024 06:58
@graphite-app graphite-app bot merged commit 53ce7b4 into main Sep 23, 2024
7 checks passed
@graphite-app graphite-app bot deleted the fix/display-only-active-endpoints-for-llmchat branch September 23, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants