Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-14512

Remember filename of uploaded DS9 Region file

    XMLWordPrintable

    Details

    • Story Points:
      3
    • Epic Link:
    • Sprint:
      SUIT Sprint 2018-08
    • Team:
      Science User Interface

      Description

      I notice that (successful) region file uploads produce an entry in the layer dialog of the form "REGION_PLOT_TYPE-(serial number)" (e.g., "REGION_PLOT_TYPE-7"). It would be helpful to the user if the filename of the uploaded file were retained and displayed in the layer dialog.

      Since regions can be created by API, not just by file upload, the file name convention can't apply in all cases, so the "serial number" approach may still be appropriate for API uploads. However, even in that case, I think a more user-friendly string than "REGION_PLOT_TYPE" would be an improvement. Does the API allow regions to be given names that could then be shown in the layer dialog?

       

      TODO in this ticket:

      • use the file name as label in the layer dialog. In cases that the file name is too long, treat it the same way as uploading an image, use only the characters fit in proper length space, and display the full name as tooltip when mouse over it.
      • make sure it behaves the same in API, providing a label field for caller to set the label for display.  If there is no label supplied, use string "ds9 region overlay-{N}". N will start at 1, and increase by sequence as it does now. 

      Also implemented: 

      • File upload pane is also updated to show the long file name of the uploaded file in shorter style as that shown in the layer dialog.

        Attachments

          Issue Links

            Activity

            No builds found.
            gpdf Gregory Dubois-Felsmann created issue -
            gpdf Gregory Dubois-Felsmann made changes -
            Field Original Value New Value
            Risk Score 0
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Epic Link DM-13641 [ 38991 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Sprint SUIT Sprint 2018-08 [ 738 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Assignee Cindy Wang [ cwang ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Description I notice that (successful) region file uploads produce an entry in the layer dialog of the form "REGION_PLOT_TYPE-(serial number)" (e.g., "REGION_PLOT_TYPE-7"). It would be helpful to the user if the filename of the uploaded file were retained and displayed in the layer dialog.

            Since regions can be created by API, not just by file upload, the file name convention can't apply in all cases, so the "serial number" approach may still be appropriate for API uploads. However, even in that case, I think a more user-friendly string than "REGION_PLOT_TYPE" would be an improvement. Does the API allow regions to be given names that could then be shown in the layer dialog?
            I notice that (successful) region file uploads produce an entry in the layer dialog of the form "REGION_PLOT_TYPE-(serial number)" (e.g., "REGION_PLOT_TYPE-7"). It would be helpful to the user if the filename of the uploaded file were retained and displayed in the layer dialog.

            Since regions can be created by API, not just by file upload, the file name convention can't apply in all cases, so the "serial number" approach may still be appropriate for API uploads. However, even in that case, I think a more user-friendly string than "REGION_PLOT_TYPE" would be an improvement. Does the API allow regions to be given names that could then be shown in the layer dialog?

             

            TODO in this ticket:
             * use the file name as label in the layer dialog. In cases that the file name is too long, treat it the same way as uploading an image, use only the characters fit in proper length space, and display the full name as tooltip when mouse over it.
             * make sure it behaves the same in API, providing a label field for caller to set the label for display.  If there is no label supplied, use string "ds9 region overlay-\{N}". N will start at 1, and increase by sequence as it does now. 
            cwang Cindy Wang [X] (Inactive) made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            cwang Cindy Wang [X] (Inactive) made changes -
            Reviewers Loi Ly [ loi ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            cwang Cindy Wang [X] (Inactive) made changes -
            Remote Link This issue links to "pull request (Web Link)" [ 17842 ]
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Description I notice that (successful) region file uploads produce an entry in the layer dialog of the form "REGION_PLOT_TYPE-(serial number)" (e.g., "REGION_PLOT_TYPE-7"). It would be helpful to the user if the filename of the uploaded file were retained and displayed in the layer dialog.

            Since regions can be created by API, not just by file upload, the file name convention can't apply in all cases, so the "serial number" approach may still be appropriate for API uploads. However, even in that case, I think a more user-friendly string than "REGION_PLOT_TYPE" would be an improvement. Does the API allow regions to be given names that could then be shown in the layer dialog?

             

            TODO in this ticket:
             * use the file name as label in the layer dialog. In cases that the file name is too long, treat it the same way as uploading an image, use only the characters fit in proper length space, and display the full name as tooltip when mouse over it.
             * make sure it behaves the same in API, providing a label field for caller to set the label for display.  If there is no label supplied, use string "ds9 region overlay-\{N}". N will start at 1, and increase by sequence as it does now. 
            I notice that (successful) region file uploads produce an entry in the layer dialog of the form "REGION_PLOT_TYPE-(serial number)" (e.g., "REGION_PLOT_TYPE-7"). It would be helpful to the user if the filename of the uploaded file were retained and displayed in the layer dialog.

            Since regions can be created by API, not just by file upload, the file name convention can't apply in all cases, so the "serial number" approach may still be appropriate for API uploads. However, even in that case, I think a more user-friendly string than "REGION_PLOT_TYPE" would be an improvement. Does the API allow regions to be given names that could then be shown in the layer dialog?

             

            TODO in this ticket:
             * use the file name as label in the layer dialog. In cases that the file name is too long, treat it the same way as uploading an image, use only the characters fit in proper length space, and display the full name as tooltip when mouse over it.
             * make sure it behaves the same in API, providing a label field for caller to set the label for display.  If there is no label supplied, use string "ds9 region overlay-\{N}". N will start at 1, and increase by sequence as it does now. 

            Also implemented: 
             * File upload pane is also updated to show the long file name of the uploaded file in shorter style as that shown in the layer dialog.
            xiuqin Xiuqin Wu [X] (Inactive) made changes -
            Story Points 3
            cwang Cindy Wang [X] (Inactive) made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            cwang Cindy Wang [X] (Inactive) made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]

              People

              Assignee:
              cwang Cindy Wang [X] (Inactive)
              Reporter:
              gpdf Gregory Dubois-Felsmann
              Reviewers:
              Loi Ly
              Watchers:
              Gregory Dubois-Felsmann, Loi Ly, Xiuqin Wu [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.