Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re design table schema and foreign keys between Softwares and SoftwareExternalDatas #298

Open
guillermau opened this issue Feb 18, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request genericity to discuss Issue to discuss

Comments

@guillermau
Copy link
Collaborator

guillermau commented Feb 18, 2025

There is no structured link between Softwares and SoftwareExternalDatas.

Proposal :

  • Add foreign keys softwareId key from Softwares on SoftwareExternalDatas.
  • Add field externalDataOriginType to save which connecter to use for example GitLab
  • Migrate externalDataOrigin from string to URL of the endpoint to retrieve data

Old proposal

ExternalData table

  • On rajoute le champ softwareId clefs étrangère vers l'index de la tablesoftwares
  • On migre externalId en sourceSoftwareId
  • On migre externalDataOrigin en sourceId clef étrangère vers l'index de la table source

Table source

  • Création d'une table source avec id:number, nom:string, type:<TpeSource>, url:string et primacy:boolean
  • Les sources types seront : HAL, SWH, Wikidata, GitHub, ComptoirDuLibre, GitLab ou encore Zenodo.
@guillermau
Copy link
Collaborator Author

guillermau commented Feb 19, 2025

Proposal

{
  "softwareId": 12,
  "externalId": "starpu/starpu",
  "externalDataOriginType": "GitLab",
  "externalDataOrigin": "https://gitlab.inria.fr/"
}

For a same software :

{
  "softwareId": 11,
  "externalId": "Q91312803",
  "externalDataOriginType": "WikiData",
  "externalDataOrigin": "https://www.wikidata.org"
}
{
  "softwareId": 11,
  "externalId": "380",
  "externalDataOriginType": "ComptoirDuLibre",
  "externalDataOrigin": "https://comptoir-du-libre.org/"
}

@guillermau guillermau self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request genericity to discuss Issue to discuss
Projects
None yet
Development

No branches or pull requests

1 participant