Docs: record content-based CloudKit subscription uniqueness finding (#387)#416
Conversation
…387) Empirical probing shows CloudKit enforces subscription uniqueness on (recordType, firesOn), not subscriptionID; duplicates surface as a misleading INTERNAL_ERROR. Captures how MistKit infers this via the hedged isLikelyDuplicate hint / subscriptionLikelyDuplicate error. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
Review: Docs — subscription-uniqueness findings (#416)This PR adds a documentation subsection describing CloudKit's undocumented subscription-uniqueness behavior ( 1. Wrong error surface described —
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## v1.0.0-beta.3 #416 +/- ##
==================================================
- Coverage 71.82% 11.52% -60.31%
==================================================
Files 168 168
Lines 3844 3844
==================================================
- Hits 2761 443 -2318
- Misses 1083 3401 +2318
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Documentation-only. Captures the empirical finding that CloudKit enforces subscription uniqueness on
(recordType, firesOn), notsubscriptionID; duplicates surface as a misleadingINTERNAL_ERROR("could not find subscription we just created") with no formal CONFLICT/EXISTS code.Added a subsection to the
HandlingErrors.mddocc article documenting the behavior and how MistKit infers it via the hedgedisLikelyDuplicatehint /subscriptionLikelyDuplicateerror (the API itself already landed); batchmodifySubscriptionsstill returns raw failures viaSubscriptionResult.failure.Closes #387.