zen4R deposit record, multiple confusions with settings and strange behaviours #348
Replies: 1 comment 1 reply
-
As first stage, I need to perform a full review of the zen4R API interface and underlying action in geoflow. Some work was funded and done in the past, but through years there were changes starting with the Zenodo API, and the work needs some adaptive maintenance. Some was done already in zen4R, but no maintenance was done on geoflow because this stayed orphaned let's say, without any request for support. Regarding the For generic uploaders, there is a specific and more complex behavior in the sense they are generators of PIDs (of different type depending on the action, a
All options we have then were implemented to cover requirements, and have rationale (before trying to be intuitive) and their role is documented through action utils, see
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I played with geoflow and zen4R and I have some questions.
First of all is it will be interesting to add some workflows
The first one from here : https://github.com/r-geoflow/geoflow/blob/master/inst/extdata/workflows/config_metadata_gsheets_zenodo.json doesn't work.
Uploading a deposit needs at least one communties. By default NA is applied whereas NA doesn't exists in regular zenodo. I created one in sandbox but it will be removed due to sandbox reset ...
https://sandbox.zenodo.org/communities/na
So below is my working configuration to upload and send a deposit on zenodo and keep it as draft (not published):
https://github.com/IRDG2OI/geoflow-g2oi/blob/sylvain/Zenodo.json
Then I tried others configurations like :
updating my draft (attached csv are in same repository) :
https://github.com/IRDG2OI/geoflow-g2oi/blob/sylvain/20230811-183228_zenodo_update-config.json
publish deposit then updating record which differ from draft configuration:
https://github.com/IRDG2OI/geoflow-g2oi/blob/sylvain/20230811-183228_zenodo_update-published-config.json
Related isssue explaining in depth : [zen4R_deposit_record] When depositWithFiles is false and update_metadata is true, metadata are not updated #345
adding a new version with complete change of title and description, uploading new files:
https://github.com/IRDG2OI/geoflow-g2oi/blob/sylvain/20230811-183228_zenodo_processed-config.json
So this configuration doesn't work at first launch. It returns one error from console:
with bucket url in log and nothing more interesting. So again
update_files
anddepositWithFiles
needs to be set to true otherwise nothing happen.file.exists
in my understanding check in repository and tried to upload updated file on the remote server. FinallydeleteOldFiles:true
does nothing and fail the process. Even withdeleteOldFiles:false
, files are removed fromnewversion
.If we change nothing and rerun the same workflow with same csv and same json, it works.
Regarding these scenarios, could you help me understand what is wrong or what works. Honestly, I'm totally lost, some of the logic behind the options doesn't seem intuitive (
update_files
,deleteOldFiles
...).@juldebar
Beta Was this translation helpful? Give feedback.
All reactions