Repository navigation
trivial(app): read end-user context system labels as int[] - #4450
Conversation
Dapper 2.1.86 stopped assigning an integer[] column to an enum array property (DapperLib/Dapper#2228, reported upstream as DapperLib/Dapper#2231), so SearchDialogEndUserContextsAsServiceOwner throws "Object must implement IConvertible" on every row. Reading the column as int[] and converting in the projection works on both the current and newer Dapper versions.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Altinn/dialogporten/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe search repository now represents database system-label IDs as integers in the raw row and converts them to ChangesSystem label mapping
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The returned labels preserve the intended values; no actionable merge-blocking risk remains in the reviewed change. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the Dapper issue, the code change, the compatibility result, and the related issue. It does not include the required Verification or Documentation sections, and it does not provide checklist status for builds, manual testing, automated tests, or database changes.
✨ 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 |
|



Dapper 2.1.86+ no longer assigns an
integer[]column to an enum array property (DapperLib/Dapper#2228, reported as DapperLib/Dapper#2231), soSearchDialogEndUserContextsAsServiceOwnerthrows on every row and 6SearchDialogEndUserContextTestsfail on #4445. Reading the column asint[]and casting in the projection works on both 2.1.79 and 2.1.89, with no change to the returned DTO.Related to #4445.