tanishqgandhi1908 opened a new pull request, #8078:
URL: https://github.com/apache/texera/pull/8078

   ### What changes were proposed in this PR?
   
   Models can now be uploaded to and versioned from the UI. PR 3 of the 
ML-model frontend series, stacked on #8072.
   
   **What you can do:** upload files to a model, watch them upload, revert or 
delete staged changes, and commit them as a version. A new Settings tab edits 
the model's name, description, framework and format. Admin → Settings gains a 
Model card for the model upload limits.
   
   **1. Refactor — no behavior change.** The dataset detail page owned the 
whole upload machinery. This pulls it out into resource-agnostic pieces, 
addressed by a `FileResourceEndpoint` descriptor (base path, name query param, 
and the four
   `site_settings` keys):
   
   - `service/user/file-resource/multipart-upload.service.ts` — the ~280-line 
multipart engine, out of `DatasetService`
   - `service/user/file-resource/staged-file.service.ts` — diff, revert, delete
   - `component/user/version-uploader/` — the whole "Create New Version" panel  
 (file picker, progress panels, staged list, version box)
   - `component/user/staged-objects-list/` — moved out of `user-dataset/`
   
   **2. Feature — models.** `MODEL_FILE_RESOURCE_ENDPOINT`, `ModelService` 
version/framework/format calls, the model page's upload panel and Settings tab, 
and the Admin Model upload card.
   
   **Deliberately not here:** Access & visibility (public/private, 
downloadable) lands in PR 4 — both can be set when creating a model, just not 
changed afterwards yet. Delete stays on the Models list card. View and like 
counts stay static `0` until models reach the hub in PR 5.
   
   
   <img width="1202" height="703" alt="Screenshot 2026-08-28 at 1 49 22 PM" 
src="https://github.com/user-attachments/assets/ea601483-b68b-4d1e-ab49-5f3246e84211";
 />
   <img width="1138" height="748" alt="Screenshot 2026-08-28 at 1 49 31 PM" 
src="https://github.com/user-attachments/assets/24240b49-acc3-4da9-9b3d-abfa3519cb04";
 />
   <img width="1070" height="446" alt="Screenshot 2026-08-28 at 1 55 54 PM" 
src="https://github.com/user-attachments/assets/22c4cb19-1dda-4cff-98f6-72d35a57d585";
 />
   
   ### Any related issues, documentation, discussions?
   
   Closes #6499.
   
   Stacked on #8072 (model detail page)
   
   ### How was this PR tested?
   
   520 tests pass across the affected specs, including 67 in the new 
`version-uploader.component.spec.ts`.
   
   Every dataset upload test still exists — they moved to the component that 
now owns that code rather than being deleted. Two `ngOnInit` assertions 
changed: the dataset page no longer fetches upload tuning itself, so it no 
longer calls
   `getPublicSetting` on load; the panel does, when it renders. No dataset 
behavior changed.
   
   New coverage: the model endpoint and its own settings keys, version 
creation, framework/format editing with rollback on failure, and the Admin 
upload cards run against both resource families so one cannot write the other's 
keys.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 5)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to