Commit Graph

116 Commits

Author SHA1 Message Date
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
7dee6e320e Add tests for extraction API endpoints and enhance existing tests
Some checks failed
Backend CI / lint (push) Successful in 9m25s
Backend CI / test (push) Failing after 4m48s
- Implement tests for admin extraction API endpoints including status retrieval, deletion of extractions, and permission checks.
- Add tests for user extraction deletion, ensuring proper handling of permissions and non-existent extractions.
- Enhance sound endpoint tests to include duplicate handling in responses.
- Refactor favorite service tests to utilize mock dependencies for better maintainability and clarity.
- Update sound scanner tests to improve file handling and ensure proper deletion of associated files.
2025-08-25 21:40:31 +02:00
JSC
d3ce17f10d feat: Enhance SoundScannerService with duplicate detection and normalized file handling
Some checks failed
Backend CI / lint (push) Failing after 4m52s
Backend CI / test (push) Failing after 4m39s
2025-08-25 12:33:10 +02:00
JSC
da66516bb3 feat: Implement hash-first identification strategy in audio file syncing and enhance tests for renamed files
Some checks failed
Backend CI / lint (push) Failing after 4m55s
Backend CI / test (push) Failing after 4m32s
2025-08-25 11:56:07 +02:00
JSC
d81a54207c feat: Add endpoint to retrieve currently processing extractions and corresponding tests
Some checks failed
Backend CI / lint (push) Failing after 4m54s
Backend CI / test (push) Failing after 4m39s
2025-08-24 13:44:01 +02:00
JSC
16eb789539 feat: Add method to get extractions by status and implement user info retrieval in extraction service
Some checks failed
Backend CI / lint (push) Failing after 4m53s
Backend CI / test (push) Failing after 4m31s
2025-08-24 13:24:48 +02:00
JSC
28faca55bc Refactor code structure for improved readability and maintainability
Some checks failed
Backend CI / lint (push) Failing after 5m1s
Backend CI / test (push) Failing after 4m30s
2025-08-22 21:18:04 +02:00
JSC
821093f64f Refactor code structure for improved readability and maintainability
Some checks failed
Backend CI / lint (push) Failing after 4m51s
Backend CI / test (push) Failing after 4m35s
2025-08-20 11:37:28 +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
560ccd3f7e refactor: Improve code readability by formatting query parameters in user endpoints and enhancing error handling in sound playback 2025-08-19 22:09:50 +02:00
JSC
a660cc1861 Merge branch 'favorite'
Some checks failed
Backend CI / lint (push) Successful in 9m21s
Backend CI / test (push) Failing after 3m59s
2025-08-17 13:25:59 +02:00
JSC
6b55ff0e81 Refactor user endpoint tests to include pagination and response structure validation
- Updated tests for listing users to validate pagination and response format.
- Changed mock return values to include total count and pagination details.
- Refactored user creation mocks for clarity and consistency.
- Enhanced assertions to check for presence of pagination fields in responses.
- Adjusted test cases for user retrieval and updates to ensure proper handling of user data.
- Improved readability by restructuring mock definitions and assertions across various test files.
2025-08-17 12:36:52 +02:00
JSC
e6f796a3c9 feat: Add pagination, search, and filter functionality to user retrieval endpoint 2025-08-17 11:44:15 +02:00
JSC
99c757a073 feat: Implement pagination for extractions and playlists with total count in responses 2025-08-17 11:21:55 +02:00
JSC
f598ec2c12 fix: Extract user name in session context for improved performance 2025-08-17 01:49:47 +02:00
JSC
66d22df7dd feat: Add filtering, searching, and sorting to extraction retrieval endpoints 2025-08-17 01:44:43 +02:00
JSC
3326e406f8 feat: Add filtering, searching, and sorting to user extractions retrieval 2025-08-17 01:27:41 +02:00
JSC
fe15e7a6af fix: Correct log message for sound favorited event broadcasting 2025-08-17 01:08:33 +02:00
JSC
f56cc8b4cc feat: Enhance sound favorite management; add WebSocket event broadcasting for favoriting and unfavoriting sounds 2025-08-16 22:19:24 +02:00
JSC
f906b6d643 feat: Enhance favorites functionality; add favorites filtering to playlists and sounds, and improve favorite indicators in responses 2025-08-16 21:41:50 +02:00
JSC
78508c84eb feat: Add favorites filtering to sound retrieval; include user-specific favorite sounds in the API response 2025-08-16 21:27:40 +02:00
JSC
a947fd830b feat: Implement favorites management API; add endpoints for adding, removing, and retrieving favorites for sounds and playlists
feat: Create Favorite model and repository for managing user favorites in the database
feat: Add FavoriteService to handle business logic for favorites management
feat: Enhance Playlist and Sound response schemas to include favorite indicators and counts
refactor: Update API routes to include favorites functionality in playlists and sounds
2025-08-16 21:16:02 +02:00
JSC
5e6cc04ad2 fix: Increase broadcast interval to 1 second while playing
All checks were successful
Backend CI / lint (push) Successful in 9m23s
Backend CI / test (push) Successful in 3m47s
2025-08-16 12:24:41 +02:00
JSC
c27530a25f refactor: Remove unused variable main_playlist_id from test cases in TestPlaylistService
All checks were successful
Backend CI / lint (push) Successful in 9m24s
Backend CI / test (push) Successful in 3m48s
2025-08-16 00:54:41 +02:00
JSC
a109a88eed feat: Implement main playlist restrictions; add internal method for sound addition and update tests
Some checks failed
Backend CI / test (push) Has been cancelled
Backend CI / lint (push) Has been cancelled
2025-08-16 00:51:38 +02:00
JSC
4cec3b9d18 feat: Enhance timestamp management in BaseModel and PlaylistRepository; add automatic updates and improve code readability
All checks were successful
Backend CI / lint (push) Successful in 9m21s
Backend CI / test (push) Successful in 4m0s
2025-08-16 00:19:53 +02:00
JSC
b691649f7e feat: Implement automatic updated_at timestamp management in BaseModel and update BaseRepository to reflect changes
Some checks failed
Backend CI / lint (push) Failing after 5m0s
Backend CI / test (push) Successful in 3m46s
2025-08-16 00:07:15 +02:00
JSC
87d6e6ed67 feat: Update API documentation endpoints and enhance application metadata for SBD v2
All checks were successful
Backend CI / lint (push) Successful in 9m22s
Backend CI / test (push) Successful in 3m54s
2025-08-13 13:56:01 +02:00
JSC
bee1076239 refactor: Improve exception handling and logging in authentication and playlist services; enhance code readability and structure
All checks were successful
Backend CI / lint (push) Successful in 9m21s
Backend CI / test (push) Successful in 4m18s
2025-08-13 00:04:55 +02:00
JSC
f094fbf140 fix: Add missing commas in function calls and improve code formatting
Some checks failed
Backend CI / lint (push) Failing after 4m51s
Backend CI / test (push) Successful in 4m19s
2025-08-12 23:37:38 +02:00
JSC
d3d7edb287 feat: Add tests for dashboard service including statistics and date filters
Some checks failed
Backend CI / lint (push) Has been cancelled
Backend CI / test (push) Has been cancelled
2025-08-12 23:34:02 +02:00
JSC
cba1653565 feat: Update player state tests to include previous volume and adjust volume assertions
Some checks failed
Backend CI / lint (push) Failing after 5m0s
Backend CI / test (push) Successful in 3m46s
2025-08-12 22:58:47 +02:00
JSC
c69a45c9b4 feat: Add endpoint and service method to retrieve top sounds by play count with filtering options
Some checks failed
Backend CI / lint (push) Failing after 4m54s
Backend CI / test (push) Failing after 4m24s
2025-08-11 22:04:42 +02:00
JSC
53b6c4bca5 feat: Enhance sound addition and removal in playlists with position handling and reordering
Some checks failed
Backend CI / lint (push) Failing after 4m55s
Backend CI / test (push) Failing after 3m44s
2025-08-11 20:55:31 +02:00
JSC
49ad6c8581 feat: Add dashboard API endpoints and service for sound statistics
Some checks failed
Backend CI / lint (push) Failing after 4m52s
Backend CI / test (push) Failing after 3m42s
2025-08-11 11:16:45 +02:00
JSC
bb1f036caa Merge branch 'add_sound_to_playlist_dnd'
Some checks failed
Backend CI / lint (push) Failing after 4m53s
Backend CI / test (push) Failing after 3m40s
2025-08-11 09:41:35 +02:00
JSC
d1bf2fe0a4 feat: Add scheduler for daily user credits recharge 2025-08-11 00:30:29 +02:00
JSC
bdeb00d562 feat: Increase default volume level to 80 and adjust volume handling in player service 2025-08-10 21:55:12 +02:00
JSC
13e0db1fe9 feat: Add position shifting logic for adding sounds to playlists in repository 2025-08-10 21:33:06 +02:00
JSC
357fbcecac feat: Implement search and sorting functionality for playlists in API and repository
Some checks failed
Backend CI / lint (push) Failing after 4m54s
Backend CI / test (push) Failing after 4m25s
2025-08-10 19:30:14 +02:00
JSC
aa9a73ac1d feat: Add search and sorting functionality to sound repository and API
Some checks failed
Backend CI / lint (push) Failing after 4m54s
Backend CI / test (push) Failing after 3m46s
2025-08-10 15:33:15 +02:00
JSC
8544a3ce22 feat: Add mute and unmute functionality to player service and API
Some checks failed
Backend CI / lint (push) Failing after 4m52s
Backend CI / test (push) Failing after 3m44s
2025-08-10 15:11:28 +02:00
JSC
0a8b50a0be feat: Add user profile management and password change endpoints
Some checks failed
Backend CI / lint (push) Failing after 4m51s
Backend CI / test (push) Successful in 3m38s
2025-08-09 23:43:20 +02:00
JSC
9e07ce393f feat: Implement admin user management endpoints and user update schema 2025-08-09 22:37:51 +02:00
JSC
734521c5c3 feat: Add environment configuration files and update settings for production and development
Some checks failed
Backend CI / lint (push) Failing after 5m0s
Backend CI / test (push) Successful in 3m39s
2025-08-09 14:43:20 +02:00
JSC
69544b6bb8 feat: Refactor cookie handling to use utility functions for setting access and refresh tokens
All checks were successful
Backend CI / lint (push) Successful in 9m30s
Backend CI / test (push) Successful in 3m31s
2025-08-08 10:06:45 +02:00
JSC
b4f0f54516 Refactor sound and extraction services to include user and timestamp fields
All checks were successful
Backend CI / lint (push) Successful in 18m8s
Backend CI / test (push) Successful in 53m35s
- Updated ExtractionInfo to include user_id, created_at, and updated_at fields.
- Modified ExtractionService to return user and timestamp information in extraction responses.
- Enhanced sound serialization in PlayerState to include extraction URL if available.
- Adjusted PlaylistRepository to load sound extractions when retrieving playlist sounds.
- Added tests for new fields in extraction and sound endpoints, ensuring proper response structure.
- Created new test file endpoints for sound downloads and thumbnail retrievals, including success and error cases.
- Refactored various test cases for consistency and clarity, ensuring proper mocking and assertions.
2025-08-03 20:54:14 +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