Skip to content

[NEW] Allows dot-notation to match against a complex structure when using matchesKeyInQuery #4399

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 6 commits into from
Nov 30, 2017

Conversation

acinader
Copy link
Contributor

@acinader acinader commented Nov 29, 2017

Just finishes out #4308 which @bohemima did the heavy lifting on. Fixes #4346.

It's too useful to let fester ;)

@codecov
Copy link

codecov bot commented Nov 29, 2017

Codecov Report

Merging #4399 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4399      +/-   ##
==========================================
- Coverage    92.7%   92.66%   -0.04%     
==========================================
  Files         118      118              
  Lines        8346     8346              
==========================================
- Hits         7737     7734       -3     
- Misses        609      612       +3
Impacted Files Coverage Δ
src/RestQuery.js 95.41% <100%> (ø) ⬆️
src/Adapters/Auth/meetup.js 84.21% <0%> (-5.27%) ⬇️
src/RestWrite.js 93.46% <0%> (-0.19%) ⬇️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 96.83% <0%> (-0.11%) ⬇️

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 9d1d851...9e96e3a. Read the comment docs.

flovilmart
flovilmart previously approved these changes Nov 29, 2017
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.

The solution has an inherent simple beauty in it, it’s wonderful.

Copy link
Contributor

@montymxb montymxb left a comment

Choose a reason for hiding this comment

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

Just a typo, but other than that really glad to see this back. Thanks a ton @acinader !

})
});

it('should match complex structure with dot notation when using matchesKeyInQuery', function(done) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably change the description to use doesNotMatchKeyInQuery

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DOH, @montymxb thanks for catching.

Copy link
Contributor

Choose a reason for hiding this comment

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

Np, I'm a typo man 🤓

@montymxb
Copy link
Contributor

Just a note tests are good here 👍, failure is the unrelated moment.js regex vuln.

Copy link
Contributor

@montymxb montymxb left a comment

Choose a reason for hiding this comment

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

Excellent!

On another note since this is new functionality we should be documenting this as well. Docs PR and such.

@acinader
Copy link
Contributor Author

see parse-community/docs#488

@acinader acinader merged commit ca542c3 into parse-community:master Nov 30, 2017
@acinader acinader deleted the bohemima-master branch November 30, 2017 20:40
@bohemima
Copy link
Contributor

bohemima commented Dec 4, 2017

Thanks @acinader and others!

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.

4 participants