Conversation
mbrandonw
commented
Dec 18, 2025
Comment on lines
+95
to
+96
| /// This method can be called many times, and so you will want to de-duplicate the | ||
| /// `quotaExceeded` boolean so as to not alert your users multiple times. |
Member
Author
There was a problem hiding this comment.
I wonder if we should also have a quotaExceeded: Bool observable value on the SyncEngine? That would allow showing/hiding a banner in the UI.
Member
Author
|
I'm converting this to a draft because currently I'm not entirely sure how we can be notified of |
mbrandonw
commented
Dec 19, 2025
Comment on lines
+102
to
+106
| func syncEngine( | ||
| _ syncEngine: SyncEngine, | ||
| quotaExceeded: Bool, | ||
| scope: CKDatabase.Scope | ||
| ) |
Member
Author
There was a problem hiding this comment.
Should we surface the record/participant/CKShare that is responsible for the error?
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.
If the user runs out of iCloud storage, saving records will report a
.quotaExceedederror. Currently we are not handling that error correctly. Those updates will never be retried again later (unless the record happens to be edited later). And there is currently no way for the user of our library to be notified of such errors so that they can let the user know that there is something for them to fix. This PR addresses both of those problems:.quotaExceedederror we not save the record ID to thePendingRecordZoneChangestable, which means they will be re-enqueued whenever the sync engine starts again. This will give the records a chance to save again at a later time.sendChangesmethod is every explicitly called on the sync engine..quoteExceedederror.