-
-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Parse.Installation
not working when installation is deleted on server
#2126
Conversation
Thanks for opening this pull request! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #2126 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 61 64 +3
Lines 6186 6348 +162
Branches 1499 1505 +6
==========================================
+ Hits 6186 6348 +162 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Diamond Lewis <findlewis@gmail.com>
@mtrezza Conflicts have been resolve and this is ready for review. |
Parse.Installation
not working when installation is deleted on the serverParse.Installation
not working when installation is deleted on server
## [5.1.1-alpha.1](5.1.0...5.1.1-alpha.1) (2024-05-16) ### Bug Fixes * `Parse.Installation` not working when installation is deleted on server ([#2126](#2126)) ([22360b4](22360b4))
🎉 This change has been released in version 5.1.1-alpha.1 |
# [5.2.0-beta.1](5.1.0...5.2.0-beta.1) (2024-06-24) ### Bug Fixes * `LiveQueryClient.resubscribe` with Parse Server 7 causes many open connections ([#2184](#2184)) ([71b4d17](71b4d17)) * `Parse.Installation` not working when installation is deleted on server ([#2126](#2126)) ([22360b4](22360b4)) * Duplicate pending operations on nested fields ([#2162](#2162)) ([df6df7c](df6df7c)) ### Features * Support dot notation on array fields ([#2120](#2120)) ([25ec684](25ec684))
🎉 This change has been released in version 5.2.0-beta.1 |
# [5.2.0](5.1.0...5.2.0) (2024-06-29) ### Bug Fixes * `LiveQueryClient.resubscribe` with Parse Server 7 causes many open connections ([#2184](#2184)) ([71b4d17](71b4d17)) * `Parse.Installation` not working when installation is deleted on server ([#2126](#2126)) ([22360b4](22360b4)) * Dot notation on JSON arrays doesn't work on `PushStatus` offset fields ([#2194](#2194)) ([e0eb6f0](e0eb6f0)) * Duplicate pending operations on nested fields ([#2162](#2162)) ([df6df7c](df6df7c)) ### Features * Support dot notation on array fields ([#2120](#2120)) ([25ec684](25ec684))
🎉 This change has been released in version 5.2.0 |
Pull Request
Issue
The InstallationController never checks for server changes to object, so save() just fails since the local object has an id. And beyond cleaning the cache keys manually out of storage, there is no way to reset the installation locally.
Closes: #2124
Approach
Ensure a new installation is created if installation is not found on the server when fetching / saving. This approach was taken from the iOS SDK
Tasks