Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Revert or Undo operation #13

Open
tabacitu opened this issue Aug 29, 2023 · 0 comments
Open

[Feature Request] Revert or Undo operation #13

tabacitu opened this issue Aug 29, 2023 · 0 comments

Comments

@tabacitu
Copy link
Member

Feature Request

Not urgent. This is a SHOULD-DO/COULD-DO.

What I am trying to achieve

I am a superadmin. I have a list of changes that my users or admins have made to models. That is GREAT. I can see those changes. But I cannot UNDO changes. If I don't like something they've done, I have to go and manually undo those changes. Right now, I don't even have a link to go to the admin panel for that entry to quickly edit it:

CleanShot 2023-08-29 at 11 11 02@2x

How I see it implemented

Not sure:

  • Solution A. We could create an Undo operation, that just sets the changed attributes to their previous values.
  • Solution B. We could create a link to that Subject edit form (if it exists). Ideally with the attributes already changed to the previous values, thereby making it easier to save the old values but ALSO any new changes you want to make.

What we have to take into account is that... ActivityLog isn't just used for tracking model changes. It's also used to log various other activities right? Custom ones. So we'd need to differentiate between the two, and only allow the Undo/Revert when it makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant