learningequality / learningequality/studio
Preview of PDF always shows the EPUB version (if such is uploaded) of the document
Nobody has claimed this yet.
- 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
- Login to Studio
- Click a channel
- Click the Add button
- Click Upload files
- Select the PDF document
- On the edit resource page click to add the EPUB version of the document
- Select the PDF option as a default
- Click the Finish button
- Click the newly created resource to toggle the preview pane
- See how the EPUB is shown in the preview instead of the PDF option
Screenshots

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
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
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