-
-
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
Prevent invalid column names (className and length) #7053
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7053 +/- ##
==========================================
- Coverage 93.86% 93.85% -0.01%
==========================================
Files 169 169
Lines 12437 12442 +5
==========================================
+ Hits 11674 11678 +4
- Misses 763 764 +1
Continue to review full report at Codecov.
|
Maybe also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just cosmetics...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Hey, so it turns out preventing the column name
I'd suggest to rename forbidden fields to |
What is the work around for this breaking change? We are currently using classes in production with the Do we need to do a migration of the Classes (PFObjects in iOS) that currently use the
I would also suggest to allow the use of |
To add to this (@pausenabre is my colleague): As a workaround, we were trying to We are also using the Parse iOS SDK local datastore, where in our production app, users have already saved objects which contain data for the |
I agree that allowing virtually any keyword as field name would be reasonable. The currently "reserved" field names could be allowed by encoding fields differently in the Parse Object. This would merit a new issue to have a discussion, as this PR has already been merged to fix another issue. Anyone please feel free to open a new issue to make the case for allowing restricted field names and we can try to work out a concept. |
Fixes: #7047, #6195
There could be more of the reserved fields that could mess up the database or produce unexpected results.