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

Color View in IGB Based on Public/Owner

    Details

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

      Description

      Situation: The View in IGB button logic needs to be updated to better reflect visually what the status of the button is for each file based on several factors.

      1) File's type is not viewable in IGB: Do not show the View in IGB button.

      2) File is OWNED/NOT OWNED and PUBLIC: Button is green, on click toast stating data loading in IGB, data sent to IGB.

      3) File is OWNED and PRIVATE: Button is yellow, on click popup stating that file must be made public in order to view in IGB, user can click to cancel or click to make file public, which then turns the button green, toast stating data loading in IGB, data sent to IGB.

      4) File is NOT OWNED and PRIVATE: Button is grey, on click toast notification stating that user must ask owner of file to make it public.

      5) If View in IGB is green (PUBLIC) but IGB is not running, then show toast stating that IGB must be running.

        Attachments

          Issue Links

            Activity

            Hide
            nfreese Nowlan Freese added a comment -

            Data is now loaded in IGB as soon as user clicks Make Public in the popup if the file had been private.

            Closing issue.

            Show
            nfreese Nowlan Freese added a comment - Data is now loaded in IGB as soon as user clicks Make Public in the popup if the file had been private. Closing issue.
            Hide
            nfreese Nowlan Freese added a comment -

            Additional request: If the file is private, the user sees the popup informing them the file must be made public. If they click on Make Public - make the file public (working) and also send the file to IGB (to do).

            Show
            nfreese Nowlan Freese added a comment - Additional request: If the file is private, the user sees the popup informing them the file must be made public. If they click on Make Public - make the file public (working) and also send the file to IGB (to do).
            Hide
            nfreese Nowlan Freese added a comment -

            Additional request: Since we are still waiting for the isAnonymous flag, we need a workaround for how View in IGB checks if a file is public. Currently we have all files hardcoded as being public, so when a user clicks on View in IGB it assumes the file is public (even if it is actually private).

            For the workaround: When a user clicks on View in IGB, make an API call to user-permissions (if owned) or search (if not owned) to determine if the file is actually public. If it is public, the data is viewed in IGB. If it is not public, show the popup informing the user that the file must be made public to view in IGB.

            Show
            nfreese Nowlan Freese added a comment - Additional request: Since we are still waiting for the isAnonymous flag, we need a workaround for how View in IGB checks if a file is public. Currently we have all files hardcoded as being public, so when a user clicks on View in IGB it assumes the file is public (even if it is actually private). For the workaround: When a user clicks on View in IGB, make an API call to user-permissions (if owned) or search (if not owned) to determine if the file is actually public. If it is public, the data is viewed in IGB. If it is not public, show the popup informing the user that the file must be made public to view in IGB.
            Hide
            nfreese Nowlan Freese added a comment -

            WORKING 1) File's type is not viewable in IGB: Do not show the View in IGB button.

            WORKING 2) File is OWNED/NOT OWNED and PUBLIC: Button is green, on click toast stating data loading in IGB, data sent to IGB.

            WORKING 3) File is OWNED and PRIVATE: Button is yellow, on click popup stating that file must be made public in order to view in IGB, user can click to cancel or click to make file public, which then turns the button green, toast stating data loading in IGB, data sent to IGB.

            CHAITANYA TESTED 4) File is NOT OWNED and PRIVATE: Button is grey, on click toast notification stating that user must ask owner of file to make it public.

            WORKING 5) If View in IGB is green (PUBLIC) but IGB is not running, then show toast stating that IGB must be running.

            Show
            nfreese Nowlan Freese added a comment - WORKING 1) File's type is not viewable in IGB: Do not show the View in IGB button. WORKING 2) File is OWNED/NOT OWNED and PUBLIC: Button is green, on click toast stating data loading in IGB, data sent to IGB. WORKING 3) File is OWNED and PRIVATE: Button is yellow, on click popup stating that file must be made public in order to view in IGB, user can click to cancel or click to make file public, which then turns the button green, toast stating data loading in IGB, data sent to IGB. CHAITANYA TESTED 4) File is NOT OWNED and PRIVATE: Button is grey, on click toast notification stating that user must ask owner of file to make it public. WORKING 5) If View in IGB is green (PUBLIC) but IGB is not running, then show toast stating that IGB must be running.
            Hide
            nfreese Nowlan Freese added a comment -

            As part of this issue:
            Implement the popup discussed in situation 3 from the description.

            Show
            nfreese Nowlan Freese added a comment - As part of this issue: Implement the popup discussed in situation 3 from the description.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: