-
Notifications
You must be signed in to change notification settings - Fork 30
Cherry-pick the commits related to 3.5.0 form 3.6.0 #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughUpdates project version to 3.5.0, refines EmployeeSignatureController mappings and response handling, adds an activation/deactivation endpoint, introduces a service method to update signature status, adjusts repository primary key type to Integer, and makes a minor formatting cleanup in EmployeeMasterController. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Client
participant API as EmployeeSignatureController
participant SVC as EmployeeSignatureServiceImpl
participant REPO as EmployeeSignatureRepo
Client->>API: POST /signature/activate { userID, active }
API->>SVC: updateUserSignatureStatus(activateUser JSON)
SVC->>REPO: findByUserId(userID)
alt Signature found
SVC->>SVC: set deleted = !active
SVC->>REPO: save(signature)
REPO-->>SVC: updated signature
SVC-->>API: updated signature
API-->>Client: 200 OK { userID, active }
else Not found
SVC-->>API: throw not found
API-->>Client: 404/400 with error
end
sequenceDiagram
autonumber
actor Client
participant API as EmployeeSignatureController
participant REPO as EmployeeSignatureRepo
Client->>API: GET /signature/{id}
API->>REPO: fetch signature bytes + metadata
REPO-->>API: content, mimeType, filename
API->>API: parse MediaType or fallback to application/octet-stream
API->>API: set Content-Disposition with UTF-8 filename
API-->>Client: 200 OK (bytes, content-type, length, headers)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (2)
src/main/java/com/iemr/admin/controller/employeemaster/EmployeeMasterController.java (1)
1054-1054: Superfluous whitespacePlease drop the extra blank line to keep formatting tidy.
src/main/java/com/iemr/admin/controller/employeemaster/EmployeeSignatureController.java (1)
24-51: Remove unused importsURLEncoder was added but isn’t used. Please clean it up.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
pom.xml(1 hunks)src/main/java/com/iemr/admin/controller/employeemaster/EmployeeMasterController.java(1 hunks)src/main/java/com/iemr/admin/controller/employeemaster/EmployeeSignatureController.java(4 hunks)src/main/java/com/iemr/admin/repository/user/UserLoginRepo.java(1 hunks)src/main/java/com/iemr/admin/service/employeemaster/EmployeeSignatureServiceImpl.java(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
src/main/java/com/iemr/admin/controller/employeemaster/EmployeeSignatureController.java (1)
src/main/java/com/iemr/admin/utils/response/OutputResponse.java (1)
OutputResponse(38-233)
🔇 Additional comments (1)
pom.xml (1)
8-8: Version bump matches release objectiveProject version updated to 3.5.0 — aligns with the stated cherry-pick goal.
src/main/java/com/iemr/admin/repository/user/UserLoginRepo.java
Outdated
Show resolved
Hide resolved
src/main/java/com/iemr/admin/service/employeemaster/EmployeeSignatureServiceImpl.java
Show resolved
Hide resolved
|



📋 Description
JIRA ID:
Commiting code required for 3.5.0 from 3.6.0
Summary by CodeRabbit
New Features
Bug Fixes
Chores