Repository navigation
fix(dashpay): keep the unfinished top-up predicate type-checkable on Xcode 26 - #1198
Conversation
…Xcode 26 The compound #Predicate in hasUnfinishedIdentityTopUp fails with "unable to type-check this expression in reasonable time" on Xcode 26.6, which is what the TestFlight workflow builds with. Fetch by wallet only and apply the status and funding-type conditions in Swift; the result is unchanged. Closes #1197 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d only the fields read Review follow-up: reuse PersistentAssetLock.predicate(walletId:), limit the fetch to the three fields the filter reads, and name the raw discriminants. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…us; drop propertiesToFetch The asset-lock table is tiny and propertiesToFetch does not spare the object. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 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 identity top-up check now fetches asset-lock rows with a wallet-only predicate. It applies funding type, status, and identity-index checks in Swift. ChangesIdentity top-up check
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to Status, funding-type, and identity checks now run in Swift after the fetch, and the implicated compound predicate is gone. No specific merge-blocking failure is established, though the SDK predicate implementation and a successful Xcode 26.6 archive were unavailable for confirmation. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
|
✅ Final review complete — no blockers (commit 61573a4) · triage: low |
llbartekll
left a comment
There was a problem hiding this comment.
Built the PR head (61573a4) locally with Xcode 26.6 (17F113), dashpay scheme, arm64 simulator, against platform c83c2c05e7: BUILD SUCCEEDED, so the #Predicate type-check failure from #1197 is gone on the toolchain TestFlight uses.
Checked the filter against the old inline predicate: status 1...3 via the app's AssetLockStatus (broadcast=1 … chainLocked=3, Int raw), funding type 1 (identityTopUp, matched against the identity's index or any when unknown) and 2 (identityTopUpNotBound, always matches), everything else excluded. Same result for every status / funding-type combination; PersistentAssetLock.predicate(walletId:) is the SDK's indexed per-wallet scan. Both callers in CreateUsernameViewModel are unchanged.
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Phase 1 + Phase 2
The wallet-scoped SDK fetch and subsequent Swift filtering preserve the original pending-status, funding-type, and identity-matching conditions; static inspection found no introduced defects. Exact-head title and accessibility checks passed in the supplied CI snapshot. Xcode 26.6 archive validation remains unconfirmed: the cited TestFlight run is still in progress and reports the base SHA rather than the reviewed head.
Review provenance
Source: reviewer 1: gemini-3.8-flash-high (agent: phase1-reviewer, role: general); reviewer 2: gpt-6.1-sol (agent: phase2-reviewer, role: general); final verifier: gpt-6.1-sol (agent: sol-verifier, role: final-verifier)
- Triage:
lowbygpt-6.1-sol(effort low) — This small, single-function change replaces a compound SwiftData predicate with a wallet predicate and equivalent in-memory filtering to avoid a compiler type-checking failure. - Phase 1 reviewers:
gemini-3.8-flash-high— general (completed, effort high); agentphase1-reviewer - Phase 1 model:
gemini-3.8-flash-high— antigravity quota: weekly 96% left, 5h 83% left - Fresh verifier:
gpt-6.1-sol— final-verifier; agentsol-verifier - Phase 2 reviewers:
gpt-6.1-sol— general (completed, effort medium); agentphase2-reviewer
Issue being fixed or feature implemented
developdoes not archive on Xcode 26.6, which is what the TestFlight workflow builds with. The#PredicateinDWIdentityRegistrationCoordinator.hasUnfinishedIdentityTopUp(added with #1141) fails with "the compiler is unable to type-check this expression in reasonable time". The 9.1.3 release-candidate run fromdevelopstopped there: https://github.com/dashpay/dashwallet-ios/actions/runs/37793268497Closes #1197
What was done?
PersistentAssetLock.predicate(walletId:)instead of a compound inline#Predicate.AssetLockStatus.Not changed, present before this PR: a failed fetch still returns
false(try?), and an identity whose row is not found still matches a top-up lock of any identity in the wallet.How Has This Been Tested?
internal-onlyrun from this branch — https://github.com/dashpay/dashwallet-ios/actions/runs/37803802235 (queued at the time of writing).#Predicatebodies in the app; the failed run reported no error outside this function.Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
🤖 Generated with Claude Code
Summary by CodeRabbit