Skip to content

Clear pending ops (revert) for Cloud Function validation "constant" #7534

Closed
@dblythy

Description

@dblythy

New Feature / Enhancement Checklist

Current Limitation

Parse Cloud Function validation field constant sets request.object's field to request.original. Wouldn't it be better to use Parse.Object's function .revert, to clear pending operations on these keys, rather than setting it?

Feature / Enhancement Description

I propose changing this block to:

request.object.revert(key);
if (request.object.get(key) == null &&opt.default != null) {
  request.object.set(key, opt.default);
}

Example Use Case

Alternatives / Workarounds

3rd Party References

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions