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(Entity): add removeMany by predicate #900

Merged
merged 3 commits into from
Oct 26, 2018

Conversation

timdeschryver
Copy link
Member

This PR allows to remove entities based on a predicate.
See #672

@coveralls
Copy link

coveralls commented Mar 9, 2018

Coverage Status

Coverage increased (+0.01%) to 88.371% when pulling c3aba9d on timdeschryver:pr/remove-many-predicate into ab56aac on ngrx:master.

@MikeRyanDev
Copy link
Member

MikeRyanDev commented Mar 12, 2018

This looks great to me!

I am going to label this at v6.x. We are in the middle of adding new infrastructure to support multiple versions in the same repo. Please don't be surprised if this takes some time to get merged. We have every intention of getting it into a release soon!

@timdeschryver
Copy link
Member Author

timdeschryver commented Mar 14, 2018

@MikeRyanDev Should this change (and the update many from #907 - if approved) also be documented in the current docs?
If so, I'll edit the docs with an extra Action.

@brandonroberts
Copy link
Member

@timdeschryver will you rebase this so it can land?

@timdeschryver
Copy link
Member Author

✔️

@@ -38,6 +38,10 @@ export type UpdateNum<T> = {

export type Update<T> = UpdateStr<T> | UpdateNum<T>;

export type Predicate<T> = {
Copy link
Member

Choose a reason for hiding this comment

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

Make this the same as export type ComparerStr<T> = (a: T, b: T) => string;

@timdeschryver
Copy link
Member Author

Check!

@brandonroberts brandonroberts merged commit d7daa2f into ngrx:master Oct 26, 2018
@timdeschryver timdeschryver deleted the pr/remove-many-predicate branch October 26, 2018 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants