#1937 Attribute name changed from individualbiometrics to photo, #1941 added missing grant on table pms.user_details, #1957 Added declaredAsDeceased attribute#1958
Conversation
…vidualbiometrics to photo, gave GRANT permission on table pms.user_details , Added declaredAsDeceased Attribute to Default Auth Policy for CRVS Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
|
Warning Review limit reached
Next review available in: 37 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
WalkthroughThree SQL scripts change: one adds table privileges on ChangesPMS DB SQL Patches
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@db_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_rollback.sql`:
- Around line 36-40: The rollback update for pms.auth_policy is restoring an
incomplete policy document instead of the original pre-upgrade payload, so
mpolicy-default-auth remains altered after rollback. Update the SQL in the
rollback script’s UPDATE pms.auth_policy block to mirror the full canonical
policy_file_id exactly as it existed before the upgrade, including the missing
zone and preferredLang fields, while still removing only the declaredAsDeceased
change.
In `@db_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_upgrade.sql`:
- Around line 41-45: The UPDATE to pms.auth_policy is overwriting the canonical
mpolicy-default-auth payload instead of extending it, which drops existing
shareable attributes. In the auth policy upgrade block, rebuild the
policy_file_id value from the source payload used for mpolicy-default-auth and
include the missing zone and preferredLang fields along with the new
declaredAsDeceased attribute. Keep the change additive by updating only the
intended field set in the policy JSON and preserving the rest of the existing
structure.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 95f064a2-b701-4c14-9edf-3c6d694c5cdb
⛔ Files ignored due to path filters (3)
db_scripts/mosip_pms/dml/pms-auth_policy.csvis excluded by!**/*.csvdb_scripts/mosip_pms/dml/pms-auth_policy_h.csvis excluded by!**/*.csvdb_scripts/mosip_pms/dml/pms-partner_policy_bioextract.csvis excluded by!**/*.csv
📒 Files selected for processing (3)
db_upgrade_scripts/mosip_pms/sql/1.2.1.0_to_1.2.2.0_upgrade.sqldb_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_rollback.sqldb_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_upgrade.sql
Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@db_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_upgrade.sql`:
- Around line 47-51: The UPDATE in the upgrade script is targeting the
already-correct `partner_policy_bioextract` row for `id = '146098'`, so it does
not apply the intended contract change. Update the migration logic to modify the
row(s) whose `attribute_name` is still `individualBiometrics`, using the
`pms.partner_policy_bioextract` table and the existing `UPDATE` pattern with
`upd_by` and `upd_dtimes`, so the migration actually renames the persisted value
to `photo`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0c098ae3-0764-433f-9819-ef23ac6727bb
📒 Files selected for processing (2)
db_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_rollback.sqldb_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_upgrade.sql
🚧 Files skipped from review as they are similar to previous changes (1)
- db_upgrade_scripts/mosip_pms/sql/1.3.0-beta.5_to_1.3.0_rollback.sql
Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
Signed-off-by: Chetan Kumar Hirematha <chetankumar.h.239@gmail.com>
#1937 Attribute name changed from individualbiometrics to photo,
#1941 added missing grant on table pms.user_details,
#1957 Added declaredAsDeceased attribute
Summary by CodeRabbit