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

Let multiple installations be updates if no critical values are set #3040

Merged
merged 2 commits into from
Nov 28, 2016

Conversation

flovilmart
Copy link
Contributor

Fixes #2903
Fixes #3036

When sending push with badge, multiple installations may be updated, and blocked by the RESTWrite implementation.

This PR ensures that when not critical update is done to the _Installation, the safeguards are skipped.

@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@@ -567,6 +567,12 @@ RestWrite.prototype.handleInstallation = function() {
'must be specified in this operation');
}

// Updating _Installation but not updating anything critical
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

installationId could still be set on line 595 so should this check moved after that?

@flovilmart flovilmart force-pushed the fix/push-update-multiple branch from 734a75c to fc04692 Compare November 28, 2016 16:49
@facebook-github-bot
Copy link

@flovilmart updated the pull request - view changes

@flovilmart flovilmart merged commit 6676c6a into master Nov 28, 2016
@flovilmart flovilmart deleted the fix/push-update-multiple branch November 28, 2016 22:25
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Dec 3, 2016
…arse-community#3040)

* Let multiple installations be updates if no critical values are set

* nits
Jcarlosjunior pushed a commit to back4app/parse-server that referenced this pull request Dec 13, 2016
…arse-community#3040)

* Let multiple installations be updates if no critical values are set

* nits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants