[+] Paranoia Gem - Support it in a "Recovery" mode in Forest.
Hi guys,
I have feature request for support of the paranoia gem. All Rails community uses it in order to soft delete the records. However, the support with Forest is very unpredictable: sometimes the records are found and sometimes not (e.g. lists, details, associations).
It would be great to
- always show the deleted records
- have a red bar/cross or something similar to indicate that the record is deleted.
Let me know what are your thoughts about this problem.
Karens
Hi @karensg, thanks for pushing us. You're not the only person to ask :). We will work on the paranoia gem support in the upcoming sprints.
About the implementation, I am not a fan of the idea to display "deleted" records. These records are "deleted" so I don't get why you would see them in your Admin.
Something I would like is a "recovery" mode that you could activate (as an Admin user) that would enable you to see those deleted records and why not restore them.
Hi Arnaud,
Thanks for your answer. This feature would indeed be extremely useful and I cant wait to use it.
I agree with you that the deleted records in the list view are not very useful. However, I still would propose to show the deleted records at least in the detail views. Imagine that a not-deleted record like Request is linked to a User which is soft-deleted. It would be extremely useful to see the User's name in the Request's detail view and to be able to click on it and see the deleted User. At this moment it looks like a Request does not have a Request which is extremely confusing.
What do you think about this proposal?
Karens
Hi @karensg,
I started to fix the display inconsistency between list and details, in the end, all soft-deleted records should be hidden everywhere in Forest (dashboards, charts,...).
We have created a task for a "Recovery Mode" epic feature that would enable users to see all data (with a specific display for all soft-deleted data).
I think it will fit your needs.
This sounds awesome! Looking forward to check it out,
Lets release the new version?
@karensg we just release a new liana version 1.7.7. You can install it right now.
Let us know if you have any issues.
🌲🌲🌲
Hi guys,
Thanks for the quick release. Just installed it and if I am correct none of the deleted records are now shown. I can't find any recovery mode option in Forest, as it is not implemented yet, right? Or do I miss something?
Karens
@karensg, Yes none of the deleted records are now available. And yes, sorry if I have not been clear enough, we haven't implemented a recovery mode yet.
Aah, I see. That indeed does not really solve my problem. Although it is a step forward, still craving to be able to view the deleted records. Shall we reopen this issue?
Yes sure, re-open the issue. Lets continue the discussion on your dedicated Forest channel on Slack, to see how to prioritise this feature in the next weeks.
Would love to see this one day ❤️