Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Story Points:
      4
    • Sprint:
      Summer 2019 Sprint 7, Summer 2019 Sprint 8, Summer 2019 Sprint 9, Summer 2019 Sprint 10, Summer 2019 Sprint 11, Summer 2019 Sprint 12, Fall 2019 Sprint 2, Summer 6: 17 Aug - 28 Aug, Summer 7: 31 Aug - 11 Sep, Fall 1: 14 Sep - 25 Sep, Fall 2: 28 Sep - 9 Oct, Fall 3: Oct 12 - Oct 23

      Description

      Task: Implement a right-click/three dot menu option to download a file from BioViz Connect. To implement, pass the access token from the server to the client and have the client initiate an authenticated download. This will allow the user to download the file directly without requiring the file to be made public.

      Note: Make sure files are downloaded and not opened in the browser.

        Attachments

          Issue Links

            Activity

            Hide
            nfreese Nowlan Freese added a comment -

            Closing issue.

            Show
            nfreese Nowlan Freese added a comment - Closing issue.
            Show
            nfreese Nowlan Freese added a comment - Merged https://bitbucket.org/nfreese/django-cyversedev/pull-requests/200/igbf-1663-implemented-download-toast
            Hide
            nfreese Nowlan Freese added a comment - - edited

            Download appears to be working correctly, but I would like two additions/changes:

            1) Add a toast "Preparing download" that lasts for 5 seconds and then fades out. It seems like it can take several seconds once I click Download for the download to start (tested on Firefox). Good to give user some kind of feedback that the download is occurring.

            2) Rearrange the right-click menu:

            Copy Name
            Rename...
            --------------------
            Cut
            Paste
            ----------------------
            Download
            ----------------------
            Manage Link
            Metadata
            Analyse

            Show
            nfreese Nowlan Freese added a comment - - edited Download appears to be working correctly, but I would like two additions/changes: 1) Add a toast "Preparing download" that lasts for 5 seconds and then fades out. It seems like it can take several seconds once I click Download for the download to start (tested on Firefox). Good to give user some kind of feedback that the download is occurring. 2) Rearrange the right-click menu: Copy Name Rename... -------------------- Cut Paste ---------------------- Download ---------------------- Manage Link Metadata Analyse
            Show
            nfreese Nowlan Freese added a comment - Merged https://bitbucket.org/nfreese/django-cyversedev/pull-requests/185/igbf-1663-implemented-download-file
            Hide
            karthik Karthik Raveendran added a comment - - edited

            There seems to be an issue with filenames with special characters. Can you look at that Chaitanya Kintali?
            P.S. Check image attached to this issue

            Show
            karthik Karthik Raveendran added a comment - - edited There seems to be an issue with filenames with special characters. Can you look at that Chaitanya Kintali ? P.S. Check image attached to this issue
            Show
            nfreese Nowlan Freese added a comment - Merged https://bitbucket.org/nfreese/django-cyversedev/pull-requests/182/igbf-1663
            Hide
            nfreese Nowlan Freese added a comment -

            I have updated this issue and recommend moving forward on it. After talking with CyVerse about security, they are okay with us sending the access token to the client. That way the client can initiate an authenticated download. This allows us to avoid streaming the data through our server, and allows the user to download the file whether or not it is public.

            Show
            nfreese Nowlan Freese added a comment - I have updated this issue and recommend moving forward on it. After talking with CyVerse about security, they are okay with us sending the access token to the client. That way the client can initiate an authenticated download. This allows us to avoid streaming the data through our server, and allows the user to download the file whether or not it is public.
            Hide
            ann.loraine Ann Loraine added a comment -

            Upon discussion with Nowlan Freese and [~aloraine], decided to "punt" and likely implement in 2.0.0 release. Will revisit in final sprint of fall.

            Show
            ann.loraine Ann Loraine added a comment - Upon discussion with Nowlan Freese and [~aloraine] , decided to "punt" and likely implement in 2.0.0 release. Will revisit in final sprint of fall.
            Hide
            nfreese Nowlan Freese added a comment -

            The right-click pop-up menu download functionality is partly working. It is making the file public and then opening the file in a new tab (if text) or downloading it (if binary). There are currently some testing pop-ups in place. There needs to be a pop-up that informs the user the file must be made public to download and gives a yes/no buttons. The file should be downloaded if it is a text or binary file, not opened in another tab.

            The three dot menu download functionality does not appear to be connected/working.

            Show
            nfreese Nowlan Freese added a comment - The right-click pop-up menu download functionality is partly working. It is making the file public and then opening the file in a new tab (if text) or downloading it (if binary). There are currently some testing pop-ups in place. There needs to be a pop-up that informs the user the file must be made public to download and gives a yes/no buttons. The file should be downloaded if it is a text or binary file, not opened in another tab. The three dot menu download functionality does not appear to be connected/working.
            Hide
            nfreese Nowlan Freese added a comment -

            Initially we tried to implement the download functionality using the download API. However, there was no way to directly stream the data to the user, which would lead to large volumes of data passing through our server. Instead, we have opted to make the files public and then use the public link to download the file.

            Show
            nfreese Nowlan Freese added a comment - Initially we tried to implement the download functionality using the download API. However, there was no way to directly stream the data to the user, which would lead to large volumes of data passing through our server. Instead, we have opted to make the files public and then use the public link to download the file.

              People

              • Assignee:
                karthik Karthik Raveendran
                Reporter:
                nfreese Nowlan Freese
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: