Skip to content

Conversation

@Hinaser
Copy link

@Hinaser Hinaser commented Aug 18, 2017

…' clause in Query always raises an error

Fixed a bug where REST Query like below always fails when using Postgresql Adapter.

GET /parse/classes/sometbl/?where={"col1": {"$eq": false}}

@codecov
Copy link

codecov bot commented Aug 18, 2017

Codecov Report

Merging #4100 into master will decrease coverage by 0.03%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4100      +/-   ##
==========================================
- Coverage   90.71%   90.68%   -0.04%     
==========================================
  Files         116      116              
  Lines        7916     7920       +4     
==========================================
+ Hits         7181     7182       +1     
- Misses        735      738       +3
Impacted Files Coverage Δ
...dapters/Storage/Postgres/PostgresStorageAdapter.js 96.03% <62.5%> (-0.47%) ⬇️
src/RestWrite.js 93.16% <0%> (+0.18%) ⬆️

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 c2c059f...3e64ef4. Read the comment docs.

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.

Can we add a test for that? Otherwise code looks great!

@Hinaser
Copy link
Author

Hinaser commented Aug 18, 2017

Hi!
Thank you for reviewing!

I think increasing test coverage is great.
I m not much sure how to write testing code.
What do you mean 'can we' here?
Does 'we' imply 'me myself'?

@flovilmart
Copy link
Contributor

Hi @Hinaser !

I think increasing test coverage is great.

It's not about increasing coverage, but make sure this case is correctly handled and covered now and more importantly for the future.

 I m not much sure how to write testing code.

Have a look into the spec folder, particularly ParseQuery.spec.js, that should be straightforward from there to add a test that covers this where clause, if you need more pointers / examples LMK.

Does 'we' imply 'me myself'?

Oh no! It implies the whole community that would benefit from having this issue properly fixed and covered by a test 😉

@Hinaser
Copy link
Author

Hinaser commented Aug 22, 2017

Sorry for late.
I'm interested in writing testing script.
I'll posting the codes after my other tasks are done.

@flovilmart
Copy link
Contributor

@Hinaser ping?

@dplewis
Copy link
Member

dplewis commented Mar 24, 2018

Closing as supersed by #4667

@dplewis dplewis closed this Mar 24, 2018
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.

3 participants