Administration: all drafts are shown to have "0 bytes"
Package version: 12.0.0rc2
Describe the bug
In the administration panel, the entry for each draft states 0 bytes | #0, even if the draft has uploaded files.
Expected behavior
The drafts show the actual amount of files + data uploaded
Screenshots
For a screenshot, see https://github.com/inveniosoftware/invenio-app-rdm/issues/2716
This issue was automatically marked as stale.
This issue was automatically marked as stale.
This issue was automatically marked as stale.
This issue was automatically marked as stale.
there are some problems:
mismatch between what is in the mapping here and what is implemented here . as i understand: it is implemented as dict with variable keys for every file! which is not the way it is implemented in the mapping.
further include_entries is always False which never executes the if
i think this also hided the bug that long because otherwise the mapping mismatch should have popped up earlier
there are some problems:
mismatch between what is in the mapping here and what is implemented here . as i understand: it is implemented as dict with variable keys for every file! which is not the way it is implemented in the mapping.
further include_entries is always
Falsewhich never executes the ifi think this also hided the bug that long because otherwise the mapping mismatch should have popped up earlier
That might be an issue, but it looks like that the culprit of this specific issue is something else. From a quick check, but I did not have time to investigate further, it looks like that in records and drafts we are using the same SystemField. It feels like that the code you pointed out (the dump/post_dump) is never executed for drafts, but it is for records. So files are not dumped for drafts.
This issue was automatically marked as stale.