Skip to content

Handle duplicate remote files in resources #33

@pcstout

Description

@pcstout

We can end up with a remote file or directory having duplicate resource entries.
data_push/pull/remove/change will error if providing an identifier that matches more than one resource.

We need to decide how to handle these.

Example config showing duplicates (syn:syn18676190):

{
  "name": "syn:syn18676187",
  "version": null,
  "remote_uri": "syn:syn18676187",
  "id": "ba469348-59da-4d36-b4c2-a7112971be20",
  "rel_path": "data/core/data1/core/F1",
  "root_id": null,
  "data_type": "core"
},
{
  "name": "test_file_B.txt",
  "version": null,
  "remote_uri": "syn:syn18676190",
  "id": "a790ea4d-5866-4fc5-9a55-0e9c2040ef37",
  "rel_path": "data/core/data1/core/F1/F2/F3/test_file_B.txt",
  "root_id": "ba469348-59da-4d36-b4c2-a7112971be20",
  "data_type": "core"
},
{
  "name": "syn:syn18676190",
  "version": null,
  "remote_uri": "syn:syn18676190",
  "id": "9dabb5e2-8514-47a6-854f-ebaf57ab8c81",
  "rel_path": "results/data1/core/F1/F2/F3/test_file_B.txt",
  "root_id": null,
  "data_type": "results"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions