GithubHelp home page GithubHelp logo

Comments (4)

stanleyw avatar stanleyw commented on July 20, 2024

Currently this is not supported by webhooks. The dirty keys are not passed to webhooks by the Parse backend according to the current spec (https://www.parse.com/docs/js/guide#cloud-code-advanced-beforesave-webhooks), so the JS SDK can't populate this field in Node.js.

However, we are always looking to improve the platform. Could you talk more about your use case and why you need this information?

from parse-sdk-js.

Silkjaer avatar Silkjaer commented on July 20, 2024

Thanks for the reference, I was looking all over for this.

I am relying on some node.js plugins that I can't implement in CloudCode, so I made a quick decision to move all code to Heroku (without noticing the dirtyKeys limitation). I want to avoid maintaining server side logic in too many places :)

I am often using the change of a key's value as a trigger to another action, e.g. updating a related object. I do not want to trigger these actions on every save, but only if a specific key's value is changed.

I am also validating keys if they are dirty, e.g. to set a default value or verify it is not undefined.

Would it be possible to somehow trigger a warning log message if unsupported functions are used?

Thanks!

On 30. sep. 2015, at 19.11, Stanley Wang [email protected] wrote:

Currently this is not supported by webhooks. The dirty keys are not passed to webhooks by the Parse backend according to the current spec (https://www.parse.com/docs/js/guide#cloud-code-advanced-beforesave-webhooks), so the JS SDK can't populate this field in Node.js.

However, we are always looking to improve the platform. Could you talk more about your use case and why you need this information?


Reply to this email directly or view it on GitHub.

from parse-sdk-js.

andrewimm avatar andrewimm commented on July 20, 2024

@Zicker are you referring to code running in Node.js, or on Parse Cloud Code?
This issue is regarding code running on a privately hosted Node server, using our Webhooks service.

That said, the behavior you mention should still be supported in 1.6. We have tests that suggest it works in the current version (1.6.4)

from parse-sdk-js.

stanleyw avatar stanleyw commented on July 20, 2024

@Silkjaer please see https://github.com/ParsePlatform/parse-cloud-express/issues/4

from parse-sdk-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.