Skip to content

feat: enable configurable multipart upload settings using database - #3622

Merged
aglinxinyuan merged 5 commits into
apache:masterfrom
xuang7:xuan-enable-dataset-admin-setting
Aug 9, 2025
Merged

aglinxinyuan merged 5 commits into
apache:masterfrom
xuang7:xuan-enable-dataset-admin-setting

Conversation

@xuang7

@xuang7 xuang7 commented Aug 4, 2025 •

Copy link
Copy Markdown
Contributor

Purpose

This PR extends the configuration-CRUD framework in Admin Settings to include multipart-upload parameters. Admins can adjust global defaults for max file upload size, chunk size, and concurrent upload count directly from Admin → General Settings → Dataset. Changes take effect immediately without service restarts and persist in the site_settings table.

Changes

  • admin-settings.component.ts/html/scss: Added a Dataset card with three controls (max file size, chunk size, concurrency).
  • files-uploader.component.ts: Switched to reading the “single-file-upload-maximum-size-mb” setting from the database.
  • dataset-detail.component.ts/dataset.service.ts: Extended multipartUpload() signature to accept partSizeMB and concurrencyLimit and forward them to the backend.
  • default.conf: Defined upload default values.
  • gui.conf/gui-config.service.ts/gui-config.service.mock.ts/GuiConfig.scala/ConfigResource.scala: Migrated upload-setting storage to the new keys and removed the original byte-based fields.
  • app.module.ts: Imported NzInputNumberModule to enable number-input controls in the admin UI.

Demonstration

Settings Interface:
Uploading

@xuang7
xuang7 marked this pull request as ready for review August 4, 2025 23:18
@aglinxinyuan
aglinxinyuan self-requested a review August 9, 2025 00:31

@aglinxinyuan aglinxinyuan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aglinxinyuan
aglinxinyuan enabled auto-merge (squash) August 9, 2025 02:42
@aglinxinyuan
aglinxinyuan merged commit f4727a6 into apache:master Aug 9, 2025
SarahAsad23 pushed a commit to madisonmlin/texera that referenced this pull request May 20, 2026
…pache#3622)

### **Purpose**
This PR extends the [configuration-CRUD
framework](apache#3528) in Admin
Settings to include multipart-upload parameters. Admins can adjust
global defaults for max file upload size, chunk size, and concurrent
upload count directly from Admin → General Settings → Dataset. Changes
take effect immediately without service restarts and persist in the
_site_settings_ table.

### **Changes**
- admin-settings.component.ts/html/scss: Added a Dataset card with three
controls (max file size, chunk size, concurrency).
- files-uploader.component.ts: Switched to reading the
“single-file-upload-maximum-size-mb” setting from the database.
- dataset-detail.component.ts/dataset.service.ts: Extended
multipartUpload() signature to accept partSizeMB and concurrencyLimit
and forward them to the backend.
- default.conf: Defined upload default values.
-
gui.conf/gui-config.service.ts/gui-config.service.mock.ts/GuiConfig.scala/ConfigResource.scala:
Migrated upload-setting storage to the new keys and removed the original
byte-based fields.
- app.module.ts: Imported NzInputNumberModule to enable number-input
controls in the admin UI.

### **Demonstration**
Settings Interface:
<img width="788" height="361" alt="Uploading"
src="https://github.com/user-attachments/assets/81fbaff7-dad0-4132-9454-2b07854dc280"
/>

---------

Co-authored-by: Xinyuan Lin <[email protected]>
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
…pache#3622)

### **Purpose**
This PR extends the [configuration-CRUD
framework](apache#3528) in Admin
Settings to include multipart-upload parameters. Admins can adjust
global defaults for max file upload size, chunk size, and concurrent
upload count directly from Admin → General Settings → Dataset. Changes
take effect immediately without service restarts and persist in the
_site_settings_ table.

### **Changes**
- admin-settings.component.ts/html/scss: Added a Dataset card with three
controls (max file size, chunk size, concurrency).
- files-uploader.component.ts: Switched to reading the
“single-file-upload-maximum-size-mb” setting from the database.
- dataset-detail.component.ts/dataset.service.ts: Extended
multipartUpload() signature to accept partSizeMB and concurrencyLimit
and forward them to the backend.
- default.conf: Defined upload default values.
-
gui.conf/gui-config.service.ts/gui-config.service.mock.ts/GuiConfig.scala/ConfigResource.scala:
Migrated upload-setting storage to the new keys and removed the original
byte-based fields.
- app.module.ts: Imported NzInputNumberModule to enable number-input
controls in the admin UI.

### **Demonstration**
Settings Interface:
<img width="788" height="361" alt="Uploading"
src="https://github.com/user-attachments/assets/81fbaff7-dad0-4132-9454-2b07854dc280"
/>

---------

Co-authored-by: Xinyuan Lin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants