Commit Graph

413 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 546db7eff9 refactor: remove duplicate utils.py, dead license_routes, and pytest.ini
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-09 15:11:26 +00:00
copilot-swe-agent[bot] b8c7e12d22 Initial plan 2026-02-09 15:02:42 +00:00
Christian Krakau-Louis 506bb25ee1 Merge pull request #157 from christianlouis/copilot/increase-test-coverage-60
test: increase test coverage from 45% to 60%
2026-02-09 14:56:41 +01:00
copilot-swe-agent[bot] 285454b439 fix: address CodeQL url substring sanitization alert in test
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-09 12:17:47 +00:00
copilot-swe-agent[bot] 50910da3e0 test: add final coverage tests to exceed 60% threshold
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-09 12:15:07 +00:00
copilot-swe-agent[bot] c3bfb26c73 test: add comprehensive tests across modules to increase coverage above 60%
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-09 11:57:09 +00:00
copilot-swe-agent[bot] d6e57c8b47 Initial plan 2026-02-09 11:28:24 +00:00
Christian Krakau-Louis 317bec2e11 Merge pull request #153 from christianlouis/copilot/improve-codecov-test-coverage
test: improve code coverage from 45% to 48% and document roadmap to 60%
2026-02-08 21:53:24 +01:00
copilot-swe-agent[bot] 1fc0b914e3 docs: update TODO_TESTS.md with final coverage numbers
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 19:04:51 +00:00
copilot-swe-agent[bot] 5f0bed555d test: add comprehensive tests for oauth_helper and notification utilities
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 19:04:30 +00:00
copilot-swe-agent[bot] ee2a3390fd test: add tests for encryption, uptime_kuma, filename_utils, logging, and celery_worker
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 18:54:31 +00:00
copilot-swe-agent[bot] 2846763fdf Initial plan 2026-02-08 18:35:44 +00:00
Christian Krakau-Louis 146d87cb8c Merge pull request #151 from christianlouis/copilot/fix-ci-test-coverage
Fix Black formatting failures in CI
2026-02-08 19:29:21 +01:00
copilot-swe-agent[bot] bb155501b4 fix(tasks): apply Black formatting to extract_metadata_with_gpt.py and rotate_pdf_pages.py
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 18:21:45 +00:00
copilot-swe-agent[bot] 7ea933c9e6 Initial plan 2026-02-08 18:17:54 +00:00
Christian Krakau-Louis 14a5569b05 Merge pull request #149 from christianlouis/copilot/install-codecov-integration
Upgrade Codecov integration to v5 and add repository status badges
2026-02-08 19:14:29 +01:00
Christian Krakau-Louis 152f54dade Merge pull request #148 from christianlouis/copilot/fix-flake8-linter-errors
fix: resolve all 1080 Flake8 linter errors across app/ directory
2026-02-08 19:14:01 +01:00
copilot-swe-agent[bot] d08040ac4a style: fix all flake8 linter errors across app/ directory
- Run Black formatter and isort on all app/ files
- Remove unused imports (F401) across multiple files
- Add # noqa: F401 for intentional re-exports in celery_worker.py,
  tasks/__init__.py, utils.py, frontend.py, views/base.py
- Fix f-strings without placeholders (F541) in azure.py, notification.py,
  check_credentials.py, upload_to_onedrive.py, settings.py
