8000 Re design table schema and foreign keys between `Softwares` and `SoftwareExternalDatas` · Issue #298 · codegouvfr/sill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

Closed
guillermau opened this issue Feb 18, 2025 · 1 comment · Fixed by #361
Closed
Assignees
Labels
enhancement New feature or request genericity to discuss Issue to discuss
Milestone

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 guillermau added enhancement New feature or request genericity to discuss Issue to discuss labels Feb 18, 2025
@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
guillermau added a commit that referenced this issue Feb 26, 2025
guillermau added a commit that referenced this issue Feb 26, 2025
guillermau added a commit that referenced this issue Feb 26, 2025
@guillermau guillermau added this to the Multi Source milestone Mar 7, 2025
guillermau added a commit that referenced this issue Mar 13, 2025
guillermau added a commit that referenced this issue Mar 13, 2025
# Conflicts:
#    api/scripts/migration/software.ts
guillermau added a commit that referenced this issue Mar 13, 2025
guillermau added a commit that referenced this issue Mar 13, 2025
guillermau added a commit that referenced this issue Mar 13, 2025
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
# Conflicts:
#    api/scripts/migration/software.ts
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
JeromeBu pushed a commit that referenced this issue Mar 14, 2025
# Conflicts:
#    api/scripts/migration/software.ts
JeromeBu pushed a commit that referenced this issue Mar 14, 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

Successfully merging a pull request may close this issue.

1 participant
0