Commit Graph

44 Commits

Author SHA1 Message Date
StarAppeal e678bc800b feat: add location search endpoint, update weather polling to use coordinates, and enforce weather rate limiting
- Introduce /api/location/search endpoint for location autocomplete using OpenWeather geocoding
- Refactor weather polling service and user schema to use latitude/longitude instead of location name
- Add weatherLimiter middleware to rate limit location API requests
- Update tests for new location structure and endpoint
2025-12-27 18:31:12 +01:00
StarAppeal e3926a422a chore: Add endpoint to update user state and update test cases 2025-12-27 04:49:08 +01:00
StarAppeal 8c9be8cbec test: Remove console error spy from database connection retry test 2025-09-30 06:59:22 +02:00
StarAppeal 329911d3b5 test: Update user tests to use dynamic ObjectId and add validation for ObjectId 2025-09-30 06:55:02 +02:00
StarAppeal 9975e4f1b1 fix: Update user ID in tests and enforce admin check in user retrieval route 2025-09-30 06:51:25 +02:00
StarAppeal 55713a2372 feat: Implement SingleSpotifyUpdateEvent and SingleWeatherUpdateEvent for websocket communication 2025-09-30 06:32:43 +02:00
StarAppeal 8b8302ba36 feat: Enhance WebSocket server with UUID client mapping and connection handling 2025-09-30 06:07:43 +02:00
StarAppeal d710e735e9 test: Add TypeScript ignore comments for private property access in spotifyPollingService tests 2025-09-30 05:21:12 +02:00
StarAppeal 5ddb7c67cf refactor: Improve type safety and error handling across multiple files, eslint fix 2025-09-30 05:16:25 +02:00
StarAppeal a3a34b3576 feat: Implement stayLoggedIn functionality for JWT authentication 2025-09-29 09:36:36 +02:00
StarAppeal 11680b4cc3 refactor: Improve SpotifyPollingService by encapsulating state management and simplifying polling logic 2025-09-29 06:15:41 +02:00
StarAppeal 82e5e6c810 refactor logger configuration and clean up test imports 2025-09-27 01:24:43 +02:00
StarAppeal a1b02c3088 fix most tests 2025-09-27 01:21:57 +02:00
StarAppeal a2c5403d39 add unit tests for FileService methods and refactor file model to remove userId index 2025-09-26 05:26:06 +02:00
StarAppeal 7f683fa6bc implement file duplication check in upload process and enhance test coverage 2025-09-26 04:01:19 +02:00
StarAppeal ef7c285dee add nginx and temporary client stuff for public url 2025-09-26 01:37:28 +02:00
StarAppeal 7b38ec1660 fix 2025-09-26 00:01:19 +02:00
StarAppeal 0aafe74a74 fix test 2025-09-25 23:16:23 +02:00
StarAppeal 2e06562af9 add s3Service rest api 2025-09-25 02:36:24 +02:00
StarAppeal 46b5845140 add mule and @ts-ignore where needed 2025-09-25 02:05:21 +02:00
StarAppeal 35fe178b02 create test for s3Service 2025-09-25 00:11:49 +02:00
StarAppeal 06cffcd7af refactoring, added s3Service.ts, add more depenedncy injection, fix tests as always i geuss 2025-09-24 23:55:05 +02:00
StarAppeal 5e9f3494e7 fix tests 2025-09-24 05:50:31 +02:00
StarAppeal cd38892d65 remove async updates (old functionality) 2025-09-20 23:10:34 +02:00
StarAppeal 6f7dc961f6 add weather polling service 2025-09-20 23:09:22 +02:00
StarAppeal d85ce74dbe add tests 2025-09-20 22:19:49 +02:00
StarAppeal 3621dcb87b fix tests 2025-09-20 22:01:11 +02:00
StarAppeal 22b5d7a4e4 major refactoring and use spotify polling service instead of update every second 2025-09-20 20:37:47 +02:00
StarAppeal 4bf62bbc83 refactoring to a server class 2025-09-19 23:44:42 +02:00
StarAppeal 65d87b77c6 inject SpotifyTokenService in relevant classes 2025-09-19 23:19:51 +02:00
StarAppeal 92bd66c6f3 bigger refactoring of database.service.ts 2025-09-19 22:49:56 +02:00
StarAppeal f866d2b5ab rename cookieJwtAuth to extractTokenFromCookie 2025-09-19 22:28:53 +02:00
StarAppeal 2fa3a3de78 small refactoring 2025-09-18 23:05:29 +02:00
StarAppeal 6aac43311a dependency injection for jwtAuthenticator 2025-09-18 22:26:38 +02:00
StarAppeal 075fafa122 add test for error handling 2025-09-18 21:45:57 +02:00
StarAppeal c7d4454359 refactor to inject userservice 2025-09-18 21:14:33 +02:00
StarAppeal da19a0aaf1 add isAdmin to secure specific endpoints 2025-09-15 20:54:19 +02:00
StarAppeal 6a9ffde9f6 better api 2025-09-13 12:12:38 +02:00
StarAppeal 9e63c9d33e use cookie to store the bearer token 2025-09-11 05:35:51 +02:00
StarAppeal 6bba31e575 add and change multiple vitests 2025-09-09 05:49:30 +02:00
StarAppeal 63d9c796f6 add comprehensive tests for db services and utils 2025-09-08 06:19:00 +02:00
StarAppeal 061338c91d add @vitest/coverage-v8 and update package-lock 2025-09-08 05:18:55 +02:00
StarAppeal bf8a19adb5 fix tests 2025-09-06 05:08:13 +02:00
StarAppeal 3a939c2b36 add validation middleware and improve REST API structure 2025-09-06 03:47:44 +02:00