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

Replace count by estimatedDocumentCount #155

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DaviRJ
Copy link

@DaviRJ DaviRJ commented Mar 17, 2019

Solving the count deprecation warning

#144
#146

index.js Outdated
@@ -51,7 +51,7 @@ function paginate(query, options, callback) {
}
promises = {
docs: docsQuery.exec(),
count: this.count(query).exec()
count: this.estimatedDocumentCount(query).exec()
Copy link

Choose a reason for hiding this comment

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

Please, change this to countDocuments(query) as estimatedDocumentCount doesn't accept a query and doesn't guarantee accurate count, this is causing tests to fail and blocking the merge.

@marceliwac
Copy link

Is there any reason why this PR is not going forward?

@Gio85
Copy link

Gio85 commented Jan 17, 2020

hi guys, any news about this issue??
thanks

@AmrSaber
Copy link

Well, PR author gave me thumbs up ages ago, but for some reason he won't update the PR 🤷‍♂️

@DaviRJ
Copy link
Author

DaviRJ commented Feb 1, 2020

Sorry for the delay guys.

@JosephmBassey
Copy link

JosephmBassey commented Mar 7, 2020

Hi @AmrSaber, I think this PR has been updated; kindly check it out.

@AmrSaber
Copy link

@JosephmBassey, I reviewed the update and unfortunately, I don't know why tests are failing this time.

@JosephmBassey
Copy link

@JosephmBassey, I reviewed the update and unfortunately, I don't know why tests are failing this time.

I will check it out.

@iagormoraes
Copy link

Any update on this, it seems the lock file is included, maybe this is causing the fail on CI?

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.

6 participants