-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Fix saving object with invalid iso date #7087
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
base: alpha
Are you sure you want to change the base?
Fix saving object with invalid iso date #7087
Conversation
* commit 'ccb045b68c5b4d983a90fa125513fc476e4e2387': fix: upgrade @graphql-tools/links from 6.2.4 to 6.2.5 (parse-community#7007) fix: upgrade pg-promise from 10.7.0 to 10.7.1 (parse-community#7009) fix: upgrade jwks-rsa from 1.10.1 to 1.11.0 (parse-community#7008) fix: upgrade graphql from 15.3.0 to 15.4.0 (parse-community#7011) update stale bot (parse-community#6998) fix(beforeSave/afterSave): Return value instead of Parse.Op for nested fields (parse-community#7005) fix(beforeSave): Skip Sanitizing Database results (parse-community#7003) Fix includeAll for querying a Pointer and Pointer array (parse-community#7002) Init (parse-community#6999)
Contains only the failing test case so far to verify the issue. |
Can you rebase from master? |
…ith-invalid-iso-date
@dplewis done |
Can you look at your test? |
The test is failing correctly. This PR does not yet contain a fix, it was just to verify that this is actually a bug. |
@sunshineo This PR is still only containing a failing test to demo the issue. Feel free to investigate, I think I can give you PR access if you want to work on it. |
|
New Pull Request Checklist
Issue Description
Saving an object with a date field set to an invalid ISO date object does not fail. The object is saved with field date value
1970-01-01T00:00:00.000Z
.Related issue: closes #7054
Approach
Add date validation and reject invalid ISO date. This should most likely be part of the schema validation.
TODOs before merging