Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      1
    • Sprint:
      Summer 2019 Sprint 11, Summer 2019 Sprint 12, Fall 2019 Sprint 1, Fall 2019 Sprint 2, Fall 2019 Sprint 3, Fall 5 : 14 Oct to 25 Oct, Fall 6 : 28 Oct to 8 Nov

      Description

      Implement the ability to make a folder public -share a folder with another user-.

      1) Implement Share Folder API
      2) Create Models
      3) Create Views
      4) Create Request and Response Parser
      5) Unit Test the Endpoint

        Attachments

          Issue Links

            Activity

            Show
            chaitanya Chaitanya Kintali (Inactive) added a comment - Link for Code changes: https://bitbucket.org/nfreese/django-cyversedev/pull-requests/48/change-the-hardcoded-string-to-include-the/diff Moving to Needs Testing.
            Hide
            nfreese Nowlan Freese added a comment -

            There is currently no way to share a folder in the BioViz-CyVerse UI as we need to implement the right-click/3-dot functionality for folders, so this issue is currently blocked for testing by IGBF-1960.

            Show
            nfreese Nowlan Freese added a comment - There is currently no way to share a folder in the BioViz-CyVerse UI as we need to implement the right-click/3-dot functionality for folders, so this issue is currently blocked for testing by IGBF-1960 .
            Hide
            nfreese Nowlan Freese added a comment - - edited

            Email from Paul Sarando at CyVerse:

            "I think this is a known issue with our data service:

            When sharing a file with a user, our service also shares the enclosing
            parent folders of that file, in order for that user to be able to
            navigate down to the file within the DE's data window (those parent
            folders have to be readable to that user in order to display in the
            data window for navigation).

            I think that folder was automatically shared with anonymous after
            sharing its file, so our service decided no action needed to be taken
            when attempting to directly share that folder with anonymous.

            It seems unsharing first is a good workaround for now. Sorry for the
            inconvenience.

            Regards,
            Paul"

            Show
            nfreese Nowlan Freese added a comment - - edited Email from Paul Sarando at CyVerse: "I think this is a known issue with our data service: When sharing a file with a user, our service also shares the enclosing parent folders of that file, in order for that user to be able to navigate down to the file within the DE's data window (those parent folders have to be readable to that user in order to display in the data window for navigation). I think that folder was automatically shared with anonymous after sharing its file, so our service decided no action needed to be taken when attempting to directly share that folder with anonymous. It seems unsharing first is a good workaround for now. Sorry for the inconvenience. Regards, Paul"
            Hide
            nfreese Nowlan Freese added a comment -

            We will need to make two API calls to share a folder with a user or to make the folder public (the behavior is the same for both):
            First API call: unshare the folder
            Second API call: share the folder

            Show
            nfreese Nowlan Freese added a comment - We will need to make two API calls to share a folder with a user or to make the folder public (the behavior is the same for both): First API call: unshare the folder Second API call: share the folder
            Hide
            chaitanya Chaitanya Kintali (Inactive) added a comment -

            Link for (API) code Changes.
            https://bitbucket.org/nfreese/django-cyversedev/pull-requests/57/major-fixes/diff

            This issue is currently blocked for testing by IGBF-1960.

            Show
            chaitanya Chaitanya Kintali (Inactive) added a comment - Link for (API) code Changes. https://bitbucket.org/nfreese/django-cyversedev/pull-requests/57/major-fixes/diff This issue is currently blocked for testing by IGBF-1960 .
            Hide
            nfreese Nowlan Freese added a comment -

            I'm moving sharing of folders/files to the backlog. I changed the title of this issue to reflect that the folder will not be shared with user but made public (sharing with anonymous).

            Show
            nfreese Nowlan Freese added a comment - I'm moving sharing of folders/files to the backlog. I changed the title of this issue to reflect that the folder will not be shared with user but made public (sharing with anonymous).
            Hide
            nfreese Nowlan Freese added a comment -

            Now able to make a folder recursively public.

            Closing issue.

            Note: Due to how the Terrain API behaves in regard to "public" (shared with anonymous) data, if a single file within a folder is listed as public, then the enclosing folder is also considered public. This is somewhat confusing, as a folder can be listed as public, but not all files contained are public. Currently, user would see that a folder is public, but only a single file contained could be public. To make the folder "completely" public, they would need to remove the public link to the folder, and then make a public link for the folder. Due to Terrain I do not think there is any way to get around this, currently.

            Show
            nfreese Nowlan Freese added a comment - Now able to make a folder recursively public. Closing issue. Note: Due to how the Terrain API behaves in regard to "public" (shared with anonymous) data, if a single file within a folder is listed as public, then the enclosing folder is also considered public. This is somewhat confusing, as a folder can be listed as public, but not all files contained are public. Currently, user would see that a folder is public, but only a single file contained could be public. To make the folder "completely" public, they would need to remove the public link to the folder, and then make a public link for the folder. Due to Terrain I do not think there is any way to get around this, currently.

              People

              • Assignee:
                chaitanya Chaitanya Kintali (Inactive)
                Reporter:
                chaitanya Chaitanya Kintali (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: