Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3917

Display a better error if a dependency isn't found when deploying an H5P package

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.5
    • 4.0.0
    • H5P
    • Hide

      This issue only needs to be tested in 1 device.

      1. In the app, login in our master site.
      2. Go to MM Dev Testing > H5P > MOBILE-3917.
      3. Click "Download file". Check that, after unzipping the file, the app displays the error: Missing dependency H5PEditor.ColorSelector 1.3 required by H5P.ImageHotspots 1.9.
      Show
      This issue only needs to be tested in 1 device. In the app, login in our master site. Go to MM Dev Testing > H5P > MOBILE-3917 . Click "Download file". Check that, after unzipping the file, the app displays the error: Missing dependency H5PEditor.ColorSelector 1.3 required by H5P.ImageHotspots 1.9.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

    Description

      Right now the app displays an error about a NOT NULL constraint, we should display a better error.

      The problem is in this function. If the dependency isn't included in the package (or it has a different version), it's not found in the DB and dependencyId is undefined.

      Attachments

        1. Captura de pantalla 2022-01-11 a las 17.39.27.png
          134 kB
          Juan Leyva
        2. image-2022-01-11-17-44-57-608.png
          233 kB
          Juan Leyva
        3. screenshot-1.png
          233 kB
          Juan Leyva

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22/Apr/22