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
#2,696 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Steps to reproduce:

  1. Create new channel
  2. Once created, make sure you are in the channel editor and click on the "three dots" options at the upper right hand corner.
  3. Select "Delete channel".
  4. 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", 
  1. Reload OR return to main channel list.
  2. You should see that the channel has indeed been deleted.

Peek 17-12-2020 22-41

Originally posted by @MBKayro in https://github.com/learningequality/studio/issues/2677#issuecomment-747717933

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.