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

Implement right-click/three-dot menu options based on data availability

    Details

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

      Description

      Situation: The right-click/three-dot menu items need to be greyed out for certain file/folder selections.

      For example, if a user has read access to a file that is public (shared with anonymous) in the shared folder, they can analyze the file and download the file, but they cannot manage the links or add metadata. If the same file were to be given write access, then they could analyze, download, add metadata, but they still could not manage the link (this needs to be tested). If the file were then to be made not public, but still have write access, then analyze and add metadata would work, but not manage link or download.

      Task: Create a flowchart that considers each of the possibilities of own/write/read and public/private for files/folders. Implement code in IGB-CyVerse that limits the right-click/three-dot menu options accordingly.

        Attachments

          Issue Links

            Activity

            Hide
            nfreese Nowlan Freese added a comment - - edited

            Thought on viewing metadata:

            File is PRIVATE/PUBLIC, user has READ access - can we make it so that the user can view (but not interact) with the metadata in the right panel? This would make the metadata panel openable in all scenarios (public/private own/write/read).

            Situation: they would right-click on the file, click on metadata, the right panel would slide in with the metadata viewable, but the user would not be able to interact with it.

            *The metadata endpoint will allow a user with read access to view the metadata on a private/public file.

            Show
            nfreese Nowlan Freese added a comment - - edited Thought on viewing metadata: File is PRIVATE/PUBLIC, user has READ access - can we make it so that the user can view (but not interact) with the metadata in the right panel? This would make the metadata panel openable in all scenarios (public/private own/write/read). Situation: they would right-click on the file, click on metadata, the right panel would slide in with the metadata viewable, but the user would not be able to interact with it. *The metadata endpoint will allow a user with read access to view the metadata on a private/public file.
            Show
            chaitanya Chaitanya Kintali (Inactive) added a comment - Code Changes: https://bitbucket.org/nfreese/django-cyversedev/pull-requests/79/igbf-2060/diff Moving to Needs Testing.
            Hide
            nfreese Nowlan Freese added a comment -

            Tested according to ThreeDotMenu.docx test file. Everything is working correctly for public/private and read/write/own.

            Closing issue.

            Show
            nfreese Nowlan Freese added a comment - Tested according to ThreeDotMenu.docx test file. Everything is working correctly for public/private and read/write/own. Closing issue.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: