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

[Tagging] Plan Undo framework for taxonomies and tagging #134

Open
Tracked by #239
bradenmacdonald opened this issue Sep 25, 2023 · 0 comments
Open
Tracked by #239

[Tagging] Plan Undo framework for taxonomies and tagging #134

bradenmacdonald opened this issue Sep 25, 2023 · 0 comments

Comments

@bradenmacdonald
Copy link
Contributor

Several stories will require an UNDO button, even for fairly complex operations:

Acceptance Criteria

  • Create a plan for an UNDO framework that can be used by these other stories to implement the undo functionality as shown. Note that undo is only available for at most 5 seconds.

Developer notes

Some options - there may be better ones:

  • Use the command pattern for all changes
  • Add a "soft-deleted" flag to taxonomies and ObjectTags. On any CRUD action, store the IDs of all the items the user modified most recently.
  • It doesn't necessarily have to be on the backend; it could be purely frontend, e.g.:
    • The frontend doesn't actually apply the action until after 5 seconds, but it optimistically "pretends" that it did right away. If the user tries to close the tab during that five seconds, a warning is shown and the change is applied immediately.
    • download enough data to undo the action, then store it in a temporary buffer. If the user clicks undo, use that to apply the opposite change.
  • Implement it differently depending on the action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant