Soft delete removes auth_field

7 views
Skip to first unread message

Gabriel Wainer

unread,
Sep 5, 2018, 12:01:35 PM9/5/18
to Eve REST Framework
Hello, I've noticed using eve 0.8 that with soft delete enabled, when a document is deleted, its auth_field is removed. 

Is this intentional?

I see here [1], inside deleteitem function, the document is retrieved from database with `force_auth_field_projection` with default value False, and then here [2] this document without `user_id` replaces the original. 

That's undesired in my case because I need to still keep the deleted documents belonging to the user that owns it. So later when getting the deleted documents I can show to user the ones he deleted, and losing the auth_field this is not possible. 



Thanks,
Gabriel Wainer.

A informação contida neste e-mail e em seus anexos é confidencial e não pode ser usada, reproduzida ou divulgada para terceiros que não seu destinatário. Se recebeu este e-mail por equívoco, por favor apague o seu conteúdo e avise o remetente imediatamente.

The information contained in this e-mail and in its attachments is confidential and shall not be used, reproduced or disclosed by any person other than its addressee(s). If received in error, please delete this e-mail's content and contact the sender immediately.

Esta mensagem não tem validade como acordo ou contrato. 

Gabriel Wainer

unread,
Sep 5, 2018, 12:11:15 PM9/5/18
to Eve REST Framework
An update. Using eve version 0.7, the behaviour is what I was expecting, the auth_id field is kept after delete.

Gabriel Wainer
gab...@tiquetaque.com  
skype: gabrielcw
www.tiquetaque.com

TiqueTaque. Chegamos na hora certa

Reply all
Reply to author
Forward
0 new messages