mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-13 23:23:29 +01:00
[PR #111] [CLOSED] Prevent importUniqueObjects from creating duplicates #460
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JohnEstropia/CoreStore/pull/111
Author: @andriichernenko
Created: 10/12/2016
Status: ❌ Closed
Base:
swift3_develop← Head:duplicate-import-fix📝 Commits (1)
4c3bec2fix duplication when using importUniqueObjects with non-unique import sources📊 Changes
2 files changed (+72 additions, -7 deletions)
View changed files
📝
CoreStoreTests/ImportTests.swift(+59 -0)📝
Sources/Importing/BaseDataTransaction+Importing.swift(+13 -7)📄 Description
Unfortunately, pull request #109 introduced a bug into
importUniqueObjectsmethod: whensourceArraycontains import sources with same IDs, multiple objects will be created (from the last of the input sources).The purpose of this pull request is to fix this bug. Let me know if I need to create an issue for the bug before this pull request can be merged.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.