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

feat(core): allow filtering in Collection.loadCount() #3958

Merged
merged 15 commits into from
Jan 23, 2023

Conversation

manu-urba
Copy link
Contributor

This should close #3527.

@manu-urba manu-urba changed the title feat: implements cond parameter under Collection.loadCount feat: implements cond parameter on Collection.loadCount Jan 18, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2023

Codecov Report

Base: 99.76% // Head: 99.76% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (90d072b) compared to base (1983e96).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3958   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files         214      214           
  Lines       13715    13720    +5     
  Branches     3208     3212    +4     
=======================================
+ Hits        13683    13688    +5     
  Misses         30       30           
  Partials        2        2           
Impacted Files Coverage Δ
packages/core/src/entity/Collection.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@B4nan B4nan left a comment

Choose a reason for hiding this comment

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

thanks!

packages/core/src/entity/Collection.ts Outdated Show resolved Hide resolved
tests/issues/GH3527.test.ts Outdated Show resolved Hide resolved
tests/issues/GH3527.test.ts Outdated Show resolved Hide resolved
packages/core/src/entity/Collection.ts Outdated Show resolved Hide resolved
packages/core/src/entity/Collection.ts Outdated Show resolved Hide resolved
packages/core/src/entity/Collection.ts Outdated Show resolved Hide resolved
@manu-urba manu-urba requested a review from B4nan January 22, 2023 18:28
@manu-urba manu-urba force-pushed the feat-collection-loadcount-cond branch from 3e45ba1 to 4732dad Compare January 22, 2023 22:07
@manu-urba
Copy link
Contributor Author

Sorry for the confusion in these commits and force pushes, something really weird kept happening with git and husky. Everything should be done now though.

@manu-urba manu-urba requested a review from B4nan January 22, 2023 22:17
@manu-urba manu-urba requested a review from B4nan January 23, 2023 12:00
Copy link
Member

@B4nan B4nan left a comment

Choose a reason for hiding this comment

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

two final nits and we can merge! 👍

tests/features/load-count-where.test.ts Outdated Show resolved Hide resolved
packages/core/src/entity/Collection.ts Outdated Show resolved Hide resolved
@manu-urba manu-urba requested a review from B4nan January 23, 2023 17:02
manu-urba and others added 2 commits January 23, 2023 19:14
@manu-urba
Copy link
Contributor Author

There you go, everything should be done now. By the way thank you for detailed review and for explaining me every single thing that wasn't right.

@manu-urba manu-urba requested a review from B4nan January 23, 2023 18:23
@B4nan B4nan changed the title feat: implements cond parameter on Collection.loadCount feat(core): allow filtering in Collection.loadCount() Jan 23, 2023
@B4nan B4nan merged commit 08ea320 into mikro-orm:master Jan 23, 2023
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.

Allowing pagination on entity collections
3 participants