Repository navigation
Conversation
Prepare the repository URL as primary source: several sources (one per forge instance) must be able to share the same rank. - New `source_categories` table holds the priority (UserInput 0, repository 1, then the previous order). `sources.priority` is replaced by `sources.category`, derived from the kind (`categoryByKind`): GitHub and GitLab map to `repository`. - A software has at most one external data per source category, enforced in DB: `software_external_datas.sourceCategory` is filled by a trigger, kept consistent by a composite FK and covered by a partial unique index. The migration aborts with the offending rows if existing data breaks the rule. - Writers skip instead of failing when the category is already taken (createSoftware, link discovery rebind, saveMany). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One source per forge instance (GitHub, each GitLab instance), created the first time one of its repositories is cited by another source. - `ensureForgeSource` finds the source of the same kind and origin, or creates it (slug derived from the host, url = origin, no configuration). The GitHub source keeps the url its adapters require. - `importFromInnerIdentifiers` uses it for repository identifiers that match no known source, and no longer queues a second external data in a category a software already has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Identifiers always cite their source with a trailing slash, sources are configured with or without one: only CNLL used to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The repository category now outranks wikidata: its English-only description must not hide the French one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Première étape pour faire de l'URL du dépôt la source principale.
source_categories). GitHub et GitLab forment la catégorierepository, placée juste après UserInput.Avant de déployer : supprimer les doublons signalés par la migration. Après : renseigner le jeton de la source
github-com.🤖 Generated with Claude Code