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

Hide agent select in Service launcher #2837

Closed
yomybaby opened this issue Nov 11, 2024 · 0 comments · Fixed by #2870
Closed

Hide agent select in Service launcher #2837

yomybaby opened this issue Nov 11, 2024 · 0 comments · Fixed by #2870
Assignees
Labels
field:UI / UX type:fix Fix features that are not working
Milestone

Comments

@yomybaby
Copy link
Member

PR #2599 introduces Agent select, but we need to hide the agent select in the Service launcher until the Service launcher supports it.

@lizable lizable added type:fix Fix features that are not working field:UI / UX labels Nov 21, 2024
@lizable lizable added this to the 24.09 milestone Nov 21, 2024
yomybaby pushed a commit that referenced this issue Nov 25, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
field:UI / UX type:fix Fix features that are not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants