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

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

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

amisevsk
Copy link
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 jozu-ai:main Jan 28, 2025
3 checks passed
@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