learningequality / learningequality/studio

Total storage' value remains the same after uploading or deleting a file

Open
#3,058 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DEV: backend DEV: frontend TAG: ux update TODO: needs decisions
Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Observed behavior

Encountered while testing https://github.com/learningequality/studio/pull/3044: The 'Total storage used' value remains the same after uploading or deleting a file.

Expected behavior

The 'Total storage used' value should update correctly after uploading or deleting a file.

User-facing consequences

Users won't be able to know what is the actual 'Total storage used' value.

Additional information

2021-03-30_17-56-24

2021-03-30_14-29-00

Steps to reproduce the issue

Case: File upload and user storage status

  1. Open an editable channel
  2. Click Add and Upload files
  3. Note your current Total storage used
  4. Upload a file and finish up editing the uploaded file's details
  5. Click Add and Upload files again
  6. Confirm that your Total storage used has updated properly

Case: Adding and deleting a file updates publish channel size

  1. Create a new channel
  2. Click Add and Upload files to upload a small file
  3. Click Publish
  4. Observe the channel size shown in the Publish modal
  5. Close the Publish modal
  6. Click Add and Upload files to upload a large file (like a video)
  7. Allow your browser to finish syncing (wait ~30 seconds)
  8. Click Publish
  9. Verify the channel size has increased in the Publish modal
  10. Close the Publish modal
  11. Delete the large file
  12. Click Publish
  13. Verify the channel size has decreased in the Publish modal

Usage Details

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 upload and deletion cases in the issue, checking the Total storage used value and the channel size in the Publish modal after synchronization. Trace the entry points for file upload, file deletion, storage status, and publishing, then add coverage showing both values increase and decrease correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.