listeners - move to trash
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.
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.