-
Couldn't load subscription status.
- Fork 78
feat(FR-1617): add user setting for maximum concurrent file upload limit #4460
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
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.66% | 532/11428 |
| 🔴 | Branches | 3.77% | 302/8012 |
| 🔴 | Functions | 2.88% | 102/3544 |
| 🔴 | Lines | 4.6% | 514/11169 |
Test suite run success
121 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from fb6a51c
35d6723 to
353701d
Compare
a73aed7 to
f2deff6
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
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
f2deff6 to
c08b298
Compare
353701d to
ebb34a8
Compare
ebb34a8 to
f887707
Compare
c08b298 to
d79efea
Compare
f887707 to
371c676
Compare
371c676 to
6012c4a
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.
Pull Request Overview
This PR implements a user-configurable setting to control the maximum number of concurrent file uploads in the file explorer. Users can now adjust upload concurrency (2-5 concurrent uploads) based on their network conditions and system capabilities. The default value is 2 concurrent uploads.
- Added
max_concurrent_uploadsfield to UserSettings interface and created UI control in UserSettingsPage - Modified FileUploadManager to use PQueue with user-configured concurrency and improved error handling
- Added translations for the new setting across all supported languages
- Applied minor UI improvements to notification components and removed unused import
Reviewed Changes
Copilot reviewed 27 out of 27 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| react/src/hooks/useBAISetting.tsx | Added max_concurrent_uploads field to UserSettings interface |
| react/src/pages/UserSettingsPage.tsx | Created select dropdown UI control for max concurrent uploads setting (values: 2-5) |
| react/src/components/FileUploadManager.tsx | Updated to use user-configured concurrency via PQueue and refactored error handling |
| react/src/components/FolderExplorerOpener.tsx | Removed unused BAIUnmountAfterClose wrapper component |
| react/src/components/BAISessionNotificationItem.tsx | Added max height and overflow styles to notification extra description card |
| react/src/components/BAIGeneralNotificationItem.tsx | Added max height and overflow styles to notification extra description card |
| resources/i18n/*.json | Added translations for MaxConcurrentUploads and DescMaxConcurrentUploads across all language files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Merge activity
|
…mit (#4460) Resolves #4459 ([FR-1617](https://lablup.atlassian.net/browse/FR-1617)) ## Summary Implement a user-configurable setting to control the maximum number of concurrent file uploads in the file explorer. This feature allows users to adjust upload performance based on their network conditions and system capabilities. ## Changes - Added `max_concurrent_uploads` field to UserSettings interface - Created UI control in UserSettingsPage with select dropdown (values: 2-5) - Modified FileUploadManager to use PQueue with user-configured concurrency - Added translations for the new setting in all language files ## Implementation Details - Setting stored in localStorage with key `backendaiwebui.settings.user.max_concurrent_uploads` - Default value: 2 concurrent uploads - Range: 2-5 concurrent uploads - Setting takes effect immediately for new upload operations ## Testing - [ ] Verify setting persists across sessions - [ ] Confirm concurrent upload limit is respected - [ ] Check all translations are displayed correctly - [ ] Test with various network conditions [FR-1617]: https://lablup.atlassian.net/browse/FR-1617?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
6012c4a to
fb6a51c
Compare

Resolves #4459 (FR-1617)
Summary
Implement a user-configurable setting to control the maximum number of concurrent file uploads in the file explorer. This feature allows users to adjust upload performance based on their network conditions and system capabilities.
Changes
max_concurrent_uploadsfield to UserSettings interfaceImplementation Details
backendaiwebui.settings.user.max_concurrent_uploadsTesting