-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add unique fields only capability to schema #7388
base: alpha
Are you sure you want to change the base?
Conversation
Thanks for this PR. Can you please reference the corresponding existing issue or create a new issue? |
I added the issue link to your initial post and also did some reformatting. |
Codecov Report
@@ Coverage Diff @@
## alpha #7388 +/- ##
==========================================
- Coverage 93.92% 93.91% -0.01%
==========================================
Files 181 181
Lines 13209 13235 +26
==========================================
+ Hits 12406 12430 +24
- Misses 803 805 +2
Continue to review full report at Codecov.
|
|
@fn-faisal Could you please resole the conflicts? Is this PR ready for review? |
Thanks for opening this pull request!
|
New Pull Request Checklist
Issue Description
Add an option to ignore parse default fields while creating a schema.
Related issue: #6059
Approach
Add request object serialisation to the create schema endpoint such that when a transform option is provided either in the request body or params, parse server performs the required serialisation before handing the object over to controller for saving.
For this issue, only one serialisation option has been added i.e. ignoreDefaultFields . ignoreDefaultFields option removes the default field from request object before saving schema and no error is sent to the requesting client app.
eg body options:
eg response:
eg query params:
http://localhost:1337/parse/schemas/Another?ignoreDefaultFields=true
TODOs before merging