learningequality / learningequality/studio
After creating new channel, unable to delete with "Delete this Channel" modal; but is deleted once user returns to channel list page
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 191
- Forks
- 307
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
Steps to reproduce:
- Create new channel
- Once created, make sure you are in the channel editor and click on the "three dots" options at the upper right hand corner.
- Select "Delete channel".
- You should notice that nothing happens, but a error appears in the console:
Uncaught (in promise)
DexieError {_e: Error
at getErrorWithStack (https://develop.studio.learningequality.org/static/studio/channel_e…,
name: "PrematureCommitError",
message: "Transaction committed too early. See http://bit.ly/2kdckMn",
- Reload OR return to main channel list.
- You should see that the channel has indeed been deleted.

Originally posted by @MBKayro in https://github.com/learningequality/studio/issues/2677#issuecomment-747717933
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the deletion from the channel editor and inspect the console's Dexie PrematureCommitError. Trace the delete action and its transaction through the editor flow. Done means the modal completes deletion immediately and the channel is absent without reloading or returning to the channel list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- databases, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100