Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Genesys Backend Genesys Backend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Genesys PGR
  • Genesys BackendGenesys Backend
  • Issues
  • #510
Closed
Open
Created Apr 08, 2020 by Matija Obreza@mobrezaOwner

Add dataProviderId for uploading Accessions

Accession Uploader now uses the doi or instituteCode and accessionNumber (and genus if institute is flagged as having unique accessionNumber entries) to find an existing record in Genesys. This causes some problems for partners that do not use DOI.

Data providers would like to use their internal identifiers to refer to their entries on Genesys.

When calling /{instCode}/upsert, they will include a new field in the incoming JSON:

[ 
  { "dataProviderId": "USDA:123133", "accessionNumber": "FOOBAR", ... },
  { "dataProviderId": "USDA:5424", .... },
  ...
]

When this field is provided, the Uploader should:

  1. If doi is provided, use doi first.
  2. .. if not found by doi, then load Accession by dataProviderId if provided (see below)
  3. .. if not found then use existing logic.

The dataProviderId is unique for the data provider, not to FaoInstitute. We require that the dataProviderId has a prefix ${partner.shortName}:

The database must have a new unique key on dataProviderId.

Please also update the /delete Accession call to support dataProviderId.

Edited Apr 20, 2020 by Matija Obreza
Assignee
Assign to
Time tracking