r-geoflow / geoflow

Tools to Orchestrate Geospatial (Meta)Data Management Workflows and Manage FAIR Services
https://github.com/r-geoflow/geoflow/wiki
Other
40 stars 14 forks source link

[zen4R_deposit_record] When depositWithFiles is false and update_metadata is true, metadata are not updated #345

Closed kikislater closed 2 weeks ago

kikislater commented 10 months ago

When depositWithFiles is false and update_metadata is true, metadata are not updated. Case of published record, data column empty to just update metadata

Configuration:

    "actions": [
        {
            "id": "zen4R-deposit-record",
            "options": {
                "update_files": false,
                "communities": "uav",
                "depositWithFiles": false,
                "publish": false,
                "update_metadata": true,
                "strategy": "edition",
                "deleteOldFiles": false
            },
            "run": true
        }
    ]

It creates a new record !

Working configuration:

    "actions": [
        {
            "id": "zen4R-deposit-record",
            "options": {
                "update_files": false,
                "communities": "uav",
                "depositWithFiles": true,
                "publish": true,
                "update_metadata": true,
                "strategy": "edition",
                "deleteOldFiles": false
            },
            "run": true
        }
    ]

If not published, this configuration works :

    "actions": [
        {
            "id": "zen4R-deposit-record",
            "options": {
                "update_files": false,
                "communities": "uav",
                "depositWithFiles": false,
                "publish": false,
                "update_metadata": true,
                "strategy": "edition",
                "deleteOldFiles": false
            },
            "run": true
        }
    ]
kikislater commented 10 months ago

@juldebar

eblondel commented 2 weeks ago

Not reproduced. Needs to be tested with zen4R 0.10 and the upgrade of Zenodo to Invenio