learningequality / learningequality/studio

Preview of PDF always shows the EPUB version (if such is uploaded) of the document

Open
#2,906 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design: todo P2 - normal TAG: ux update
Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

Summary

The Preview pane of PDF always shows the EPUB version (if such is uploaded) of the document, no matter that the PDF option is selected from the edit resource page.

Category

BUG

Usage Details

https://hotfixes.studio.learningequality.org/

  • Windows 10
  • Browser: Chrome, FF, Edge
  • Channel: pimop-fipur
  • Topic/Content Item: Uploaded PDF document

How to reproduce

Preconditions: Channels created; a PDF and an EPUB file with the same name created locally

  1. Login to Studio
  2. Click a channel
  3. Click the Add button
  4. Click Upload files
  5. Select the PDF document
  6. On the edit resource page click to add the EPUB version of the document
  7. Select the PDF option as a default
  8. Click the Finish button
  9. Click the newly created resource to toggle the preview pane
  10. See how the EPUB is shown in the preview instead of the PDF option

Screenshots

Video-2021-02-04-153705

Real-life consequences (anything community should be aware of, for instance how it affects end users)

Preview of the PDF option is not possible.

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

No files, tests, or entry points are named. Reproduce the issue using the listed upload and preview steps, then trace the PDF/EPUB default-selection path; done means selecting PDF causes the preview pane to show the PDF even when an EPUB with the same name is uploaded.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.