-
Notifications
You must be signed in to change notification settings - Fork 603
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
Soft deletes (.archive()
)
#1521
Conversation
…ing from .destroy(). (Still needs some love.)
…p the Archived model (which doesn't exist yet)
…me additional notes for future reference.
… the forging from the find query) so that the destroy() query works. Note: At this point, you can take this and use .archive() at the app-level in your own project, provided you hook up your own Archive model. But in subsequent commits, I'll write some code that injects this model automatically, unless configured otherwise.
@mikermcneil I like the |
…tep unnecessary asap-- it's too annoying! For now, Waterline.start() can be used to skip this anyway.) This commit also makes it so we set originalRecordId on new archived items.
@luislobo Glad to hear it. And there's totally a place for an
|
@mikermcneil Yeah, I definitelly see the use and possibilities of archive. We might even use it instead of our current way of doing things. This aligned with some service that "autoarchives" records could be something that we might use. |
No description provided.