Skip to content

Support nor Query #634

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

Merged
merged 3 commits into from
Aug 12, 2018
Merged

Support nor Query #634

merged 3 commits into from
Aug 12, 2018

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Aug 10, 2018

@codecov
Copy link

codecov bot commented Aug 10, 2018

Codecov Report

Merging #634 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #634      +/-   ##
==========================================
+ Coverage   85.08%   85.12%   +0.03%     
==========================================
  Files          48       48              
  Lines        3855     3865      +10     
  Branches      871      871              
==========================================
+ Hits         3280     3290      +10     
  Misses        575      575
Impacted Files Coverage Δ
src/ParseQuery.js 94.66% <100%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fd73b0...c68e302. Read the comment docs.

@dplewis dplewis requested a review from flovilmart August 10, 2018 15:08
@dplewis
Copy link
Member Author

dplewis commented Aug 12, 2018

@flovilmart How does this look?

Copy link
Contributor

@flovilmart flovilmart left a comment

Choose a reason for hiding this comment

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

There’s some issues in the comment docs

* @param {...Parse.Query} var_args The list of queries to AND.
* @static
* @return {Parse.Query} The query that is the AND of the passed in queries.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Docs are wrong

Copy link
Member Author

Choose a reason for hiding this comment

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

Is there a jsdocs checker / linter we can add?

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean the text in the docs ;) it says AND as it should says NOR. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

The PHP SDK has a document checker. In this case the @param is wrong also

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about that, you should look at them with npm run docs.

My point was on the whole documentation that it didn’t match what the function was doing

@@ -250,6 +249,20 @@ class ParseQuery {
return this;
}

/**
* Adds constraint that all of the passed in queries match.
Copy link
Contributor

Choose a reason for hiding this comment

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

Docs need a change

Copy link
Member Author

Choose a reason for hiding this comment

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

What should this be changed to?

Copy link
Contributor

Choose a reason for hiding this comment

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

It should say:

‘Adds constraint that none of the passed queries match’

@dplewis dplewis merged commit ceb34c5 into parse-community:master Aug 12, 2018
@dplewis dplewis deleted the nor branch August 12, 2018 00:49
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.

2 participants