parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.69k stars 4.76k forks source link

test: Add test to set custom object ID #9137

Open badboy-tian opened 1 month ago

badboy-tian commented 1 month ago

Pull Request

Issue

Closes: https://github.com/parse-community/parse-server/issues/9134

Approach

Can not custom objectId with parse/node

Tasks

parse-github-assistant[bot] commented 1 month ago

Thanks for opening this pull request!

badboy-tian commented 1 month ago

@mtrezza The test passed. only add

Parse.allowCustomObjectId = true;

I do not know why. I have set

await reconfigureServer({
      allowCustomObjectId: true,
    });
mtrezza commented 1 month ago

So the test passes. If you are unable to adapt this test to fail, we have to consider it an issue that is specific to your deployment (custom Cloud Code, triggers, etc). We'd still merge the PR to have this test.