Commit Graph

284 Commits

Author SHA1 Message Date
Christian Krakau-Louis 9df63af4d0 Merge pull request #107 from christianlouis/copilot/fix-missing-model-imports
Fix test database initialization and dependency injection
2026-02-07 19:51:06 +01:00
Christian Krakau-Louis 348e7e048f Merge pull request #70 from christianlouis/dependabot/pip/pip-licenses-5.5.1
chore(deps-dev): bump pip-licenses from 5.0.0 to 5.5.1
2026-02-07 19:46:11 +01:00
Christian Krakau-Louis 547b9513a5 Merge pull request #108 from christianlouis/copilot/fix-s3-upload-error
Fix upload failures: standardize task signatures to accept file_id parameter
2026-02-07 19:45:42 +01:00
Christian Krakau-Louis d1785c2d77 Merge pull request #109 from christianlouis/copilot/fix-single-file-deletion-error
Fix single file deletion by parsing JSON response before page reload
2026-02-07 19:45:04 +01:00
copilot-swe-agent[bot] dabd9a944c Final review fixes: consistent parameter order and improved test documentation
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:59:42 +00:00
copilot-swe-agent[bot] e20c88dbc7 Address code review feedback: improve variable naming and parameter order
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:58:08 +00:00
copilot-swe-agent[bot] 3d2d8cca1a Add comprehensive regression tests for all upload tasks
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:56:47 +00:00
copilot-swe-agent[bot] 22a14431b3 Standardize upload task signatures to accept file_id parameter
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:55:30 +00:00
copilot-swe-agent[bot] 4c8ec85bfa Apply Black formatting to test file
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:54:29 +00:00
copilot-swe-agent[bot] 388bde2ff0 Fix SQLAlchemy model registration and database session injection in tests
- Import all models (DocumentMetadata, FileRecord, ProcessingLog) in conftest.py to register them with SQLAlchemy Base
- Override all three get_db functions used across the app (app.database, app.api.common, app.views.base) to ensure tests use the test database
- Fixes 21 of 24 failing tests (from "no such table" errors to passing)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:54:05 +00:00
copilot-swe-agent[bot] 77678f6368 Fix single file deletion frontend to parse JSON response properly
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:53:12 +00:00
copilot-swe-agent[bot] 082d447e72 Initial plan 2026-02-07 17:49:37 +00:00
copilot-swe-agent[bot] 9baf958ed5 Initial plan 2026-02-07 17:49:24 +00:00
copilot-swe-agent[bot] f3ce483bd8 Initial plan 2026-02-07 17:47:33 +00:00
Christian Krakau-Louis 6592f57905 Merge pull request #105 from christianlouis/copilot/fix-original-file-name-upload
Preserve original filenames for UI uploads while maintaining UUID-based storage
2026-02-07 18:42:21 +01:00
copilot-swe-agent[bot] 57937af603 Add fix summary documentation
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:39:44 +00:00
copilot-swe-agent[bot] 7d24b7c668 Apply code formatting and fix linting issues
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:37:50 +00:00
copilot-swe-agent[bot] 2db58afedf Add original_filename parameter to preserve user's filename
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:36:36 +00:00
copilot-swe-agent[bot] 8d42ef1b45 Initial plan 2026-02-07 17:32:28 +00:00
Christian Krakau-Louis 7e1fae2200 Merge pull request #102 from christianlouis/copilot/fix-onedrive-upload-error
Fix upload_to_onedrive and upload_to_s3 signature mismatch
2026-02-07 18:31:58 +01:00
copilot-swe-agent[bot] 3f1006b035 Code review feedback: improve readability of S3 upload call
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:28:04 +00:00
copilot-swe-agent[bot] c0e049ae96 Fix OneDrive and S3 upload signature - add file_id parameter
- Updated upload_to_onedrive to accept file_id parameter with bind=True
- Updated upload_to_s3 to accept file_id parameter with bind=True
- Added proper logging with task_id and file_id tracking
- Added comprehensive unit tests for both functions
- All tests passing (8/8)

