forest-rails icon indicating copy to clipboard operation
forest-rails copied to clipboard

[+] Paranoia Gem - Support it in a "Recovery" mode in Forest.

Open karensg opened this issue 8 years ago • 11 comments

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

  1. always show the deleted records
  2. 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

karensg avatar Aug 11 '17 08:08 karensg

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.

arnaudbesnier avatar Aug 16 '17 15:08 arnaudbesnier

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

karensg avatar Aug 17 '17 08:08 karensg

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.

arnaudbesnier avatar Aug 23 '17 13:08 arnaudbesnier

This sounds awesome! Looking forward to check it out,

karensg avatar Aug 23 '17 15:08 karensg

Lets release the new version?

karensg avatar Aug 29 '17 15:08 karensg

@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.

🌲🌲🌲

arnaudbesnier avatar Aug 29 '17 16:08 arnaudbesnier

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 avatar Aug 30 '17 07:08 karensg

@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.

arnaudbesnier avatar Aug 30 '17 08:08 arnaudbesnier

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?

karensg avatar Aug 30 '17 10:08 karensg

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.

arnaudbesnier avatar Aug 30 '17 10:08 arnaudbesnier

Would love to see this one day ❤️

stefatkins avatar Aug 05 '20 09:08 stefatkins