You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When entering the session launcher, a preset is selected by default. However, the resource values displayed on the slider do not match the values defined in the selected preset. This inconsistency can lead to confusion for users expecting the preset values to be automatically reflected in the slider settings.
Steps to Reproduce
This bug reproduces occasionally.
Open the session launcher.
Observe that a preset is selected by default.
Check the slider values for resources.
Notice that the slider values do not match the preset's defined resource values.
…2970)
Resolves#2958
**Changes:**
To fix the inconsistency bug, refactored resource allocation preset handling in session launcher to improve reliability and maintainability:
1. Typo: renamed initial allocation preset from 'auto-preset' to 'auto-select'
2. Wrapped resource field update functions with useEventNotStable to prevent invoke useEffect unnecessary.
3. Consolidated preset selection logic into a single useEffect hook that handles:
- Initial form setup when resourceSlots are loaded
- Automatic preset selection based on available resources
- Validation of accelerator type
4. Added separate useEffect for handling minimum-required preset updates when image changes
These changes make the resource allocation behavior more predictable and easier to maintain while fixing potential race conditions in the preset selection logic.
### Steps to Reproduce
I can reproduce with the dogbowl backend.
1. Navigate to the session list in the Backend.AI WebUI.
2. Refresh the browser.
3. Click the "Start Session" button.
4. Proceed to the second step of the session creation process.
5. Check the automatically selected preset.
6. Verify if the resources allocated match the selected preset.
When entering the session launcher, a preset is selected by default. However, the resource values displayed on the slider do not match the values defined in the selected preset. This inconsistency can lead to confusion for users expecting the preset values to be automatically reflected in the slider settings.
Steps to Reproduce
This bug reproduces occasionally.
Ref
The text was updated successfully, but these errors were encountered: