Commit Graph

513 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] e70d06e789 Initial plan 2026-02-11 14:53:55 +00:00
Christian Krakau-Louis ef97746a5f Merge pull request #237 from christianlouis/copilot/fix-autorelease-version-sync
fix(build): sync VERSION file with semantic-release tags and add build time
2026-02-11 15:51:59 +01:00
copilot-swe-agent[bot] e8bba38f98 docs: fix numbering in BuildMetadata.md
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 14:45:22 +00:00
copilot-swe-agent[bot] 037b4aa94e fix(build): sync VERSION file with semantic-release tags and add build time
- Update generate_build_metadata.sh to sync VERSION from latest git tag
- Change BUILD_DATE format from date-only to ISO 8601 with time (YYYY-MM-DDTHH:MM:SSZ)
- Fix VERSION file from 0.5.0 to 0.9.1 (matching latest git tag v0.9.1)
- Change version fallback from hardcoded '0.5.0-dev' to 'unknown' in config.py
- Update release.yml to commit all build metadata files (not just VERSION)
- Update BuildMetadata.md documentation to reflect automated versioning
- Add tests for build_date with time format and version unknown fallback

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 14:42:37 +00:00
copilot-swe-agent[bot] fac4758116 Initial plan 2026-02-11 14:31:03 +00:00
Christian Krakau-Louis 0be7b7185b Merge pull request #236 from christianlouis/copilot/fix-backend-url-processing-error
fix(api): fix process-url endpoint crashing on request.session access
2026-02-11 15:28:30 +01:00
copilot-swe-agent[bot] 9cd7a80cbc fix(api): add Request parameter to process_url endpoint for session access
The @require_login decorator expects a Starlette Request as the first
parameter to access request.session, but process_url only had a
URLUploadRequest Pydantic model parameter. This caused an
AttributeError: 'URLUploadRequest' object has no attribute 'session'
when POST /api/process-url was called.

Fix: Add `request: Request` as the first parameter and rename the
Pydantic model parameter from `request` to `url_request`.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 14:25:57 +00:00
copilot-swe-agent[bot] 1cb6a60135 Initial plan 2026-02-11 14:22:05 +00:00
Christian Krakau-Louis 44395e0386 Merge pull request #235 from christianlouis/copilot/implement-file-intake-url
feat: Add URL-based file intake with SSRF protection
2026-02-11 15:08:59 +01:00
copilot-swe-agent[bot] 47a1de953d refactor: address code review comments
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 13:39:35 +00:00
copilot-swe-agent[bot] 201984de96 docs: document URL upload API endpoint
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 13:37:36 +00:00
copilot-swe-agent[bot] 245e298991 feat: add URL-based file upload with SSRF protection
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 13:36:23 +00:00
copilot-swe-agent[bot] 47e788d134 Initial plan 2026-02-11 13:25:30 +00:00
Christian Krakau-Louis b4cf4d5fd9 Merge pull request #232 from christianlouis/copilot/fix-document-duplication-error
fix(tasks): resolve metadata embedding file-not-found race condition and add detailed logging to all pipeline steps
2026-02-11 11:40:52 +01:00
copilot-swe-agent[bot] 2b2394f858 fix: pass task_id to check_page_rotation helper for consistent log prefixing
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 10:15:08 +00:00
copilot-swe-agent[bot] 21ca941b26 fix(test): add log_task_progress mocks to OCR processing tests
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 10:11:49 +00:00
copilot-swe-agent[bot] 6f286e37b3 feat(tasks): add detailed logging to upload_with_rclone task functions
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 10:06:51 +00:00
copilot-swe-agent[bot] 14eacc7c23 feat(tasks): add detailed logging to rotate_pdf_pages task
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 10:02:25 +00:00
copilot-swe-agent[bot] 4153c5bbcb feat(tasks): add detailed logging to refine_text_with_gpt task
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 09:57:46 +00:00
copilot-swe-agent[bot] acec9954a0 feat(tasks): add detailed logging to Azure Document Intelligence task
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 09:54:53 +00:00
copilot-swe-agent[bot] 3e78ee4c27 fix(logging): address code review feedback for TaskLogCollector robustness
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 09:15:44 +00:00
copilot-swe-agent[bot] dfa4b16776 feat(tasks): auto-capture worker log output for all tasks via TaskLogCollector
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 09:13:09 +00:00
copilot-swe-agent[bot] b18f5ee13c feat(ui): add verbose worker log detail to processing history on file detail page
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 09:06:30 +00:00
copilot-swe-agent[bot] f7799e409d fix(tasks): prevent filename overwrite in extract_metadata_with_gpt and fix embed retry logic
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-11 08:59:27 +00:00
copilot-swe-agent[bot] 26dc165b37 Initial plan 2026-02-11 08:50:04 +00:00
Christian Krakau-Louis 665450e7e2 Merge pull request #231 from christianlouis/copilot/fix-regression-error-pipeline
Fix duplicate check blocking reprocessing and enable retry from failed pipeline step
2026-02-11 09:00:50 +01:00
copilot-swe-agent[bot] afb4d9bf85 refactor(api): address code review feedback - extract PDF text helper, improve comments
- Extract duplicated PDF text extraction into _extract_text_from_pdf helper
- Clarify empty metadata dict comment for embed_metadata_into_pdf retry
- Make test assertion for file_id passing more explicit

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 21:11:46 +00:00
copilot-swe-agent[bot] 11c7d15a90 fix(tasks): skip duplicate check when reprocessing and enable retry from failed pipeline step
- Add file_id parameter to process_document to skip duplicate hash check on reprocess
- Pass file_id from reprocess_single_file and bulk_reprocess_files endpoints
- Extend retry-subtask endpoint to support pipeline steps (process_document,
  process_with_azure_document_intelligence, extract_metadata_with_gpt,
  embed_metadata_into_pdf) in addition to upload tasks