Fixes #99 and #100

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 17:25:23 +00:00
copilot-swe-agent[bot] aa57c41556 Initial plan 2026-02-07 17:19:58 +00:00
Christian Krakau-Louis c9af116ae9 Merge pull request #90 from christianlouis/copilot/fix-worker-file-processing
Fix DetachedInstanceError in process_document task
2026-02-07 18:09:45 +01:00
Christian Krakau-Louis d1a75b96e5 Merge pull request #88 from christianlouis/copilot/fix-files-view-errors
Fix /files view status filtering and add bulk operations
2026-02-07 17:54:21 +01:00
copilot-swe-agent[bot] 850afd26bd Fix DetachedInstanceError in process_document task by storing file_id before session closes
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:59:39 +00:00
copilot-swe-agent[bot] 34ba8a4548 Improve error messages for bulk operations
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:55:44 +00:00
copilot-swe-agent[bot] 7763ffe6ab Initial plan 2026-02-07 15:53:45 +00:00
copilot-swe-agent[bot] c162657987 Add tests for bulk operations and status filtering
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:53:34 +00:00
copilot-swe-agent[bot] 08775459aa Fix /files view issues and add bulk operations
- Fixed status filter in /files view endpoint
- Added bulk delete and reprocess API endpoints
- Added bulk selection UI with checkboxes
- Added bulk actions bar with reprocess and delete buttons
- Updated JavaScript to handle bulk operations

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:52:38 +00:00
copilot-swe-agent[bot] 50adfc3694 Initial plan 2026-02-07 15:49:49 +00:00
Christian Krakau-Louis db5322a204 Merge pull request #86 from christianlouis/copilot/fix-files-view-error
Fix /files view: Add min/max to Jinja2 template globals
2026-02-07 16:43:10 +01:00
copilot-swe-agent[bot] 89ddd355e2 Remove accidentally committed .env.test file 2026-02-07 15:40:28 +00:00
copilot-swe-agent[bot] f2a303b6ee Improve test code quality based on code review feedback
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:40:22 +00:00
copilot-swe-agent[bot] f3ce81a6cf Fix 'min' undefined error in /files view by adding min/max to Jinja2 globals
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:35:54 +00:00
copilot-swe-agent[bot] 850139d3f8 Initial plan 2026-02-07 15:31:51 +00:00
Christian Krakau-Louis 0209c25ec2 Merge pull request #84 from christianlouis/copilot/update-upload-artifact-version
Update actions/upload-artifact from v3 to v4
2026-02-07 16:28:23 +01:00
copilot-swe-agent[bot] 4a7dcc7fe7 Update actions/upload-artifact from v3 to v4
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:26:55 +00:00
copilot-swe-agent[bot] c53504753a Initial plan 2026-02-07 15:26:00 +00:00
Christian Krakau-Louis 97a3f0b128 Merge pull request #83 from christianlouis/copilot/fix-document-list-ordering
Add server-side pagination, filtering, and status tracking to /files view
2026-02-07 16:24:53 +01:00
copilot-swe-agent[bot] 775ffa5082 Address code review feedback
- Fixed status filtering to occur before pagination for correct counts
- Resolved N+1 query problem by batch-fetching processing statuses
- Extracted status computation logic to shared utility function
- Changed sort indicator from ⬍ to ↕ for better browser compatibility
- Updated both API and view layers to use shared status utilities

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:20:59 +00:00
copilot-swe-agent[bot] b76fb147cb Add tests for file listing and pagination features
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:15:30 +00:00
copilot-swe-agent[bot] 530c63ad14 Add server-side pagination, filtering, sorting, and file detail view
- Updated /api/files endpoint with pagination, filtering, and sorting support
- Added /api/files/{file_id} endpoint for detailed file information
- Updated /files view to support server-side operations
- Added /files/{file_id}/detail route for file detail page
- Created new files.html with filters, status column, and pagination
- Created file_detail.html for viewing processing history
- Status computed from ProcessingLog entries (pending, processing, completed, failed)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:12:49 +00:00
copilot-swe-agent[bot] bbd7286c0b Initial plan 2026-02-07 15:08:08 +00:00
Christian Krakau-Louis 642bdb1e56 Merge pull request #81 from christianlouis/copilot/slow-down-processall-endpoint
Add configurable rate limiting to /processall endpoint
2026-02-07 16:04:37 +01:00
copilot-swe-agent[bot] 0de31fc775 Refactor tests to use fixture for better maintainability
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:03:17 +00:00
copilot-swe-agent[bot] 237c9504ad Add documentation for batch processing throttling feature
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:00:56 +00:00
copilot-swe-agent[bot] a12ccdabac Apply Black and isort formatting to modified files
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 15:00:18 +00:00
copilot-swe-agent[bot] 8eea420bc5 Add throttling to /processall endpoint to prevent overwhelming downstream APIs
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-07 14:59:19 +00:00
copilot-swe-agent[bot] 8fb3998d67 Initial plan 2026-02-07 14:53:04 +00:00