Spaces:
Sleeping
Sleeping
Commit History
-
test: import pytest for py311 collection compatibility
e6485a3 -
test: simplify admin role precedence assertion
408366d -
test: fix role assertions for per-project authorization
- Update test_admin_role_takes_precedence to check per-project roles - Tests now verify admin roles are assigned per-project, not globally - All 120 tests passingcb8f934 -
fix: enforce per-project admin roles and remove demo bootstrap
- Change role assignment from global to per-project basis - User is admin only in projects they created or assigned to - User is validator only in projects they were invited to - Remove demo bootstrap messaging and fallback - Add first-login onboarding instructions for project creation - Update login message to show per-project role counts - Add admin scope indicator in Admin tab - All tests passing (120 passed)e94c8b7 -
fix: add admin recovery and project deletion controls
652c203 -
feat: align validation loader with uploader index schema
6b16157 -
fix: support audiofolder datasets without detections metadata
cd7d464 -
fix: load validation detections from selected project dataset
722e080
-
feat: add HF token auth, invite lifecycle, and project token controls
e37709f -
feat: deploy latest local validation UX and demo audio fallback to Spaces
b17d8d1
-
feat: Add support for local audio validation testing
- Add AudioFetchService.fetch_local(local_audio_path) method - Load audio from local filesystem for testing - Support for .wav, .mp3, .flac, .ogg, .m4a formats - Caching via ephemeral cache manager - Error handling for missing/unsupported files - Add 4 unit tests for local audio fetch: - test_fetch_local_loads_local_audio_file - test_fetch_local_caches_on_second_call - test_fetch_local_raises_on_nonexistent_file - test_fetch_local_raises_on_unsupported_format - Add 5 integration tests for local audio validation workflow: - test_load_local_audio_segment_and_create_detection - test_fetch_local_audio_and_validate - test_validate_multiple_local_audio_segments - test_validation_table_with_local_segments - test_local_audio_cache_reuse Features: - Local audio fixtures generated in tests - Full validation workflow tested with local segments - Cache reuse verified across multiple loads - Integration with existing detection/validation pipeline Test coverage: +9 new …cdaafcb -
feat: Production hardening - CI/CD, integration tests, auth externalization
- Add GitHub Actions CI pipeline for automated testing - Add 3 integration tests for validation write, conflict detection, and filtering - Extend AuthService with 3 public APIs for user/project management - list_usernames(include_inactive=False) - upsert_user_project_role(username, project_slug, role) - remove_user_project_role(username, project_slug) - Refactor AdminPanel to use only public AuthService APIs - Externalize bootstrap configuration via JSON files - Add RuntimeConfig fields for projects_file_path, user_access_file_path, enable_demo_bootstrap - Add app_factory bootstrap loaders for projects and user access JSON - Move hardcoded demo data to configurable fallback - Update documentation with new environment variables and JSON examples - Fix: Remove TODO from admin_panel, remove dead _user_project_assignments field - Test coverage: +7 new tests (3 integration + 4 bootstrap/auth unit tests) All 95 tests passing, no regressions.3038fe7
-
refactor: focus repository on validator app only
c85843b -
feat(cli): implement ingest-segments execute mode with HF upload/indexing
- Add full execute path for ingest-segments (without --dry-run) - Upload matched segment audio to audio/segments in resumable batches - Reuse retry/backoff and resume state for robust uploads - Build and upload index shards from normalized matched rows - Update manifest.json with detection/audio counters and shard metadata - Upload ingestion audit report under audit/ingestion-runs - Extend parser options (batch-size, shard-size, retries, resume-state) - Keep dry-run behavior backward compatibleb572423 -
feat(cli): add ingest-segments dry-run matching for BirdNET CSV + segments tree
- Add new CLI command: ingest-segments - Implement phase-1 dry-run pipeline (no upload yet) - Parse BirdNET segment filenames and match CSV rows deterministically - Generate stable detection_key hash and normalized ingest-ready records - Return quality report metrics (matched/unmatched/ambiguous) - Optional JSON report output via --report-file - Add unit tests for parser, key generation, and dry-run matching090ffd1
-
test(acl): comprehensive ACL enforcement test suite with project isolation
- Add 12 tests for project-level data isolation in detection and validation repos - Test detection repository project isolation (4 tests): * List returns only project-specific detections * Count respects project boundaries * Filters applied within project isolation * Confidence filters respect project boundaries - Test validation repository project isolation (4 tests): * Save/load isolates validations by project * List events respects project boundaries * Optimistic locking is per-project scope * Nonexistent project returns empty snapshot - Test auth integration with repositories (4 tests): * Users see only authorized projects * Session contains only authorized projects * User roles isolated per project All tests use 16+ character detection_keys to pass Pydantic validationdc8a18a -
feat(auth): implement AuthService, login page, project selector, and admin panel
- Issue 14: AuthService for user authentication and session management - Issue 15: Project-level ACL enforcement with role-based access - Issue 16: Admin panel for managing projects and user assignments Features: - Multi-project user authorization with admin/validator roles - Session management with TTL and expiration tracking - Login Gradio component with UI feedback - Project selector with user's authorized projects - Admin panel for user-to-project assignments - 22 unit tests with 100% pass rate covering all auth scenarios All changes tested locally with pytest (22/22 tests passing)1f97573 -
feat(ui): use native date picker for updated-after filter
d7a6f4f -
feat(ui): add advanced filters (validator/status/date)
c4b2cd0 -
feat(ui): add batch operations for conflicts (approve all/reject all)
7cc41ee -
feat(ui): add keyboard shortcuts for validation (1/2/3/4/R)
b9851b3 -
test/docs: cover conflict-only filtering behavior
8095268 -
test/docs: assert explicit conflict severity markers
29494b1 -
test/docs: cover reapply conflict flow and update sprint status
83fe12c -
test/docs: cover conflict refresh flow and update sprint status
47559a7 -
test/docs: cover optimistic concurrency conflict scenarios
922e525 -
test/docs: cover validation status reporting helpers
0680cb5 -
test/docs: cover append-only validation persistence and update status
f505798 -
feat(validation): implement validation service and in-memory repository for detection validations
bde5e4c -
feat(ui): implement audio loading and cache cleanup functionality in Gradio app
75d15f3 -
test/docs: cover audio fetch cache flow and update implementation status
c9284c2 -
test(core): cover pagination and filtering queue behavior
f5d6b69 -
test/docs: cover sync-audio behavior and CLI usage
20c353c -
test(cli): add unit tests for index and verify helpers
67145bb -
chore: initial scaffold for BirdNET HF validator app
0bfe6f1