Mathis HERRIOT
f8eaad3f81
test(api-keys): improve typings in wrapWithThen mock implementation
CI/CD Pipeline / Valider backend (push) Failing after 1m2s
CI/CD Pipeline / Valider documentation (push) Successful in 1m34s
CI/CD Pipeline / Valider frontend (push) Successful in 1m32s
CI/CD Pipeline / Déploiement en Production (push) Has been skipped
2026-01-20 15:27:25 +01:00
Mathis HERRIOT
5f176def8c
test(auth): add comment to clarify DTO usage in register test
2026-01-20 15:27:14 +01:00
Mathis HERRIOT
9ef6bbfd96
test(categories): improve typings in wrapWithThen mock implementation
2026-01-20 15:27:05 +01:00
Mathis HERRIOT
61b25f7b9e
test(favorites): improve typings in wrapWithThen mock implementation
2026-01-20 15:26:56 +01:00
Mathis HERRIOT
d0286d51ff
test(reports): update wrapWithThen mock to use stricter typings
2026-01-20 15:26:30 +01:00
Mathis HERRIOT
2291cc8afb
test(repositories): fix mock implementation of thenable query builders in repository tests
CI/CD Pipeline / Valider backend (push) Failing after 1m13s
CI/CD Pipeline / Valider frontend (push) Successful in 1m40s
CI/CD Pipeline / Valider documentation (push) Successful in 1m43s
CI/CD Pipeline / Déploiement en Production (push) Has been skipped
2026-01-20 14:04:57 +01:00
Mathis HERRIOT
ac4568a0f0
refactor(media): simplify content type assignment logic in media controller
2026-01-20 13:48:16 +01:00
Mathis HERRIOT
a11a332eaa
feat(health): enhance health check to include database and Redis status
2026-01-20 13:48:06 +01:00
Mathis HERRIOT
02c00e8aae
test(auth): add unit tests for various guards and services with mocked dependencies
2026-01-20 13:47:46 +01:00
Mathis HERRIOT
2886e50a0c
test(users): add unit tests for UsersService with mocked dependencies
2026-01-20 13:47:18 +01:00
Mathis HERRIOT
59a5cc941e
test(reports): add unit tests for ReportsController and ReportsRepository with mocked dependencies
2026-01-20 13:47:06 +01:00
Mathis HERRIOT
78db4b1c34
test(reports): add unit tests for ReportsController and ReportsRepository with mocked dependencies
2026-01-20 13:46:59 +01:00
Mathis HERRIOT
b177bee75c
test(favorites): add unit tests for FavoritesController and FavoritesRepository with mocked dependencies
2026-01-20 13:46:42 +01:00
Mathis HERRIOT
0cd6509273
test(contents): add unit tests for ContentsController and ContentsService with mocked dependencies
2026-01-20 13:46:31 +01:00
Mathis HERRIOT
05a56ff87d
test(categories): add unit tests for CategoriesController and CategoriesRepository with mocked dependencies
2026-01-20 13:46:06 +01:00
Mathis HERRIOT
3fa11474c1
test(auth): add unit tests for AuthGuard and AuthController with mocked dependencies
2026-01-20 13:45:50 +01:00
Mathis HERRIOT
4c12c5c5cb
test(api-keys): add unit tests for ApiKeysController and ApiKeysRepository with mocked dependencies
2026-01-20 13:45:27 +01:00
Mathis HERRIOT
48dbdbfdcc
test(admin): add unit tests for AdminService with mocked repositories
2026-01-20 13:45:07 +01:00
Mathis HERRIOT
002a6b912a
test(admin): add unit tests for AdminController with mocked dependencies
2026-01-20 13:44:35 +01:00
Mathis HERRIOT
4700526dd2
refactor(media): remove redundant metadata fallback for content-type
CI/CD Pipeline / Valider backend (push) Failing after 1m9s
CI/CD Pipeline / Valider frontend (push) Successful in 1m37s
CI/CD Pipeline / Valider documentation (push) Successful in 1m40s
CI/CD Pipeline / Déploiement en Production (push) Has been skipped
2026-01-20 12:06:20 +01:00
Mathis HERRIOT
2450977e61
chore(versioning): bump package versions to 0.1.0 across all modules
CI/CD Pipeline / Valider backend (push) Failing after 1m12s
CI/CD Pipeline / Valider documentation (push) Successful in 1m41s
CI/CD Pipeline / Valider frontend (push) Successful in 1m43s
CI/CD Pipeline / Déploiement en Production (push) Has been skipped
2026-01-20 12:00:35 +01:00
Mathis HERRIOT
39618f7708
chore(versioning): bump package versions to 0.0.1 across all modules
Deploy to Production / Validate Build & Lint (backend) (push) Failing after 1m12s
Deploy to Production / Validate Build & Lint (documentation) (push) Successful in 1m46s
Deploy to Production / Validate Build & Lint (frontend) (push) Successful in 1m46s
Deploy to Production / Deploy to Production (push) Has been skipped
2026-01-20 10:53:11 +01:00
Mathis HERRIOT
597a4d615e
Changement système de branches: passage à main et unification des versions via CMake
Lint / lint (backend) (push) Successful in 1m18s
Backend Tests / test (push) Successful in 1m18s
Lint / lint (documentation) (push) Successful in 1m18s
Lint / lint (frontend) (push) Successful in 1m15s
2026-01-20 10:39:53 +01:00
Mathis HERRIOT
2df45af305
style(logging): reformat hashed IP computation for improved readability
Lint / lint (documentation) (push) Successful in 1m18s
Lint / lint (backend) (push) Successful in 1m21s
Backend Tests / test (push) Successful in 1m23s
Lint / lint (frontend) (push) Successful in 1m10s
Lint / lint (backend) (pull_request) Successful in 1m20s
Lint / lint (documentation) (pull_request) Successful in 1m22s
Backend Tests / test (pull_request) Successful in 1m24s
Lint / lint (frontend) (pull_request) Successful in 1m10s
2026-01-20 10:01:40 +01:00
Mathis HERRIOT
863a4bf528
style(app): reformat middleware configuration for improved readability
Lint / lint (backend) (push) Failing after 52s
Backend Tests / test (push) Successful in 1m15s
Lint / lint (frontend) (push) Successful in 1m10s
Lint / lint (documentation) (push) Successful in 2m39s
2026-01-20 09:58:10 +01:00
Mathis HERRIOT
9a1cdb05a4
fix(auth): adjust 2FA verification log formatting for consistency
2026-01-20 09:57:59 +01:00
Mathis HERRIOT
28caf92f9a
fix(media): update S3 file info type casting for stricter type safety
...
Replace `any` with `BucketItemStat` for `getFileInfo` response in MediaController to ensure accurate type definition.
2026-01-20 09:57:38 +01:00
Mathis HERRIOT
8b2728dc5a
test(s3): update mock implementation types for stricter type safety
...
Refactor mock implementations in S3 service tests to replace `any` with `unknown` for improved type safety and consistency.
2026-01-20 09:57:27 +01:00
Mathis HERRIOT
3bbbbc307f
test(media): fix type casting in MediaController unit tests
...
Update type casting for `Response` object in MediaController tests to use `unknown as Response` for stricter type safety. Remove unused `s3Service` variable for cleanup.
2026-01-20 09:57:11 +01:00
Mathis HERRIOT
f080919563
fix(logging): resolve type issue in hashed IP logging
...
Ensure `ip` parameter is explicitly cast to string before creating a SHA-256 hash to prevent runtime errors.
2026-01-20 09:56:44 +01:00
Mathis HERRIOT
edc1ab2438
feat(logging): introduce HTTP logging middleware
...
Lint / lint (backend) (push) Failing after 2m22s
Backend Tests / test (push) Successful in 2m47s
Lint / lint (documentation) (push) Successful in 1m11s
Lint / lint (frontend) (push) Successful in 1m9s
Add middleware to log HTTP request and response details, including method, URL, status, duration, user agent, and hashed IP address. Logs categorized by severity based on response status code.
2026-01-20 09:45:06 +01:00
Mathis HERRIOT
01b66d6f2f
feat(logging): enhance exception filter with user context in logs
...
Integrate user context (`userId`) into exception filter logging for improved traceability. Adjust log messages to include `[User: <ID>]` when user data is available.
2026-01-20 09:44:57 +01:00
Mathis HERRIOT
9a70dd02bb
feat(s3): add detailed logging for upload and delete operations
2026-01-20 09:44:45 +01:00
Mathis HERRIOT
e285a4e634
feat(auth): add detailed logging for login and 2FA operations
...
Introduce warnings for failed login attempts and invalid 2FA tokens. Add logs for successful logins and 2FA requirements to improve authentication traceability.
2026-01-20 09:44:12 +01:00
Mathis HERRIOT
f247a01ac7
feat(middleware): add HTTP logging middleware to application configuration
2026-01-20 09:43:52 +01:00
Mathis HERRIOT
c1118e9f25
test(s3): fix formatting of mock implementation in unit tests
Backend Tests / test (push) Successful in 1m10s
Lint / lint (backend) (push) Successful in 1m7s
Lint / lint (documentation) (push) Successful in 1m8s
Lint / lint (frontend) (push) Successful in 1m6s
Backend Tests / test (pull_request) Successful in 1m10s
Lint / lint (backend) (pull_request) Successful in 1m7s
Lint / lint (documentation) (pull_request) Successful in 1m6s
Lint / lint (frontend) (pull_request) Successful in 1m7s
2026-01-15 00:44:55 +01:00
Mathis HERRIOT
eae1f84b92
ci(docker): optimize Dockerfiles with pnpm and build cache integration
...
Switch to `node:22-alpine` for smaller base images. Introduce pnpm cache mounts and utilize `--frozen-lockfile` for faster and more reliable builds. Add Next.js build cache optimizations for `frontend` and `documentation`.
2026-01-15 00:44:44 +01:00
Mathis HERRIOT
8d27532dc0
feat(s3): enhance logging and public URL generation
...
Backend Tests / test (push) Successful in 1m11s
Lint / lint (backend) (push) Failing after 46s
Lint / lint (documentation) (push) Successful in 1m7s
Lint / lint (frontend) (push) Has been cancelled
Add detailed logging for S3 uploads in user and content services. Improve public URL generation logic in `S3Service` by providing better handling for `API_URL`, `DOMAIN_NAME`, and `PORT`. Update relevant tests to cover all scenarios.
2026-01-15 00:40:36 +01:00
Mathis HERRIOT
7048c2731e
fix(media): correct route param handling in media controller
...
Backend Tests / test (push) Successful in 1m48s
Lint / lint (backend) (push) Successful in 1m7s
Lint / lint (documentation) (push) Successful in 1m7s
Lint / lint (frontend) (push) Successful in 1m8s
Backend Tests / test (pull_request) Successful in 1m10s
Lint / lint (backend) (pull_request) Successful in 1m8s
Lint / lint (documentation) (pull_request) Successful in 1m7s
Lint / lint (frontend) (pull_request) Successful in 1m9s
Adjust `@Get` decorator route pattern to properly handle file keys with special characters.
2026-01-14 23:51:24 +01:00
Mathis HERRIOT
38adbb6e77
feat(media): add public URL generation for media files and improve S3 integration
...
Introduce `getPublicUrl` in `S3Service` for generating public URLs. Replace custom file URL generation logic across services with the new method. Add media controller for file streaming and update related tests. Adjust frontend to display user roles instead of email in the sidebar. Update environment schema to include optional `API_URL`. Fix help page contact email.
2026-01-14 23:13:28 +01:00
Mathis HERRIOT
4ca15b578d
refactor(modules): mark DatabaseModule and CryptoModule as global and remove redundant imports
...
Backend Tests / test (push) Has been cancelled
Lint / lint (push) Has been cancelled
Optimize module imports by marking `DatabaseModule` and `CryptoModule` as global. Remove explicit imports from other modules to reduce duplication and improve maintainability. Update environment variable limits for image and GIF sizes in production.
2026-01-14 22:50:30 +01:00
Mathis HERRIOT
db17994bb5
fix(test): update transformIgnorePatterns to include .pnpm and uuid dependencies
Backend Tests / test (push) Successful in 9m42s
Lint / lint (push) Successful in 9m37s
2026-01-14 22:19:47 +01:00
Mathis HERRIOT
f57e028178
refactor(reports): add as const to test data in reports.service.spec.ts
2026-01-14 22:19:27 +01:00
Mathis HERRIOT
2fedaca502
refactor(app): reorder imports in app.module.ts for consistency and readability
2026-01-14 22:00:16 +01:00
Mathis HERRIOT
a6837ff7fb
refactor(auth): reorder imports in optional-auth.guard.ts for consistency and readability
2026-01-14 22:00:10 +01:00
Mathis HERRIOT
74b61004e7
refactor(auth): rename id to uuid in AuthStatus and mock uuid in tests
2026-01-14 21:59:51 +01:00
Mathis HERRIOT
14f8b8b63d
refactor(contents): reorder imports and improve code formatting
...
Standardize import order in `contents.controller.ts` and related files for better code readability. Adjust SQL formatting in repository methods for consistency.
2026-01-14 21:58:52 +01:00
Mathis HERRIOT
50a186da1d
refactor(core): standardize and reorder imports across admin services and modules
...
Optimize the structure and readability of import statements in `admin` services, modules, and controllers. Ensure consistency and logical grouping for improved maintainability.
2026-01-14 21:58:41 +01:00
Mathis HERRIOT
3908989b39
feat(users): enhance user schema and extend service dependencies
...
Add `email` and `status` fields to user schema for better data handling. Update `UsersService` with new service dependencies (`RbacService`, `MediaService`, `S3Service`, `ConfigService`) for enhanced functionality. Mock dependencies in tests for improved coverage. Adjust user model with optional and extended fields for flexibility. Streamline and update import statements.
2026-01-14 21:58:28 +01:00
Mathis HERRIOT
65f8860cc0
feat(auth): add optional authentication guard and extend AuthModule providers
...
Backend Tests / test (push) Failing after 5m0s
Lint / lint (push) Failing after 5m2s
Introduce `OptionalAuthGuard` to allow conditional authentication for routes. Update `AuthModule` to include `AuthGuard`, `OptionalAuthGuard`, and `RolesGuard` in providers and exports for broader reuse.
feat(app): integrate `AdminModule` into app module
Add `AdminModule` to the app's main module to enable administration functionalities.
feat(users): enhance user profiles with bio and avatar fields
Extend `UpdateUserDto` to include optional `bio` and `avatarUrl` fields for better user customization.
feat(categories): add functionality to count all categories
Implement `countAll` method in `CategoriesRepository` to fetch the total number of categories using raw SQL counting.
2026-01-14 21:45:32 +01:00