-
-
Notifications
You must be signed in to change notification settings - Fork 596
v1.11.0 -- useMasterKey in beforeSave #524
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
Comments
Can you provide a code example please? |
@christianpbrink Are you using postgres or mongo? The |
The failing test with Postgres was just a flaky test. |
Sorry @flovilmart, I will try to get around to this. I've got other stuff on my plate today. It was happening on any use of Parse.Query.find or Parse.Query.first with {useMasterKey:true} inside a .beforeSave hook. |
What's interesting is that parse-server isn't released yet with the JS SDK at 1.11.0. |
Oh wait you mean that version of the JS SDK isn't even officially released yet? I had manually set a requirement for 1.11.0 in my project's package.json. Not sure where I got the idea that it was released. |
it is officially released, however, the Parse SDK dependency inside parse-server is not automatically updated as we pin all dependencies aggressively to prevent unexpected breaking changes. If you pinned the parse SDK in your package.json, it is probable that Cloud Code would run the parse SDK from the relative node modules folder, and not the one you pinned at the top level. You can easily check that the SDK is exposed at v1.11 by checking |
Hm. The problem definitely appeared as soon as I upped to 1.11.0 and vanished as soon as I reverted to 1.10.0. Of course it's possible this was due to some other change that I happened to make at the same time without noticing it. |
Perhaps the problem is that you're trying to use 2 versions of the Parse SDK within the same server. |
Oh snap. Very possible. I will keep that possibility in mind when I revisit this. Thanks for the thought. |
I’ll close this one, also, 1.11 didn’t provide any change into this area. Please reopen the issue if it persists after next parse-server version is released. |
It fails. Tells me the master key hasn't been provided. Never did this in previous versions; I've rolled back to 1.10.0 and it's working fine again.
The text was updated successfully, but these errors were encountered: