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

Fix Org Import duplicate collections #5200

Merged
merged 1 commit into from
Nov 17, 2024

Conversation

BlackDex
Copy link
Collaborator

@BlackDex BlackDex commented Nov 16, 2024

This fixes an issue with collections be duplicated same as was an issue with folders. Also made some optimizations by using HashSet where possible and define the Vec/Hash capacity. And instead of passing objects only use the UUID which was the only value we needed.

Also found an issue with importing a personal export via the Org import where folders are used. Since Org's do not use folder we needed to clear those out, same as Bitwarden does.

Fixes #5193

This fixes an issue with collections be duplicated same as was an issue with folders.
Also made some optimizations by using HashSet where possible and device the Vec/Hash capacity.
And instead of passing objects only use the UUID which was the only value we needed.

Also found an issue with importing a personal export via the Org import where folders are used.
Since Org's do not use folder we needed to clear those out, same as Bitwarden does.

Fixes dani-garcia#5193

Signed-off-by: BlackDex <black.dex@gmail.com>
@dani-garcia dani-garcia merged commit cdfdc6f into dani-garcia:main Nov 17, 2024
5 checks passed
@BlackDex BlackDex deleted the fix-org-coll-import branch November 17, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants