Commit 573295f breaks `publish: false` in geoflow
kikislater opened this issue · 8 comments
kikislater commented
if we set publish: false, commit 573295f breaks workflow
json conf:
"actions": [
{
"id": "zen4R-deposit-record",
"options": {
"update_files": true,
"communities": "ecfunded",
"depositWithFiles": true,
"publish": false,
"strategy": "newversion",
"deleteOldFiles": true
},
"run": true
}
]
It sends json with this:
>> {
>> "stats": []
>> "title": "Raw images - Session 20230507 Ifaty Plancha01",
>> "state": "unsubmitted",
>> "record_id": 1234649,
[....]
>> }
Whereas api/deposit/depositions/{id} json doesn't have stats. Only api/records/{id} have
v0.8 works fine. v0.9 doesn't work !
kikislater commented
eblondel commented
@kikislater I assume that your workflow points to records that have been already published, right?
kikislater commented
No, not published, in draft mode. So considering editing an existing draft deposit prior publishing
kikislater commented
So of course there is no stats from api in draft mode ...
eblondel commented
ok got it, let me see if I can fix it quickly
eblondel commented
Done, for your check
kikislater commented
Thanks, btw I will use cran version
eblondel commented
Thanks, btw I will use cran version
zen4R 0.9 is on CRAN, you can update your env.