Skip to content
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

Merged
merged 5 commits into from
May 16, 2024

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented May 15, 2024

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

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)

Copy link

Thanks for opening this pull request!

Copy link

codecov bot commented May 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b50790a) to head (c93cdf1).
Report is 40 commits behind head on alpha.

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.
📢 Have feedback on the report? Share it here.

@dplewis dplewis requested a review from a team May 15, 2024 05:41
@dplewis
Copy link
Member Author

dplewis commented May 16, 2024

@mtrezza Conflicts have been resolve and this is ready for review.

@mtrezza mtrezza changed the title fix: Parse.Installation not working when installation is deleted on the server fix: Parse.Installation not working when installation is deleted on server May 16, 2024
@mtrezza mtrezza merged commit 22360b4 into parse-community:alpha May 16, 2024
10 of 11 checks passed
parseplatformorg pushed a commit that referenced this pull request May 16, 2024
## [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))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 5.1.1-alpha.1

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state:released-alpha Released as alpha version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parse.Installation doesn't handle deleted Installation objects on server
3 participants