Skip to content

Ensure we don't store duplicate manifests in the index#729

Merged
amisevsk merged 2 commits intokitops-ml:mainfrom
amisevsk:pull-duplication
Jan 28, 2025
Merged

Ensure we don't store duplicate manifests in the index#729
amisevsk merged 2 commits intokitops-ml:mainfrom
amisevsk:pull-duplication

Conversation

@amisevsk
Copy link
Copy Markdown
Contributor

@amisevsk amisevsk commented Jan 27, 2025

Description

Avoid accidentally adding the same manifest multiple times to the local storage index. Previously, the addManifest method would not check if the manifest was already saved, leading to duplicated entries.

Reproducer

kit pull the same ModelKit multiple times (previously, would result in multiple identical lines in kit list)

Linked issues

closes #730

Avoid accidentally adding the same manifest multiple times to the local
storage index. Previously, the addManifest method would not check if the
manifest was already saved, leading to duplicated entries.
Since indexes may contain duplicate entries due to a bug, de-duplicate
them when saving to 'fix' indexes that have the issue.
@amisevsk amisevsk merged commit 0edcd52 into kitops-ml:main Jan 28, 2025
@amisevsk amisevsk deleted the pull-duplication branch January 28, 2025 02:54
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 this pull request may close these issues.

The same manifest can be added multiple times to the local storage index

2 participants