Uploaded image for project: 'Synapse Python Client'
  1. SYNPY-508

syncToSynapse does not work if "the file path in "used" or "executed" of the manifest.tsv uses home directory shortcut "~"

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: None
    • Fix versions: py-1.7, py-1.7.3
    • Components: None
    • Labels:
      None
    • Sprint:

      Description

      The _sortAndFixProvenance() method actually expands out the home directory ~ while the "path" column in the manifest is not expanded out by readManifestFile(). This causes topological sort to fail
      Example:

      path	parent	someAnnotation	someOtherAnno	executed	used
      ~/sync1.txt	syn10165189	anno1	anno2		~/sync2.txt
      ~/sync2.txt	syn10165189	anno11	anno22		
      

      The dataframe ends up looking like:

                              path       parent someAnnotation someOtherAnno  \
      0           ~/sync1.txt  syn10165189          anno1         anno2
      1           ~/sync2.txt  syn10165189         anno11        anno22
      
        executed                               used
      0       []  [C:\Users\Develop/sync2.txt]
      1       []                                 []
      2       []                                 []
      
      

        Designs

          Attachments

            Activity

              People

              • Assignee:
                ziming.dong Ziming Dong
                Reporter:
                ziming.dong Ziming Dong
                Validator:
                Larsson Omberg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: