Repository navigation
feat: implement global response advice and refine repository workflows - #341
Conversation
- Add GlobalResponseBodyAdvice to automatically wrap REST API success responses in the standard ApiResponse envelope. - Refactor CurrencyController to return raw DTOs directly, removing manual wrapping boilerplate. - Add @order(Ordered.HIGHEST_PRECEDENCE) to global exception advisers to override Spring's default ProblemDetailsExceptionHandler. - Remove redundant @ResponseStatus annotations from exception handler methods returning ResponseEntity. - Add structured pull_request_template.md and configure domain boundaries in CODEOWNERS. - Refactor release.yml to use robust SemVer tag sorting. Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (17)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdds global response wrapping, restructures exception handling around typed error codes, updates authentication flows to use the new error model, and changes release workflow tag logic plus repository ownership and PR template files. ChangesResponse wrapping and business errors
CI and repository governance
Estimated code review effort: 5 (Critical) | ~120 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
- Update ErrorCode enum to define fallback system, authorization, and promo-code codes. - Refactor BusinessException to support getErrorCodeEnum() and getErrorCode() for backward compatibility. - Update custom exception classes to extend BusinessException. - Consolidate individual custom exception handlers in GlobalExceptionHandler into a single @ExceptionHandler(BusinessException.class). Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
Summary by CodeRabbit