Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

fix: rag service#268

Merged
CocoRoF merged 8 commits intodeployfrom
main
Oct 24, 2025
Merged

fix: rag service#268
CocoRoF merged 8 commits intodeployfrom
main

Conversation

@CocoRoF
Copy link
Collaborator

@CocoRoF CocoRoF commented Oct 24, 2025

This pull request introduces major improvements for document upload and session management, focusing on supporting SSE-based uploads, robust session handling, and enhanced modal management for document uploads. The changes add new APIs for SSE session lifecycle, refactor the modal context to support multiple concurrent upload sessions, and improve error handling and state persistence.

SSE Upload & Session Management

  • Added uploadDocumentSSE to retrievalAPI.js for streaming document uploads using SSE, including session ID generation, progress callbacks, and folder metadata support. Also added session management APIs (getSessionsInfo, getSessionStatus, cancelSession, deleteSession, cleanupExpiredSessions). [1] [2]
  • Introduced generateSessionId utility for unique session tracking, now imported where needed. [1] [2]

Legacy Upload Improvements

  • Refactored legacy uploadDocument to accept an external AbortController, improved timeout handling, and ensured explicit abort on errors or timeouts. [1] [2] [3] [4]

Document Modal Session Refactor

  • Overhauled DocumentFileModalContext to support multiple concurrent modal upload sessions, including minimization/restoration, focus management, and session persistence in sessionStorage. The context now manages a map of sessions with individual states.
  • Added client-side restoration and persistence of modal sessions, ensuring session continuity across page reloads.

API Usage Updates

  • Updated imports to use new session management and SSE upload utilities where appropriate.

These changes collectively enable robust, multi-session document upload workflows with real-time progress, error handling, and improved user experience.

dlekdns08 and others added 8 commits October 23, 2025 17:25
…on in GlobalDocumentFileModal and add RepositoryUploadTab component
feat: Implement repository upload functionality with GitLab integrati…
- Added session ID generation for file uploads in Documents component.
- Updated modal handling to support callbacks for individual sessions.
- Created DocumentFileModalInstance component to manage upload progress and session states.
- Implemented session status polling and error handling for uploads.
- Enhanced user feedback with progress indicators and error messages during uploads.
@CocoRoF CocoRoF merged commit b85c32f into deploy Oct 24, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants