-
Notifications
You must be signed in to change notification settings - Fork 6
Added new authority for client management (#9184) #570
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
Added new authority for client management (#9184) #570
Conversation
WalkthroughThis pull request adds a new Liquibase database changelog that introduces a new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
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: 0
🧹 Nitpick comments (2)
dao/src/main/resources/db/changelog/logs/ch-add-client-edit-authority-Zadyraichuk.xml (1)
5-28: Document the rationale for hard-coded IDs.The changesets use several hard-coded database IDs:
- Authority ID: 36
- Position IDs: 6 and 7 (lines 14, 18)
- User ID: 2 (line 25, for the pickup employee)
Hard-coded IDs can become maintenance issues if the database schema evolves (e.g., if authorities or positions are added/removed/reordered). Consider adding inline comments explaining:
- Why authority ID 36 was chosen (is it the next available ID?)
- Which positions are 6 and 7, and why they need EDIT_CLIENT authority
- Why user ID 2 is the pickup employee (and whether this assumption holds across deployments)
Alternatively, if these are conventions known to your team, document them in the PR description or in a schema diagram.
dao/src/main/resources/db/changelog/db.changelog-master.xml (1)
41-41: Path format inconsistency in include statement.The new include statement (line 41) uses the format
db/changelog/logs/...without a leading slash, which is consistent with most other includes. However, lines 24 and 29 use a leading slash (/db/changelog/logs/...). While both formats may work, this inconsistency could be a minor maintenance concern.Consider verifying whether path formats are standardized in this project, and align the new include accordingly if needed.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
dao/src/main/resources/db/changelog/db.changelog-master.xml(1 hunks)dao/src/main/resources/db/changelog/logs/ch-add-client-edit-authority-Zadyraichuk.xml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build
🔇 Additional comments (1)
dao/src/main/resources/db/changelog/logs/ch-add-client-edit-authority-Zadyraichuk.xml (1)
5-21: No action required — column names verified.
positions_authorities_mapping defines "authorities_id" (ch-add-table-positions-authorities-mapping-Korzh.xml) and employee_authorities_mapping defines "authority_id" (ch-changed-user-role-to-varchar.xml / ch-insert-into-employee-authority-mapping-Korzh.xml); the inserts in ch-add-client-edit-authority-Zadyraichuk.xml use the correct column names.



Changed:
Summary by CodeRabbit