mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
[PR #109] [MERGED] Import unique objects in the same order as the array of import sources #461
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/109
Author: @andriichernenko
Created: 10/8/2016
Status: ✅ Merged
Merged: 10/10/2016
Merged by: @JohnEstropia
Base:
swift3_develop← Head:import-unique-objects-order📝 Commits (1)
32a388eimport unique objects in the same order as the array of import sources📊 Changes
1 file changed (+32 additions, -35 deletions)
View changed files
📝
Sources/Importing/BaseDataTransaction+Importing.swift(+32 -35)📄 Description
Currently according to the documentation import of unique objects occurs in arbitrary order.
This behavior is different from the import of non-unique objects which might be unexpected (who reads the method docs anyway?). Furthermore, maintaining the order might be useful in some cases.
This pull request modifies
importUniqueObjects(...)method to ensure that the order of import sources, order of import method calls and the order of imported objects in the returned array are the same.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.