Fix logins claims update error - #2304
Conversation
…update for the $logins table - it tried to clear out "claims.sub" from the changeSpec. Because delByKeyPath has a bug in earlier versions of dexie (now solved), this could lead to that the changeSpec got {claims: {}} in it which led to that the actual inline primary key was changed to undefined - causing:
DataError Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path did not yield a value.
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR refines primary key removal logic in Dexie Cloud's server change application and releases the fix as version 4.4.13. The ChangesPrimary key removal fix and release
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
DataError after updating a user in dexie cloud when that user got an update for the $logins table - it tried to clear out "claims.sub" from the changeSpec. Because delByKeyPath has a bug in earlier…] versions of dexie (now solved), this could lead to that the changeSpec got {claims: {}} in it which led to that the actual inline primary key was changed to undefined - causing:
DataError Failed to execute 'put' on 'IDBObjectStore': Evaluating the object store's key path did not yield a value.
Summary by CodeRabbit
Chores
Bug Fixes