Skip to content

Merge tool between SoftwareExternalData rows for the same software #299

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

Open
guillermau opened this issue Feb 18, 2025 · 1 comment · May be fixed by #381
Open

Merge tool between SoftwareExternalData rows for the same software #299

guillermau opened this issue Feb 18, 2025 · 1 comment · May be fixed by #381
Assignees
Milestone

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
}

@guillermau guillermau added this to the Multi Source milestone Mar 7, 2025
guillermau added a commit that referenced this issue May 15, 2025
guillermau added a commit that referenced this issue May 15, 2025
guillermau added a commit that referenced this issue May 15, 2025
guillermau added a commit that referenced this issue May 19, 2025
guillermau added a commit that referenced this issue May 21, 2025
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

Successfully merging a pull request may close this issue.

2 participants