- Fix bare except (E722) in upload_to_sftp.py
- Fix block comment format (E265) in models.py
- Move imports to top of file to fix E402 in celery_app.py, celery_worker.py
- Fix line-too-long (E501) by wrapping strings in multiple files
- Remove unused variable (F841) in upload_to_nextcloud.py

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 17:42:33 +00:00
copilot-swe-agent[bot] b79f61e85f feat: integrate Codecov v5 with test results and add comprehensive status badges
- Update Codecov action from v3 to v5 with token authentication
- Add Codecov test results action v1 for test analytics
- Update pytest to generate JUnit XML for test results
- Add comprehensive status badges to README including:
  - Codecov coverage badge
  - CI/CD workflow status badges (Tests, Docker CI, CodeQL)
  - GitHub release, license, and Python version badges
  - Social badges for stars, forks, issues, and PRs

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 17:41:41 +00:00
copilot-swe-agent[bot] cfe3c5bb23 Initial plan 2026-02-08 17:39:56 +00:00
copilot-swe-agent[bot] 7827b97e06 Initial plan 2026-02-08 17:33:30 +00:00
Christian Krakau-Louis 75b8dddc7b Merge pull request #145 from christianlouis/copilot/remove-dead-files-and-workflows
chore: remove dead files and duplicate workflows
2026-02-08 18:31:39 +01:00
copilot-swe-agent[bot] b3b74adb45 chore: remove dead files and duplicate workflows
- Delete build-setup.sh (empty shell script)
- Delete docker-build.sh (empty shell script)
- Delete .github/workflows/codeql.yaml (duplicate, keeping codeql.yml)
- Delete issues/ directory (3 markdown files)
- Update SECURITY_AUDIT.md to remove completed task about consolidating CodeQL workflows
- Update docs/archive/ANALYSIS_SUMMARY.md to reference codeql.yml instead of codeql.yaml

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 17:02:11 +00:00
copilot-swe-agent[bot] 94bd46fabe Initial plan 2026-02-08 17:00:02 +00:00
Christian Krakau-Louis 5f4ba67f05 Merge pull request #143 from christianlouis/copilot/fix-file-upload-tests
fix(tests): Fix Celery task mocking in file upload tests
2026-02-08 17:59:22 +01:00
copilot-swe-agent[bot] 0422c705f5 fix(tests): fix Celery task mocking in file upload tests
Patch entire task objects instead of just .delay method to properly
intercept Celery task calls in app.api.files module. This fixes 7
failing tests that were getting 'Expected delay to have been called
once. Called 0 times.' errors.

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 16:57:38 +00:00
copilot-swe-agent[bot] 23819bcd6e Initial plan 2026-02-08 16:53:23 +00:00
Christian Krakau-Louis 468f307f85 Merge pull request #142 from christianlouis/copilot/create-copilot-instructions-md
docs: add build, test, lint commands and conventions to copilot-instructions.md
2026-02-08 17:53:06 +01:00
copilot-swe-agent[bot] 05821466a7 docs: enhance copilot-instructions.md with build, test, lint commands and conventions
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 16:33:11 +00:00
copilot-swe-agent[bot] 7757f588cf Initial plan 2026-02-08 16:30:15 +00:00
Christian Krakau-Louis ccc7d2f83a Merge pull request #139 from christianlouis/copilot/fix-files-view-auto-refresh
feat(ui): auto-refresh files table after upload and inline file preview
2026-02-08 17:26:10 +01:00
copilot-swe-agent[bot] 334714423e fix(ui): address code review feedback on inline preview
- Remove invalid type attribute from iframe elements
- Add dedicated download endpoint with attachment disposition
- Update download links to use new endpoint instead of preview

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 16:16:31 +00:00
Christian Krakau-Louis 1165efeefa Create issue: 'Fix failing file upload tests - Celery task mocking issue' 2026-02-08 17:15:41 +01:00
copilot-swe-agent[bot] 98fe5ab864 test: add inline preview header verification test
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 16:14:45 +00:00
copilot-swe-agent[bot] ed0bac7345 feat(ui): add auto-refresh after upload and inline file preview
- Auto-refresh files table after successful uploads using custom event
- Add inline preview support for PDFs, images, and text files
- Set Content-Disposition header to inline for preview endpoint
- Add download button as secondary action in file details view

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 16:12:44 +00:00
copilot-swe-agent[bot] 4e654a9f08 Initial plan 2026-02-08 16:10:55 +00:00
Christian Krakau-Louis 17795620c6 Merge pull request #138 from christianlouis/copilot/fix-quality-gate-issues
Fix SonarQube Quality Gate: eliminate OAuth duplication, secure logging, add path validation
2026-02-08 17:09:13 +01:00
copilot-swe-agent[bot] b97c80d6bd fix: address code review feedback on security and type hints
- Use Optional[int] type hint for timeout parameter in oauth_helper
- Replace bare Exception with specific ValueError and JSONDecodeError
- Strengthen rclone remote name validation (must start with alphanumeric)
- Fix path traversal validation to check against workdir for absolute paths
- Add comprehensive comments for security validations

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 08:31:21 +00:00
copilot-swe-agent[bot] d2eb9846d3 style: fix linting issues and remove unused imports
- Remove unused imports from all modified files
- Fix flake8 violations (unused variables, f-strings without placeholders)
- Apply Black formatting consistently
- Shorten long line in google_drive.py

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 08:29:38 +00:00
copilot-swe-agent[bot] 551b23a80c fix(security): reduce code duplication and fix security issues in OAuth and file handling
- Extract common OAuth token exchange logic to shared utility (oauth_helper.py)
- Remove sensitive data logging (client_secret, authorization codes)
- Add path traversal validation in resolve_file_path()
- Add input validation for rclone destination parameter
- Replace bare Exception catches with specific exception types
- Use RuntimeError instead of generic Exception for better error handling

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 08:26:10 +00:00
copilot-swe-agent[bot] 6ec4e2b8a7 Initial plan 2026-02-08 08:21:41 +00:00
Christian Krakau-Louis 225145d88a Merge pull request #137 from christianlouis/copilot/fix-failing-tests-ci-workflow
Fix failing CI tests: add service containers and resolve test issues
2026-02-08 09:20:18 +01:00
copilot-swe-agent[bot] 78004cd9a4 style: Apply Black formatting to modified files
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 08:16:54 +00:00
copilot-swe-agent[bot] 0a461343e7 fix: Add service containers and fix test failures
- Add Redis and RabbitMQ services to CI workflow
- Fix Jinja2 template error by passing file=None in error cases
- Fix test expecting dict response format for list_files endpoint
- Fix NOT NULL constraint by providing valid local_filename
- Fix retry-subtask to validate subtask name before checking processed file
- Add mock for process_document in reprocess test

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 08:14:09 +00:00
copilot-swe-agent[bot] 4ca24a2e0e Initial plan 2026-02-08 08:10:17 +00:00
Christian Krakau-Louis e3a1688758 Create issue template for fixing failing tests in CI workflow. 2026-02-08 09:09:14 +01:00
Christian Krakau-Louis 2249b15e34 Create GitHub issue for fixing failing tests in CI workflow. 2026-02-08 09:08:27 +01:00
semantic-release 06613dc6dd 0.1.0
Automatically generated by python-semantic-release
2026-02-08 08:05:37 +00:00
Christian Krakau-Louis 93149d0c56 Merge pull request #135 from christianlouis/copilot/implement-semantic-release
feat: implement semantic-release and conventional commits for automated versioning
2026-02-08 09:05:19 +01:00
copilot-swe-agent[bot] 67cbc5e80d fix: address code review feedback
- Remove version_variables from pyproject.toml (not needed with version_source="tag")
- Clean up CHANGELOG.md comparison links to avoid duplicate/incorrect references
- Keep only [Unreleased] link since v0.5.0 tag doesn't exist yet

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 07:59:47 +00:00