Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-78930

Add file types for PSD and JSON

XMLWordPrintable

    • MOODLE_403_STABLE
    • MOODLE_403_STABLE
    • MDL-78930-master
    • Hide

      Before upgrade

      1. Login as admin.
      2. Restore the attached course
      3. Open the course and screenshot the course page
      4. Open the folder
      5. Choose Edit
      6. Screenshot the list of files
      7. Run the following SQL:

        SELECT id, filename, mimetype FROM mdl_files WHERE filename != '.' and filename not like '%.mbz' ORDER BY id DESC LIMIT 12;
        

      8. Check the mimetype for the .psd files is 'document/unknown'.

      Testing scenario 1. New MIME and icons

      1. Apply the patch.
      2. Login as admin.
      3. Run the upgrade.
      4. Go to "Site administration > Server > File types".
      5. Check there is a new row for "PSD" MIME type, with the PSD icon.
      6. Go to the Course.
      7. Check the icon for the URL resources is different than before the upgrade.
      8. Go to the Folder and Edit it.
      9. Check the icons for the .psd, .json and .css/.scss are different than before the upgrade.

      Testing scenario 2. Upgrade process

      1. Run the following SQL:

        SELECT id, filename, mimetype FROM mdl_files WHERE filename != '.' and filename not like '%.mbz' ORDER BY id DESC LIMIT 12;
        

      2. Check the mimetype for the .psd files is now 'image/vnd.adobe.photoshop'.
      3. Confirm that none of the other files have been modified.
      Show
      Before upgrade Login as admin. Restore the attached course Open the course and screenshot the course page Open the folder Choose Edit Screenshot the list of files Run the following SQL: SELECT id, filename, mimetype FROM mdl_files WHERE filename != '.' and filename not like '%.mbz' ORDER BY id DESC LIMIT 12 ; Check the mimetype for the .psd files is 'document/unknown'. Testing scenario 1. New MIME and icons Apply the patch. Login as admin. Run the upgrade. Go to "Site administration > Server > File types". Check there is a new row for "PSD" MIME type, with the PSD icon. Go to the Course. Check the icon for the URL resources is different than before the upgrade. Go to the Folder and Edit it. Check the icons for the .psd, .json and .css/.scss are different than before the upgrade. Testing scenario 2. Upgrade process Run the following SQL: SELECT id, filename, mimetype FROM mdl_files WHERE filename != '.' and filename not like '%.mbz' ORDER BY id DESC LIMIT 12 ; Check the mimetype for the .psd files is now 'image/vnd.adobe.photoshop'. Confirm that none of the other files have been modified.
    • 2
    • HQ 2023 Sprint I3.1 Moppies

      While working on MDL-78884, the UX team asked to add the following file types:

      • PSD. The icon has been there all this time, but no MIME type was using it. The new PSD icon was updated in MDL-78884. Mime type (from the IANA list): image/vnd.adobe.photoshop
      • JSON. A new icon has been designed. Apart from using it for the new JSON mime types, it will also be updated for CSS. Mime type (from the IANA list): application/json

        1. (1) Passed -- (Master)MDL-78930.png
          42 kB
          Kim Jared Lucas
        2. (2) Passed -- (Master)MDL-78930.png
          70 kB
          Kim Jared Lucas
        3. (I) Passed -- (Master)MDL-78930.png
          24 kB
          Kim Jared Lucas
        4. 78930.mbz
          206 kB
          Andrew Lyons
        5. json.svg
          2 kB
          Sara Arjona (@sarjona)

            sarjona Sara Arjona (@sarjona)
            sarjona Sara Arjona (@sarjona)
            Mikel Martín Corrales Mikel Martín Corrales
            Andrew Lyons Andrew Lyons
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 20 minutes
                3h 20m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.