-
Notifications
You must be signed in to change notification settings - Fork 74
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
add: option to show/hide agent select option by launcher #2870
add: option to show/hide agent select option by launcher #2870
Conversation
Your org requires the Graphite merge queue for merging into mainAdd 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. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 5.29% | 395/7468 |
🔴 | Branches | 4.58% (-0% 🔻) |
237/5173 |
🔴 | Functions | 3.16% | 78/2467 |
🔴 | Lines | 5.2% | 380/7301 |
Test suite run success
124 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from 3f18c86
916a5df
to
0e5d3ae
Compare
0e5d3ae
to
c897bb1
Compare
c897bb1
to
b7511dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚢
Merge activity
|
This PR resolves [#2837](#2837) **Changes:** Makes agent selection in resource allocation form configurable via a new `enableAgentSelect` prop, defaulting to false. The agent selection field will only display when both `enableAgentSelect` is true and `baiClient._config.hideAgents` is false. **Implementation:** - Added `enableAgentSelect` prop to ResourceAllocationFormItems component - Set `enableAgentSelect` to true in SessionLauncherPage to maintain existing behavior - Agent selection field visibility now requires both configuration flags to be properly set **Testing Steps:** > Prerequisites: > - Create model type vfolder > - Create model-definition.yaml file and upload it to the vfolder you just created in step 1, according to the link [here](https://webui.docs.backend.ai/en/latest/model_serving/model_serving.html#guide-to-steps-for-using-model-service) 1. Set `hideAgents` in config.general to false. 2. Go to Session launcher page and check AgentSelect section is visible. 3. Check whether you can select agent and create a session which is located to the agent you just selected. 4. Go to Service launcher page by clicking `Start Service` button in Serving page and check AgentSelect section is invisible. 5. Check whether service is successfully created **Checklist:** - [ ] Mention to the original issue - [ ] Documentation - [ ] Minimum required manager version - [ ] Specific setting for review - [ ] Minimum requirements to check during review - [x] Test case(s) to demonstrate the difference of before/after
b7511dc
to
3f18c86
Compare
This PR resolves #2837
Changes:
Makes agent selection in resource allocation form configurable via a new
enableAgentSelect
prop, defaulting to false. The agent selection field will only display when bothenableAgentSelect
is true andbaiClient._config.hideAgents
is false.Implementation:
enableAgentSelect
prop to ResourceAllocationFormItems componentenableAgentSelect
to true in SessionLauncherPage to maintain existing behaviorTesting Steps:
hideAgents
in config.general to false.Start Service
button in Serving page and check AgentSelect section is invisible.Checklist: