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

Store and serve App logo files in App version directory in release directory

    Details

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

      Description

      Currently, App logo files uploaded by users are getting saved in the top level of the "media" directory in S3. Also, these files are named after whatever the user uploaded, with an added ".png" extension.

      This is problematic because it makes the S3 bucket file and folder organization very hard to understand and manage. Also, it's a bit weird that we automatically add the ".png" extension. It's not clear what will happen if the file is not actually in png format.

      Let's make our infrastructure more rationale as follows:

      • When a user uploads a logo file for a given version of an App, the logo file will be stored in the version subdirectory for that App.
      • Also, the logo file will be named after the App Bundle-Symbolic name and version.

      For example:

      User uploads a logo file named "goofy_Weird_strange_and_ bizarre name for a file.JPG" for an App with Bundle-SymbolicName "goofy-app" and Bundle-Version "0.0.1"

      The App Store will allow this file to be uploaded but will re-name it goofy-app-0.0.1.jpg.

      *Note*: We transform the file extension to lower-case letters and we keep whatever file extension the user assigned, assuming the file format is not actually getting changed to "png" in our code. (PNG is a different file format from JPEG, which is lossy and is typically used only for photographs and not computer-generated graphic art such as logo images.)

        Attachments

          Activity

          ann.loraine Ann Loraine created issue -
          ann.loraine Ann Loraine made changes -
          Field Original Value New Value
          Epic Link IGBF-1388 [ 17463 ]
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          ann.loraine Ann Loraine made changes -
          Status Open [ 1 ] To-Do [ 10305 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Would you work on this one next time you are in Kannapolis?
          Let me know if you have any questions/concerns or need anything!

          Show
          ann.loraine Ann Loraine added a comment - Would you work on this one next time you are in Kannapolis? Let me know if you have any questions/concerns or need anything!
          ann.loraine Ann Loraine made changes -
          Assignee Noor Zahara [ noor91zahara ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Un-assigning (for now) because Noor Zahara may need to take the rest of the week to focus on classes and other things.

          Show
          ann.loraine Ann Loraine added a comment - Un-assigning (for now) because Noor Zahara may need to take the rest of the week to focus on classes and other things.
          ann.loraine Ann Loraine made changes -
          Assignee Noor Zahara [ noor91zahara ]
          sameer Sameer Shanbhag (Inactive) made changes -
          Assignee Sameer Shanbhag [ sameer ]
          sameer Sameer Shanbhag (Inactive) made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Pull Request Submitted for this change: https://bitbucket.org/lorainelab/appstore/pull-requests/116/igbf-2016-change-thumbnail-and-screenshot/diff
          sameer Sameer Shanbhag (Inactive) made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Merged to master branch.

          Sameer Shanbhag please deploy to your dev appstore instance for testing.

          Show
          ann.loraine Ann Loraine added a comment - Merged to master branch. Sameer Shanbhag please deploy to your dev appstore instance for testing.
          ann.loraine Ann Loraine made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          ann.loraine Ann Loraine made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          ann.loraine Ann Loraine made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          ann.loraine Ann Loraine made changes -
          Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Change requests:

          • Do not prefix the file name with "logo_"
          • Do not store the file in a "logo" subdirectory. Instead, store it in the release directory.

          For example:

          If I upload a file named "1545938680.png" as the new logo for super-simple-igb-app (Bundle-SymbolicName) version 0.0.1 (Bundle-Version), then the file should be stored as follows in S3:

          /media/super-simple-igb-app/releases/0.0.1/super-simple-igb-app-0.0.1.png

          not as

          /media/super-simple-igb-app/releases/0.0.1/logo/logo_super-simple-igb-app-0.0.1.png

          Show
          ann.loraine Ann Loraine added a comment - Change requests: Do not prefix the file name with "logo_" Do not store the file in a "logo" subdirectory. Instead, store it in the release directory. For example: If I upload a file named "1545938680.png" as the new logo for super-simple-igb-app (Bundle-SymbolicName) version 0.0.1 (Bundle-Version), then the file should be stored as follows in S3: /media/super-simple-igb-app/releases/0.0.1/super-simple-igb-app-0.0.1.png not as /media/super-simple-igb-app/releases/0.0.1/logo/logo_super-simple-igb-app-0.0.1.png
          sameer Sameer Shanbhag (Inactive) made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Pull Request Submitted : https://bitbucket.org/lorainelab/appstore/pull-requests/118/igbf-2016-change-logo-location/diff
          Hide
          ann.loraine Ann Loraine added a comment -

          Merged but not yet deployed to dev-appstore-2.bioviz.org (App Store master branch)

          Show
          ann.loraine Ann Loraine added a comment - Merged but not yet deployed to dev-appstore-2.bioviz.org (App Store master branch)
          ann.loraine Ann Loraine made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          ann.loraine Ann Loraine made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          ann.loraine Ann Loraine made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          ann.loraine Ann Loraine made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Assignee Sameer Shanbhag [ sameer ]
          ann.loraine Ann Loraine made changes -
          Sprint Fall 2019 Sprint 3 [ 74 ] Fall 2019 Sprint 3, Fall 2019 Sprint 4 [ 74, 75 ]
          ann.loraine Ann Loraine made changes -
          Rank Ranked higher
          sameer Sameer Shanbhag (Inactive) made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          sameer Sameer Shanbhag (Inactive) made changes -
          Assignee Sameer Shanbhag [ sameer ]
          sameer Sameer Shanbhag (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Attachment LogoStorageTest.png [ 14434 ]
          Hide
          sameer Sameer Shanbhag (Inactive) added a comment -

          Working as Expected. Screenshot Attached. Moving it to done.

          Show
          sameer Sameer Shanbhag (Inactive) added a comment - Working as Expected. Screenshot Attached. Moving it to done.
          sameer Sameer Shanbhag (Inactive) made changes -
          Resolution Fixed [ 1 ] Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]
          ann.loraine Ann Loraine made changes -
          Workflow Fall 2019 Workflow Update [ 20773 ] Revised Fall 2019 Workflow Update [ 22515 ]
          ann.loraine Ann Loraine made changes -
          Resolution Done [ 10000 ]
          Status Closed [ 6 ] To-Do [ 10305 ]
          ann.loraine Ann Loraine made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          ann.loraine Ann Loraine made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          ann.loraine Ann Loraine made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          ann.loraine Ann Loraine made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          ann.loraine Ann Loraine made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          ann.loraine Ann Loraine made changes -
          Resolution Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

            People

            • Assignee:
              sameer Sameer Shanbhag (Inactive)
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: