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

Merge tool between SoftwareExternalData rows for the same software #299

Open
guillermau opened this issue Feb 18, 2025 · 1 comment
Open

Comments

@guillermau
Copy link
Collaborator

How to merge ?

Merge rules on software ? On source definitions ?

@JeromeBu
Copy link
Collaborator

JeromeBu commented Feb 19, 2025

Here is a proposition of data structure :

Merge would be based on priority, in SoftwareExternalSource

type Software = {
  id: string
}

type SoftwareExternalData = {
  externalId: string;
  softwareId: string; // clé étrangère
  externalSourceSlug: string; // clé étrangère
  data: "...",
  // unicité : externalSourceSlug + externalId + softwareId
}

type SoftwareExternalSource = {
  slug: string, // unique exemple: hal-science, hal-uga-science, wikidata
  kind: "HAL" | "Wikidata" | "comptoire du libre" | "Zenodo" // "Software Heritage" | "Github" | "Gitlab",
  url: string,
  priority: number, // unique, postive -> lowest number is more priority
  description: LocalizedString // apparait dans le formulaire d'ajout
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants