You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating or updating archive items, display sets and algorithm jobs through the API, users can currently only upload new files for file type interfaces. In the UI they get the option to select a previously uploaded file instead. This should also work through the API.
Since we don't have a File model (like we do for images, see Image model), the only way to refer to existing files is through the CIV that they are attached to. The relevant serializers for this (JobPostSerializer, DisplaySetPostSerializer and ArchiveItemPostSerializer) currently expect CIV data to be input in the format of ComponentInterfaceValuePostSerializer, which does not allow to specify an existing CIV. This needs to change. The way I currently think this should be done is by updating the JobPostSerializer (and the other two) and to conditionally use either ComponentInterfaceValuePostSerializer or HyperlinkedComponentInterfaceValueSerializer to parse the data in inputs.
Finally, the helper functions in gcapi need to be updated as well.
The text was updated successfully, but these errors were encountered:
When creating or updating archive items, display sets and algorithm jobs through the API, users can currently only upload new files for file type interfaces. In the UI they get the option to select a previously uploaded file instead. This should also work through the API.
Since we don't have a File model (like we do for images, see
Image
model), the only way to refer to existing files is through the CIV that they are attached to. The relevant serializers for this (JobPostSerializer
,DisplaySetPostSerializer
andArchiveItemPostSerializer
) currently expect CIV data to be input in the format ofComponentInterfaceValuePostSerializer
, which does not allow to specify an existing CIV. This needs to change. The way I currently think this should be done is by updating theJobPostSerializer
(and the other two) and to conditionally use eitherComponentInterfaceValuePostSerializer
orHyperlinkedComponentInterfaceValueSerializer
to parse the data ininputs
.Finally, the helper functions in gcapi need to be updated as well.
The text was updated successfully, but these errors were encountered: