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

AI: Bootstrap upgrade broke AI image model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 5.0
    • 5.0
    • AI
    • MOODLE_500_STABLE
    • MOODLE_500_STABLE
    • MDL-84705-main
    • Hide

      Setup

      1. Login as administrator
      2. Install moodle-aiprovider_dummyai.zip plugin to have a simple AI provider for the test (super-big thanks to Pau Ferrer for this plugin!)
      3. Go to Site administration > AI > Providers
      4. Click on Create a new provider instance
      5. Select "DummyAI" on Choose AI provider plugin
      6. Select any name on Name for instance
      7. Enable the created provider
      8. Go to Site administration > AI > Placements
      9. Enable Text editor placement

      Test

      1. Login as any user
      2. Go to Profile under user menu
      3. Click on Edit profile
      4. In the "Description" field click on Generate AI content > AI generate image
      5. Confirm that you can change between Image quality buttons
      6. Confirm that you can change between _Image shape buttons
      7. Add any text on the Describe the image you want AI to create field
      8. Press Generate image
      9. Change between Image shape and click on Regenerate
      10. Confirm that the image shapes of the generated images are different
      Show
      Setup Login as administrator Install moodle-aiprovider_dummyai.zip plugin to have a simple AI provider for the test (super-big thanks to Pau Ferrer for this plugin!) Go to Site administration > AI > Providers Click on Create a new provider instance Select "DummyAI" on Choose AI provider plugin Select any name on Name for instance Enable the created provider Go to Site administration > AI > Placements Enable Text editor placement Test Login as any user Go to Profile under user menu Click on Edit profile In the "Description" field click on Generate AI content > AI generate image Confirm that you can change between Image quality buttons Confirm that you can change between _Image shape buttons Add any text on the Describe the image you want AI to create field Press Generate image Change between Image shape and click on Regenerate Confirm that the image shapes of the generated images are different
    • Hide

      Code verified against automated checks.

      Checked MDL-84705 using repository: https://github.com/roland04/moodle.git

      More information about this report

      Built on: Wed Mar 5 12:56:24 UTC 2025

      Show
      Code verified against automated checks. Checked MDL-84705 using repository: https://github.com/roland04/moodle.git main (0 errors / 0 warnings) [branch: MDL-84705-main | CI Job ] More information about this report Built on: Wed Mar 5 12:56:24 UTC 2025
    • 2
    • HQ 2025 Sprint I1.2 Moppies

      The upgrade to Bootstrap 5.3 in MDL-75669 has broken the image quality and Image shape buttons on the image generation model for the text editor placment.

      Git bisect has verififed it is the commit for MDL-75669 hash: 59bc7889922

      The root cause hasn't been verified but it looks like Bootstrap 5.3 changes the formatting of button lists.

      When the image quality or shape buttons in the model are pressed after the upgrade they no longer switch values.

        1. MDL-84705_test.png
          MDL-84705_test.png
          483 kB
        2. MDL-84705_test2.png
          MDL-84705_test2.png
          582 kB
        3. moodle-aiprovider_dummyai.zip
          12 kB
        4. result.png
          result.png
          52 kB
        5. screenshot-1.png
          screenshot-1.png
          45 kB

            mikelmartíncorrales Mikel Martín Corrales
            matt.porritt@moodle.com Matt Porritt
            Huong Nguyen Huong Nguyen
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h

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