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

Unable to Undo a delete operation for the last remaining folder/resource in a channel #4468

Closed
akolson opened this issue Mar 7, 2024 · 0 comments · Fixed by #4619
Closed
Assignees
Labels
bug DEV: frontend P0 - critical Priority: Release blocker or regression

Comments

@akolson
Copy link
Member

akolson commented Mar 7, 2024

Observed behavior

Undoing a delete operation for the last remaining folder/resource in a channel fails. This is a follow-up to #4116, more specifically the issue reported by @pcenov here which seems like it was never fully fixed.

Expected behavior

A user should be able to undo a delete operation for folders/resources irrespective of their position in the list.

User-facing consequences

Users are unable to undo deleted content and could lose valuable data.

Errors and logs

{
    "_e": {},
    "name": "TransactionInactiveError",
    "message": "Transaction has already completed or failed",
    "inner": null,
    "_stack": "TransactionInactiveError: Transaction has already completed or failed\n    at an._promise (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:7:3011232)\n    at Xn._transaction (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:7:3043552)\n    at Xn.transaction (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:7:3042642)\n    at TreeResource.transaction (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:10:1666)\n    at TreeResource.setData (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:10:1820)\n    at https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:10:10487\n    at https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:7:2988575\n    at Me (https://hotfixes.studio.learningequality.org/static/studio/channel_edit-03f57118f5a6eb96c6da.js:7:2983309)"
}

image

Additional information

Steps to reproduce the issue

  1. Create a channel with only one folder or resource
  2. Try to delete the resource
  3. Click the Undo button on the snackbar that appears after deleting a folder/resource

Usage Details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug DEV: frontend P0 - critical Priority: Release blocker or regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants