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

Add tests for ordering by multiple fields #6316

Merged
merged 5 commits into from
Jan 6, 2020

Conversation

davimacedo
Copy link
Member

Regarding #6310, it looks that it is already fixed in the master:

const parseOrder = order && order.join(',');

const parseOrder = order && order.join(',');

This PR add tests to make sure it is working.

douglasmuraoka and others added 4 commits December 31, 2019 11:49
An internal server error is thrown if the `order` query parameter is an array.
Currently, `order` only works with a single value.
@codecov
Copy link

codecov bot commented Jan 6, 2020

Codecov Report

Merging #6316 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6316      +/-   ##
==========================================
- Coverage   93.83%   93.82%   -0.02%     
==========================================
  Files         169      169              
  Lines       11588    11588              
==========================================
- Hits        10874    10872       -2     
- Misses        714      716       +2
Impacted Files Coverage Δ
src/RestWrite.js 93.62% <0%> (-0.17%) ⬇️
...dapters/Storage/Postgres/PostgresStorageAdapter.js 97.01% <0%> (-0.09%) ⬇️

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 576631f...e7e0bd3. Read the comment docs.

@davimacedo davimacedo merged commit 4107a59 into parse-community:master Jan 6, 2020
UnderratedDev pushed a commit to UnderratedDev/parse-server that referenced this pull request Mar 21, 2020
* fix(GraphQL): Unable to run queries with order as array

An internal server error is thrown if the `order` query parameter is an array.
Currently, `order` only works with a single value.

* Add tests

* Reset cache

* Remove one of the tests from Postgres

Co-authored-by: Douglas Muraoka <douglas.muraoka@gmail.com>
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