Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1661

Investigate shared folder API for CyVerse

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Our current API calls to list the CyVerse files does not include the shared folder. Need to find out how to access the shared folder, what the API call would be.

      Add API call to the CyVerse API walkthrough.

        Attachments

          Issue Links

            Activity

            nfreese Nowlan Freese created issue -
            nfreese Nowlan Freese made changes -
            Field Original Value New Value
            Epic Link IGBF-1482 [ 17568 ]
            nfreese Nowlan Freese made changes -
            Assignee Ann Loraine [ aloraine ]
            nfreese Nowlan Freese made changes -
            Link This issue relates to IGBF-1662 [ IGBF-1662 ]
            nfreese Nowlan Freese made changes -
            Assignee Nowlan Freese [ nfreese ]
            nfreese Nowlan Freese made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Hide
            nfreese Nowlan Freese added a comment -

            I'm not sure if this will be possible without changes to the Agave API, or implementing our own "shared" system and maintaining a database around it.

            An API call to: https://agave.iplantc.org/files/v2/listings/shared does not return the shared folder, but instead returns the community folder. This may be useful, except that all folders/files within this directory are labelled as READ (many are actually private), which would make it impossible for us to parse the folders and only show what the user has access to.

            The "shared" folder in the Discovery Environment seems to be created by putting all of the usernames that have shared data with the user in one folder. However, using a listings API call (https://agave.iplantc.org/files/v2/listings) returns thousands of usernames, all of which are labelled as READ (which is again inaccurate). Making an API call directly against the user (suppose nfreese shared a file with nowlanf - https://agave.iplantc.org/files/v2/listings/nfreese) will display the shared data/folder. Oddly, all files/folders show up, even those that are private, and again are all labelled with READ access.

            I can't see any easy way to use the current API calls to create a shared folder for the user. We could allow users to share files/folders, but then we would need to have a database containing what has/has not been shared (this also runs into the similar issue we have with public/private permission disparities between Agave and the Discovery Environment).

            Show
            nfreese Nowlan Freese added a comment - I'm not sure if this will be possible without changes to the Agave API, or implementing our own "shared" system and maintaining a database around it. An API call to: https://agave.iplantc.org/files/v2/listings/shared does not return the shared folder, but instead returns the community folder. This may be useful, except that all folders/files within this directory are labelled as READ (many are actually private), which would make it impossible for us to parse the folders and only show what the user has access to. The "shared" folder in the Discovery Environment seems to be created by putting all of the usernames that have shared data with the user in one folder. However, using a listings API call ( https://agave.iplantc.org/files/v2/listings ) returns thousands of usernames, all of which are labelled as READ (which is again inaccurate). Making an API call directly against the user (suppose nfreese shared a file with nowlanf - https://agave.iplantc.org/files/v2/listings/nfreese ) will display the shared data/folder. Oddly, all files/folders show up, even those that are private, and again are all labelled with READ access. I can't see any easy way to use the current API calls to create a shared folder for the user. We could allow users to share files/folders, but then we would need to have a database containing what has/has not been shared (this also runs into the similar issue we have with public/private permission disparities between Agave and the Discovery Environment).
            nfreese Nowlan Freese made changes -
            Sprint Spring 2019 Sprint 5 [ 63 ]
            nfreese Nowlan Freese made changes -
            Resolution Done [ 10000 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            Hide
            nfreese Nowlan Freese added a comment -

            Closing this issue as we have moved to Terrain APIs, which allow for viewing shared folders/files. Shared folders can be reached at the endpoint: https://de.cyverse.org/terrain/secured/filesystem/paged-directory?path=/iplant/home

            Show
            nfreese Nowlan Freese added a comment - Closing this issue as we have moved to Terrain APIs, which allow for viewing shared folders/files. Shared folders can be reached at the endpoint: https://de.cyverse.org/terrain/secured/filesystem/paged-directory?path=/iplant/home
            ann.loraine Ann Loraine made changes -
            Workflow Loraine Lab Workflow [ 18383 ] Fall 2019 Workflow Update [ 20109 ]
            ann.loraine Ann Loraine made changes -
            Workflow Fall 2019 Workflow Update [ 20109 ] Revised Fall 2019 Workflow Update [ 22243 ]

              People

              • Assignee:
                nfreese Nowlan Freese
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: