Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fixed the maximum desired number of sessions value in the Model …
…Launcher modal to follow `max_session_count_per_model_session` (#2726) ### This PR resolves [#2723 Issue](#2723) [teams](https://teams.microsoft.com/l/message/19:[email protected]/1727418901786?tenantId=13c6a44d-9b52-4b9e-aa34-0513ee7131f2&groupId=74ae2c4d-ec4d-4fdf-b2c2-f5041d1e8631&parentMessageId=1727418901786&teamName=devops&channelName=Backend.AI%20Talks&createdTime=1727418901786) This PR introduces a new query to fetch the user's resource policy and applies the `max_session_count_per_model_session` limit to the service launcher page. The changes include: - Added two new queries: `ServiceLauncherPageContent_UserInfoQuery` and `ServiceLauncherPageContent_UserResourcePolicyQuery` - Utilized `useLazyLoadQuery` to fetch user information and resource policy - Applied the `max_session_count_per_model_session` from the user's resource policy to the session count input field These changes allow for dynamic session count limits based on the user's resource policy, improving the flexibility and customization of the service launcher. **Checklist:** - [ ] Documentation update for new resource policy feature - [ ] Minimum required manager version: 23.09.6 - [ ] Test cases to verify the application of custom max session count limits
- Loading branch information