fix id dropdown incorrectly showing wrong values in program create wizard#167
Merged
anthonymarkQA merged 1 commit into19.0from Apr 27, 2026
Merged
fix id dropdown incorrectly showing wrong values in program create wizard#167anthonymarkQA merged 1 commit into19.0from
anthonymarkQA merged 1 commit into19.0from
Conversation
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 19.0 #167 +/- ##
=======================================
Coverage 71.46% 71.46%
=======================================
Files 932 932
Lines 54846 54846
=======================================
Hits 39198 39198
Misses 15648 15648
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review
This pull request updates the id_type_id field in both BaseEntitlementManager and create_program_wizard to use the spp.vocabulary.code model with a domain filter, replacing the previous spp.id.type model. Additionally, the module version has been incremented. I have no feedback to provide.
gonzalesedwin1123
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix id dropdown incorrectly showing wrong values in program create wizard
Why is this change needed?
The id_type_id field on both the entitlement manager base and the program creation wizard incorrectly referenced spp.id.type instead of spp.vocabulary.code. Since spp.registry.id records store their id_type_id as spp.vocabulary.code, the ID lookup filter at entitlement preparation time always compared IDs across two different tables, causing it to return empty results — meaning id_number was never stamped on the entitlement. With spp_dci installed, the dropdown in the wizard also showed civil registry codes (BRN, DRN, MRN, UIN) instead of identity document types (National ID, Passport, etc.).
How was the change implemented?
No changes were needed to the lambda filters in the cash, in-kind, or default entitlement managers — once both sides of the comparison use spp.vocabulary.code, they work correctly.
New unit tests
Unit tests executed by the author
How to test manually
Related links
ticket #945