Internal IDs in the Event/Notification records #74

Closed
opened 2020-12-11 16:06:23 +01:00 by claudio.atzori · 2 comments

The Event records built for the broker service currently include the internal OpenAIRE IDs, e.g. the openaireId field in the results objects is prefixed with the internal 50| value, e.g.

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"datasource":"Universidade do Minho: RepositoriUM",
"topic":"ENRICH/MISSING/AUTHOR/ORCID",
"titles":[],
"subjects":[],
"authors":[],
"dates":[],
"trust":{"min":"0","max":"1"},
"page":0
}' 'https://broker.openaire.eu/api/openaireBroker/events/0/10'


{
  "datasource": "Universidade do Minho: RepositoriUM",
  "topic": "ENRICH/MISSING/AUTHOR/ORCID",
  "currPage": 0,
  "totalPages": 10,
  "total": 100,
  "values": [
    {
      "result": {
        "openaireId": "50|od_______307::8080d1731bf76bccc1db2abfc1da3808",
        "originalId": "oai:repositorium.sdum.uminho.pt:1822/16593",
        "typology": "publication",
...

Please remove the prefix from the Event/Notification creation procedure. If the same internal prefixing is found also in other entity types (e.g. datasources) we should get rid of them as well.

The Event records built for the broker service currently include the internal OpenAIRE IDs, e.g. the openaireId field in the results objects is prefixed with the internal `50|` value, e.g. ``` curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "datasource":"Universidade do Minho: RepositoriUM", "topic":"ENRICH/MISSING/AUTHOR/ORCID", "titles":[], "subjects":[], "authors":[], "dates":[], "trust":{"min":"0","max":"1"}, "page":0 }' 'https://broker.openaire.eu/api/openaireBroker/events/0/10' { "datasource": "Universidade do Minho: RepositoriUM", "topic": "ENRICH/MISSING/AUTHOR/ORCID", "currPage": 0, "totalPages": 10, "total": 100, "values": [ { "result": { "openaireId": "50|od_______307::8080d1731bf76bccc1db2abfc1da3808", "originalId": "oai:repositorium.sdum.uminho.pt:1822/16593", "typology": "publication", ... ``` Please remove the prefix from the Event/Notification creation procedure. If the same internal prefixing is found also in other entity types (e.g. datasources) we should get rid of them as well.
claudio.atzori added the
bug
label 2020-12-11 16:06:23 +01:00
michele.artini was assigned by claudio.atzori 2020-12-11 16:06:23 +01:00
Member

committed in the broker branch

committed in the broker branch
Author
Owner

Integrated in PR !78

Integrated in PR !78
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: D-Net/dnet-hadoop#74
No description provided.