zalf-rdm / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
0 stars 0 forks source link

Bug: setting a funder with fundingreference is not working #104

Closed mwallschlaeger closed 1 month ago

mwallschlaeger commented 1 month ago

Bug Description

when creating or patching a resource via the api I receive the following error:

image

here is an example funder json object:

  "funders": [
    {
      "award_title": "MOTivational strength of ecosystem services",
      "funding_reference": {
        "funderf_name": "Federal Ministry for Education and Research (BMBF)",
        "funder_identifier_type": "BMBF"
      }
    }
  ],
specka commented 3 weeks ago

I will test this as part of the next sprint.

specka commented 1 week ago

Kann ich nicht testen, weil ich nicht genau weiß, wie ich mit der API umgehen soll. Das Kommando python geonodectl dataset patch --set 'category={"identifier":"biota"}' 258 geht zumindest nicht.

specka commented 1 week ago

Testergebnis: Erfolgreich Befehl: python geonodectl dataset patch 258 --json_path "D:\Eigene Dateien specka\Downloads\geonode_funding_reference_api.json"

geonode_funding_reference_api.json

{
  "funders": [
    {
      "award_title": "FAIRagro",
      "award_uri": "",
      "award_number": "282625",
      "funding_reference": {
        "funder_identifier_type": "BMBF"
      }
    }
  ]
}