eblondel/zen4R

Commit 573295f breaks `publish: false` in geoflow

kikislater opened this issue · 8 comments

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 I assume that your workflow points to records that have been already published, right?

No, not published, in draft mode. So considering editing an existing draft deposit prior publishing

So of course there is no stats from api in draft mode ...

ok got it, let me see if I can fix it quickly

Done, for your check

Thanks, btw I will use cran version

Thanks, btw I will use cran version

zen4R 0.9 is on CRAN, you can update your env.