inveniosoftware / docs-invenio-rdm

InvenioRDM docs
https://inveniordm.docs.cern.ch/
MIT License
21 stars 60 forks source link

reference: add file before setting default_preview #673

Closed phette23 closed 1 week ago

phette23 commented 1 week ago

Description

Add two sentences below the Files Options section noting that files.default_preview won't work for files that aren't added to the draft yet. I think that the ordering of this document, which first discusses creating a draft with files options included and then later adds the files themselves, makes it unclear the file must be added first. As I started working with the REST API, this would have been useful to know.

files.order does not work but I didn't mention that, I couldn't find a precedent for writing Invenio bugs into the documentation, but I could add a note about that too, if desirable.

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge: