listeners - move to trash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2017 07:44 AM
I am writing an event handler. In my testing, I have observed that when a document is moved to trash, the framework always appears to fire a lifecycle transition event AND a move event (move to trash). Therefore in the interests of efficiency my design ignores the lifecycle event and only processes the move event. Is this logic going to miss something? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2017 01:02 PM
Putting a document in the trash changes its lifecycle state to "deleted" and renames it (a rename is a move) to "docname._1507482111971_.trashed" in order to avoid collision with the names of documents that are not in the trash. It's up to you what you consider relevant events for your application.
