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

Do clearOrder() for countQuery #159

Merged
merged 1 commit into from
Jun 3, 2018
Merged

Conversation

ik9999
Copy link
Contributor

@ik9999 ik9999 commented May 30, 2018

Summary

When user overrides the orderBy in before.find hook it should be cleared for countQuery.

@daffl daffl merged commit 274ac86 into feathersjs-ecosystem:master Jun 3, 2018
@daffl
Copy link
Member

daffl commented Jun 3, 2018

Makes sense, thank you!

@daffl
Copy link
Member

daffl commented Jun 3, 2018

I thought the tests were failing because of the npm ci issue (that has been fixed in #160) but it appears that there are still issues with this change. The tests are throwing many errors with clearOrder not being a function. See the job at https://travis-ci.org/feathersjs-ecosystem/feathers-knex/jobs/387522236

I will revert for now but new PR with passing tests would be great!

daffl added a commit that referenced this pull request Jun 3, 2018
@ik9999
Copy link
Contributor Author

ik9999 commented Jun 20, 2018

clearOrder() method has been added in knex.js 0.14.5 (https://knexjs.org/#changelog), you use knex.js 0.14.0 for tests, how about updating it?

@daffl
Copy link
Member

daffl commented Jun 21, 2018

Ah ok, if you could make the pull request again with the update version as a dependency, that would be great.

@ik9999
Copy link
Contributor Author

ik9999 commented Jun 26, 2018

@daffl Done

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