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

Adds limit = 0 as a valid parameter for queries #1493

Merged
merged 3 commits into from
Apr 15, 2016

Conversation

seijiakiyama
Copy link
Contributor

No description provided.

@seijiakiyama seijiakiyama changed the title b4a 528 - Adds limit = 0 as a valid parameter for queries Adds limit = 0 as a valid parameter for queries Apr 14, 2016
@codecov-io
Copy link

Current coverage is 92.89%

Merging #1493 into master will not affect coverage as of b32177f

@@            master   #1493   diff @@
======================================
  Files           87      87       
  Stmts         5502    5505     +3
  Branches      1021    1022     +1
  Methods          0       0       
======================================
+ Hit           5111    5114     +3
  Partial          9       9       
  Missed         382     382       

Review entire Coverage Diff as of b32177f

Powered by Codecov. Updated on successful CI builds.

@@ -9,12 +9,13 @@
},
"files": [
"bin/",
"lib/",
"src/",
Copy link
Contributor

Choose a reason for hiding this comment

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

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about that. I was expecting to merge it on our fork first. My mistake. This change was not supposed to be here.

@facebook-github-bot
Copy link

@seijiakiyama updated the pull request.

@drew-gross
Copy link
Contributor

Sweet, this should fix some issues we've been seeing in the dashboard as well. Can you rebase and resolve conflicts? Then we can merge.

if (this.className == '_User') {
for (var result of results) {
delete result.password;
if (this.findOptions.limit !== 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Id's suggest to improve readability:

if (this.findOptions.limit === 0) {
    this.response = {results: []};
    return Promise.resolve();
}
// original code

@facebook-github-bot
Copy link

@seijiakiyama updated the pull request.

@drew-gross drew-gross merged commit a727e1c into parse-community:master Apr 15, 2016
@davimacedo davimacedo deleted the b4a-528 branch September 22, 2016 04:50
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.

5 participants