When registering files of different descriptor types (e.g., CWL and WDL), the tool file (and maybe the file wrapper) objects for all files (e.g., CWL files andWDL files) are stored underneath each of the descriptors.
Specifically, I used PUT /tools/{id} to store a workflow with four files, one PRIMARY_DESCRIPTOR each for CWL and WDL, a SECONDARY_DESCRIPTOR file for CWL and an OTHER file for WDL, so two files per workflow. Then hitting the GET .../{type}/files endpoint for both type CWL and WDL returned all 4 files. The GET .../{type}/descriptor endpoint seemed to give the right response for each type.
To do:
[x] Investigate issue
[x] Fix code in register_objects.py() (most likely)
When registering files of different descriptor types (e.g.,
CWL
andWDL
), the tool file (and maybe the file wrapper) objects for all files (e.g.,CWL
files andWDL
files) are stored underneath each of the descriptors.Specifically, I used
PUT /tools/{id}
to store a workflow with four files, onePRIMARY_DESCRIPTOR
each forCWL
andWDL
, aSECONDARY_DESCRIPTOR
file forCWL
and anOTHER
file forWDL
, so two files per workflow. Then hitting theGET .../{type}/files
endpoint for both typeCWL
andWDL
returned all 4 files. TheGET .../{type}/descriptor
endpoint seemed to give the right response for each type.To do:
register_objects.py()
(most likely)