-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
[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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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.
The solution has an inherent simple beauty in it, it’s wonderful.
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 a typo, but other than that really glad to see this back. Thanks a ton @acinader !
spec/ParseQuery.spec.js
Outdated
}) | ||
}); | ||
|
||
it('should match complex structure with dot notation when using matchesKeyInQuery', function(done) { |
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.
Should probably change the description to use doesNotMatchKeyInQuery
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.
DOH, @montymxb thanks for catching.
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.
Np, I'm a typo man 🤓
Just a note tests are good here 👍, failure is the unrelated moment.js regex vuln. |
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.
Excellent!
On another note since this is new functionality we should be documenting this as well. Docs PR and such.
Thanks @acinader and others! |
Just finishes out #4308 which @bohemima did the heavy lifting on. Fixes #4346.
It's too useful to let fester ;)