alephdata / aleph

Search and browse documents and data; find the people and companies you look for.

Home Page:http://docs.aleph.occrp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BUG: Adding files to entity sets breaks file previews

tillprochaska opened this issue · comments

Describe the bug
Adding a document to an entity set (e.g. a list or a network diagram) breaks file previews.

To Reproduce
Steps to reproduce the behavior:

  1. Create an investigation
  2. Upload a PDF file
  3. Navigate to the PDF file preview
  4. Click the "Add to…" button in the top right corner of the screen.
  5. Add the file to a new list entity set.
  6. Navigate back to the PDF file preview.

Expected behavior
Adding files to entity sets is actually not supported in Aleph right now. Aleph should not display a button to add files to entity sets and sending an API request to add a file entity to an entity set should fail.

Aleph version
3.15.5

Possibly related to #2034