12 Commits

Author SHA1 Message Date
JSC
7b59a8216a fix: Correct import formatting for CreditService in VLCPlayerService
Some checks failed
Backend CI / lint (push) Failing after 9s
Backend CI / test (push) Failing after 1m28s
2025-09-27 03:34:19 +02:00
JSC
4b8496d025 feat: Implement host system volume control and update player service to use it
Some checks failed
Backend CI / lint (push) Failing after 10s
Backend CI / test (push) Has been cancelled
2025-09-27 03:33:11 +02:00
JSC
1bef694f38 feat: Enhance play_sound method to accept volume parameter and retrieve current volume
Some checks failed
Backend CI / lint (push) Failing after 10s
Backend CI / test (push) Failing after 1m33s
2025-09-18 13:57:54 +02:00
JSC
dc89e45675 Refactor scheduled task repository and schemas for improved type hints and consistency
- Updated type hints from List/Optional to list/None for better readability and consistency across the codebase.
- Refactored import statements for better organization and clarity.
- Enhanced the ScheduledTaskBase schema to use modern type hints.
- Cleaned up unnecessary comments and whitespace in various files.
- Improved error handling and logging in task execution handlers.
- Updated test cases to reflect changes in type hints and ensure compatibility with the new structure.
2025-08-28 23:38:47 +02:00
JSC
03abed6d39 Add comprehensive tests for scheduled task repository, scheduler service, and task handlers
- Implemented tests for ScheduledTaskRepository covering task creation, retrieval, filtering, and status updates.
- Developed tests for SchedulerService including task creation, cancellation, user task retrieval, and maintenance jobs.
- Created tests for TaskHandlerRegistry to validate task execution for various types, including credit recharge and sound playback.
- Ensured proper error handling and edge cases in task execution scenarios.
- Added fixtures and mocks to facilitate isolated testing of services and repositories.
2025-08-28 22:37:43 +02:00
JSC
9653062003 refactor: Move imports to avoid circular dependencies in socket and VLCPlayerService
Some checks failed
Backend CI / lint (push) Successful in 9m24s
Backend CI / test (push) Failing after 3m55s
2025-08-19 22:32:19 +02:00
JSC
b808cfaddf feat: Enhance WebSocket sound playback with credit validation and refactor related methods
Some checks failed
Backend CI / lint (push) Has been cancelled
Backend CI / test (push) Has been cancelled
2025-08-19 22:28:54 +02:00
JSC
a82acfae50 feat: Implement sound playback with credit validation in VLCPlayerService and update WebSocket handling
Some checks failed
Backend CI / lint (push) Failing after 5m0s
Backend CI / test (push) Failing after 2m0s
2025-08-19 22:16:48 +02:00
JSC
77446cb5a8 feat: Include admin user name in SoundPlayed records for enhanced tracking
Some checks failed
Backend CI / lint (push) Successful in 16m41s
Backend CI / test (push) Failing after 47m14s
2025-08-02 18:22:38 +02:00
JSC
a10111793c fix: Lint fixes of services
All checks were successful
Backend CI / test (push) Successful in 3m59s
2025-08-01 01:27:47 +02:00
JSC
8847131f24 Refactor test files for improved readability and consistency
- Removed unnecessary blank lines and adjusted formatting in test files.
- Ensured consistent use of commas in function calls and assertions across various test cases.
- Updated import statements for better organization and clarity.
- Enhanced mock setups in tests for better isolation and reliability.
- Improved assertions to follow a consistent style for better readability.
2025-07-31 21:37:04 +02:00
JSC
dd10ef5d41 feat: Add VLC player API endpoints and associated tests
- Implemented VLC player API endpoints for playing and stopping sounds.
- Added tests for successful playback, error handling, and authentication scenarios.
- Created utility function to get sound file paths based on sound properties.
- Refactored player service to utilize shared sound path utility.
- Enhanced test coverage for sound file path utility with various sound types.
- Introduced tests for VLC player service, including subprocess handling and play count tracking.
2025-07-30 20:46:49 +02:00