- Add retry button for failed main pipeline steps in file detail UI
- Add comprehensive tests for reprocessing and pipeline step retry

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 21:09:53 +00:00
copilot-swe-agent[bot] 7c074c2755 Initial plan 2026-02-10 20:56:23 +00:00
Christian Krakau-Louis 5ccd283e66 Merge pull request #229 from christianlouis/copilot/refactor-extract-file-status-logic
refactor: extract shared file-status query logic
2026-02-10 21:44:14 +01:00
copilot-swe-agent[bot] 8edc11da04 refactor: extract shared file-status query logic into utility function
- Created app/utils/file_queries.py with apply_status_filter function
- Updated app/api/files.py to use shared function
- Updated app/views/files.py to use shared function
- Removed unused 'or_' import from app/api/files.py
- Added comprehensive tests in tests/test_file_queries.py
- All tests pass (10 new tests, 14 existing tests verified)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 20:40:11 +00:00
copilot-swe-agent[bot] eb666d8325 Initial plan 2026-02-10 20:35:19 +00:00
Christian Krakau-Louis ff02109e16 Merge pull request #228 from christianlouis/copilot/add-rate-limiting-middleware
Adjust rate limits: increase uploads to 600/minute, remove redundant processing limit
2026-02-10 21:34:46 +01:00
copilot-swe-agent[bot] 403cd02428 feat: Adjust rate limits per feedback - increase uploads to 600/minute, remove processing limit
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 20:29:26 +00:00
copilot-swe-agent[bot] 7480c70de4 plan: Adjust rate limits based on feedback
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 20:26:21 +00:00
copilot-swe-agent[bot] 8634dc0265 fix: Remove accidentally committed pip output file and fix duplicate heading
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 16:23:45 +00:00
copilot-swe-agent[bot] 5633752594 docs: Add comprehensive rate limiting strategy documentation
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 16:22:23 +00:00
copilot-swe-agent[bot] da2be01855 test: Fix rate limiting tests to use existing endpoints
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 16:20:38 +00:00
copilot-swe-agent[bot] 8d347e0a53 feat: Add rate limiting middleware with SlowAPI
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 16:17:53 +00:00
copilot-swe-agent[bot] 0b3f9212d1 Initial plan 2026-02-10 16:12:13 +00:00
Christian Krakau-Louis 6321a130b0 Merge pull request #227 from christianlouis/copilot/fix-api-integration-tests
docs(test): document authentication test configuration and add validation tests
2026-02-10 17:10:46 +01:00
copilot-swe-agent[bot] 1a44de3ea4 style: format test_api_auth_enabled.py with Black and isort
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 15:53:11 +00:00
copilot-swe-agent[bot] 9795a3966a docs: add comprehensive test setup documentation and auth integration tests
- Add detailed test setup section to CONTRIBUTING.md explaining environment configuration
- Add testing section to README.md with quick start guide
- Create test_api_auth_enabled.py with 11 new integration tests for auth configuration
- Document that tests automatically configure required environment variables (no manual setup)
- Explain AUTH_ENABLED and SESSION_SECRET configuration for tests
- Include examples of testing with authentication enabled
- Reference integration test documentation for Docker-based tests

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 15:50:13 +00:00
copilot-swe-agent[bot] 6f462c7430 Initial plan 2026-02-10 15:42:30 +00:00
Christian Krakau-Louis 171e4fbfc3 Merge pull request #226 from christianlouis/copilot/fix-ssh-host-keys-again
Fix SFTP host key verification: secure by default
2026-02-10 16:41:46 +01:00
copilot-swe-agent[bot] 9a89f70cf4 fix: change SFTP host key verification default to secure (False)
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 15:39:23 +00:00
copilot-swe-agent[bot] 04c44e6bad Initial plan 2026-02-10 15:34:11 +00:00
Christian Krakau-Louis 89455041cb Merge pull request #225 from christianlouis/copilot/add-webdav-upload-support
Add comprehensive testing infrastructure for WebDAV and upload destinations
2026-02-10 16:31:46 +01:00
copilot-swe-agent[bot] 1dab1fb6fd docs: add comprehensive WebDAV testing summary
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 15:26:35 +00:00
copilot-swe-agent[bot] fb50c8b375 test: add full-stack integration testing with real infrastructure (PostgreSQL, Redis, Gotenberg, WebDAV, SFTP, MinIO)
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-10 15:24:35 +00:00