Skip to content
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 ability to create classes without creating an object. #267

Closed
wants to merge 23 commits into from
Closed

Add ability to create classes without creating an object. #267

wants to merge 23 commits into from

Conversation

drew-gross
Copy link
Contributor

This will be useful for schemas API POST.

the race loser return before the race winner. This test failed in
mongo 2.6.11, and I don't know if thats because it's generally
flaky or if that version of mongo makes less guarantees.
@facebook-github-bot
Copy link

@drew-gross updated the pull request.

className === '_SCHEMA' || //TODO: remove this, as _SCHEMA is not a valid class name for storing Parse Objects.
className === '_Role' ||
joinClassRegex.test(className) ||
classAndFieldRegex.test(className)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use  fieldNameIsValid() 

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to support legacy callers. The legacy callers should be updated, but that will have to come in a later PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I misunderstood your original comment, GitHub was highlighting line 76 so I thought you were just talking about that line. Replacing this with fieldNameIsValid is actually a good idea, I will do that and the other change and then merge this. Thanks for the review!

@flovilmart
Copy link
Contributor

@drew-gross reviewed what I could.

@facebook-github-bot
Copy link

@drew-gross updated the pull request.

@drew-gross
Copy link
Contributor Author

Hmmm this PR now includes a bunch of random commits somehow. I'm going to close this and make a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants