performant-software / core-data-cloud

Core Data. In the Cloud.
0 stars 1 forks source link

CDC #300 - Import Duplicates #309

Closed dleadbetter closed 1 month ago

dleadbetter commented 1 month ago

This pull request adds the "Remove duplicates" option to the ImportModal, which will automatically merge records with the same name value. The option will need to be select on a per-file basis, as the behavior may only be desirable for some types of records.

This pull request also adds the ability to remove record_merges records. A list of related record_merges will be added to the bottom of each mergeable record.

Note: This PR is dependent on a PR in the core-data-connector repo.

Remove Duplicates

When select, records with the same name value will be merged after importing.

Screenshot 2024-10-02 at 12 18 51 PM

Per File

The option must be selected per-file for better control over which records are merged.

Screenshot 2024-10-02 at 12 19 03 PM

No duplicates

After import, the duplicates have been removed.

Screenshot 2024-10-02 at 12 19 19 PM

Relationships

Duplicate relationships have also been removed.

Screenshot 2024-10-02 at 12 19 30 PM

Record Merges

Record merges are now available to view/delete at the bottom of the edit page.

Screenshot 2024-10-02 at 12 19 52 PM Screenshot 2024-10-02 at 12 20 00 PM