You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
merge: PR #48 from sameboat-platform/chore/release-0.1.1
This pull request introduces version bump automation scripts for easier releases, updates the project version to v0.1.1, and documents the new release in CHANGELOG.md. The changes streamline the release workflow and improve changelog clarity for the new backend wrap-up milestone.
@@ -15,6 +27,12 @@ All notable changes to this project will be documented in this file.
15
27
-`prod`: Postgres/Neon, secure cookies (domain + `Secure=true`), explicit CORS allowlist.
16
28
- CORS configuration via `CorsConfig` and Security chain `.cors()`; credentials enabled and origins restricted to configured list.
17
29
- CI release job on tag push (`v*`): builds JAR and attaches it to a GitHub Release using `softprops/action-gh-release@v1`.
30
+
-`ResourceNotFoundException` mapped by `GlobalExceptionHandler` to HTTP 404 with error code `NOT_FOUND`; service methods use throw-or-404 semantics for true missing cases.
31
+
- Focused tests for error envelopes:
32
+
-`NOT_FOUND` (404) mapping from service-thrown exception
33
+
-`BAD_REQUEST` (400) mapping for `IllegalArgumentException`
34
+
- Gated user read endpoint `GET /users/{id}` returning `PublicUserDto` (no email); enabled only when `sameboat.endpoints.user-read=true`. Access allowed to self or `ADMIN`.
35
+
- OpenAPI spec updates: reusable `ErrorResponse` schema with current error codes; documented `/api/version` response.
18
36
19
37
### Changed
20
38
-`README.md`: Documented password policy, `RATE_LIMITED` error code, and updated sample passwords; linked to new docs.
@@ -23,8 +41,10 @@ All notable changes to this project will be documented in this file.
23
41
-`CONTRIBUTING.md`: Included `RATE_LIMITED` in error codes and noted password complexity under security.
24
42
- Unified Actuator base path to `/actuator` across profiles; health and info remain exposed publicly via security rules. Legacy `/api/actuator/*` references were removed from tests/config where applicable.
- Input validation tightened on auth payloads (`@Valid` + Bean Validation). Validation errors are mapped by `GlobalExceptionHandler` to `400` with `{"error":"VALIDATION_ERROR"}`.
44
+
- Input validation tightened on auth payloads (`@Valid` + Bean Validation). Validation errors are mapped by `GlobalExceptionHandler` to `400` with `{"error":"VALIDATION_ERROR"}`.
27
45
- Documentation updates for profile usage, CORS, cookies, and deployment notes (Render/Neon).
46
+
- README Week 4 highlights added; error catalog includes `NOT_FOUND`; Windows `mvn` usage note for quoted properties on cmd.exe.
47
+
- Logging: `AuthController.rateLimited(key)` now logs the rate limit key centrally; removed redundant branch logging.
28
48
29
49
### Fixed
30
50
- Session pruning ClassCastException by replacing derived delete with explicit JPQL bulk delete method and using `@Transactional` in pruner.
@@ -44,8 +64,9 @@ All notable changes to this project will be documented in this file.
44
64
45
65
46
66
---
47
-
Reference: See `docs/weekly-plan/week-3/week-3-checkout-backend.md`for a narrative weekly summary.
67
+
Reference: See `docs/weekly-plan/week-3/week-3-checkout-backend.md`and `docs/weekly-plan/week-4/week-4-checkout-backend.md` for narrative weekly summaries.
0 commit comments