Commit Graph
10 Commits
Author SHA1 Message Date
MajoorWaldi 92a662077a feat: Update pytest configuration and refactor vec embeddings rebuild logic 2026-03-28 20:58:22 +01:00
MajoorWaldi 8e480d7d68 feat: Enhance various components with error handling, resource management, and dependency updates 2026-03-28 20:51:34 +01:00
MajoorWaldi e7c2443670 fix(security): improve API token handling and add server-side bootstrapping
- Move token from local to session storage on client side
- Set httpOnly cookie for server-side token on bootstrap/rotate
- Add token validation and auto-sanitization
- Implement retry logic for failed operations
- Add input validation for collection names
- Update toast durations and error handling
2026-02-27 10:09:44 +01:00
MajoorWaldi b868c1614c fix(backend): improve input validation and error handling
- Add type checks for rating values and keep_asset_id
- Validate duplicate service availability
- Enhance filesystem caching logic
- Improve custom root handling
- Refine scan and file upload processes
- Update route registry and test configuration
2026-02-26 12:08:39 +01:00
MajoorWaldi a6d5095fb9 Add initial test suite and configuration for Vitest
- Created package.json to manage project dependencies and scripts for testing.
- Added test_scan_flow_integration.py to test incremental scanning and file removal functionality.
- Added test_search_flow_integration.py to test indexing and searching capabilities.
- Introduced vitest.config.mjs for Vitest configuration to set up the testing environment.
2026-02-26 11:24:27 +01:00
MajoorWaldi 9fa7ace7cc Add comprehensive tests for role_classifier, sampler_tracer, scan_diagnostics, scan_throttle, and extractors
- Introduced coverage tests for role_classifier.py, targeting various functions and edge cases.
- Added extra tests for sampler_tracer.py to cover uncovered branches and exception handling.
- Implemented tests for scan_diagnostics.py to validate error handling and unique filepath diagnosis.
- Created tests for scan_throttle.py to ensure proper functionality of throttling helpers.
- Developed additional coverage tests for extractors.py, focusing on various data handling scenarios.
2026-02-26 09:33:55 +01:00
MajoorWaldi 75261d636c Add comprehensive tests for SQLite facade, metadata extractors, and security helpers
- Introduced unit tests for SQLite facade helpers, including schema validation, query building, and async operations.
- Added integration tests for basic SQLite queries and transaction handling.
- Implemented additional tests for metadata extraction functions, focusing on dimension handling, EXIF data, and video metadata.
- Created tests for security core helpers, covering environment variable checks, IP validation, and CSRF protection.
- Included compatibility tests for route exports to ensure proper functionality.
2026-02-26 07:01:43 +01:00
Ewald da847f35f9 Add regression tests for route security guards
- Implement tests to ensure file paths are properly allowlisted in custom view and folder info handlers.
- Verify that collections mutations enforce CSRF protection and write access guards.
- Check that settings mutations require write access for specific routes.
2026-02-18 14:37:13 +01:00
Your Name f86f40a4bf Refactor code structure for improved readability and maintainability 2026-02-08 23:30:36 +01:00
Ewald b6dc804134 Fix workflow flags, generation time, pytest isolation 2026-02-04 02:32:23 +01:00