[Sidecar] Add ability to remove one or all references#193
Conversation
Codecov Report
@@ Coverage Diff @@
## main #193 +/- ##
==========================================
+ Coverage 66.91% 66.96% +0.04%
==========================================
Files 87 88 +1
Lines 4498 4541 +43
Branches 331 331
==========================================
+ Hits 3010 3041 +31
- Misses 1471 1483 +12
Partials 17 17
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
cguedes
left a comment
There was a problem hiding this comment.
The current implementation only updates the references metadata (references.json) and don't remove any other files (pdf, .grobid, ...).
This behaviour (i.e. the PDF inside uploads) makes the ingestion a new PDF (i.e. a different PDF) to also ingest previously deleted PDFs.
|
I think it makes sense for the front-end to delete the actual PDF from the filesystem, since the front-end is currently what writes the PDF to the I agree that in the future this should probably all be owned by the backend though, particularly in a world where the backend is some set of web APIs. |
fixes #191