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

New softDelete for Feathers 4 #544

Merged
merged 1 commit into from
Nov 23, 2019
Merged

New softDelete for Feathers 4 #544

merged 1 commit into from
Nov 23, 2019

Conversation

daffl
Copy link
Member

@daffl daffl commented Nov 22, 2019

This pull request adds a new softDelete hook that works with the adapter changes in Feathers 4. It is more performant because it no longer needs to make additional calls can can be fully customized by dynamically creating the query for removed items and the data when it gets deleted.

softDelete2 is now deprecated so related issues will be closed:

@arfanliaqat
Copy link
Contributor

Great work @daffl... Been waiting for this... when this gonna be released and available?

@marshallswain
Copy link
Member

The only question I had was "why would value be a function in the getValue utility, but I figured it out by the end of the PR. Looks great!

:shipit:

@daffl daffl merged commit 9011b2c into master Nov 23, 2019
@daffl daffl deleted the soft-delete branch November 23, 2019 01:17
@arfanliaqat
Copy link
Contributor

arfanliaqat commented Nov 24, 2019

Great... But the docs have not yet been updated i guess, they still shows soft-delete hook as DEPRECATED.

@daffl daffl mentioned this pull request Nov 24, 2019
@daffl
Copy link
Member Author

daffl commented Dec 31, 2019

This is now available as v5.0.x. New softDelete (and other v5) documentation at https://hooks-common.feathersjs.com/hooks.html#softdelete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants