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

AI placements displayed when provider is enabled but not configured

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-83312-main
    • Hide

      Manual testing

      1. Log in as admin
      2. Go to Site admin -> AI -> Manage settings for AI providers
      3. Enable both 'Azure AI' and 'OpenAI'
      4. Go to the settings for 'Azure AI'
      5. Ensure there are no values set for 'apikey' and 'endpoint'
      6. Go to the settings for 'OpenAI'
      7. Ensure there are no values set for 'apikey' and 'orgid'
      8. Go to Site admin -> AI -> Manage settings for AI placements
      9. Ensure that both 'Course Assistance Placement' and 'HTML Text Editor Placement' are enabled.
      10. Create a course
      11. Create a 'Page' resource
      12. On the settings page for the 'Page' resource, locate the editor
      13. CONFIRM there are no generate AI buttons on the toolbar or in the 'Insert' menu
      14. Enter in any text into the editor and press 'Save and display'
      15. CONFIRM there is no 'Summarise' button above the text
      16. Go back to Site admin -> AI -> Manage settings for AI providers
      17. Go to the settings for 'Azure AI'
      18. Enter in a value for both the 'apikey' and 'endpoint' (can be anything) and save changes
      19. Go back to the 'Page' resource settings page and locate the editor
      20. CONFIRM there are now buttons for generating AI content
      21. Click cancel
      22. CONFIRM there is now a 'Summarise' button above the text
      Show
      Manual testing Log in as admin Go to Site admin -> AI -> Manage settings for AI providers Enable both 'Azure AI' and 'OpenAI' Go to the settings for 'Azure AI' Ensure there are no values set for 'apikey' and 'endpoint' Go to the settings for 'OpenAI' Ensure there are no values set for 'apikey' and 'orgid' Go to Site admin -> AI -> Manage settings for AI placements Ensure that both 'Course Assistance Placement' and 'HTML Text Editor Placement' are enabled. Create a course Create a 'Page' resource On the settings page for the 'Page' resource, locate the editor CONFIRM there are no generate AI buttons on the toolbar or in the 'Insert' menu Enter in any text into the editor and press 'Save and display' CONFIRM there is no 'Summarise' button above the text Go back to Site admin -> AI -> Manage settings for AI providers Go to the settings for 'Azure AI' Enter in a value for both the 'apikey' and 'endpoint' (can be anything) and save changes Go back to the 'Page' resource settings page and locate the editor CONFIRM there are now buttons for generating AI content Click cancel CONFIRM there is now a 'Summarise' button above the text
    • 2
    • Team Hedgehog 2024 Sprint 3.3

      Discovered while testing MDL-83276.

       

      Steps to reproduce

      1. Login as admin.
      2. Go to Site administration > AI > Manage settings for AI providers.
      3. Enable any of the providers (for instance, OpenAI), but ensure there are no keys set
      4. Go to Site administration > AI > Manage settings for AI placements.
      5. Enable HTML Text Editor Placement.
      6. Edit your user profile (for the TinyMCE editor).
      7. Open the Generate AI content > AI generate text.
      8. Write any text and click the Generate text button.

       

      Current behaviour

      A "Something went wrong. Try again later" error is displayed. 

       

      Expected behaviour

      I expect that the Generate AI content options won't be displayed if no provider is configured properly. 

       

        1. MDL-83312.png
          1.26 MB
          Ron Carl Alfon Yu

            david.woloszyn@moodle.com David Woloszyn
            sarjona Sara Arjona (@sarjona)
            Safat Shahin Safat Shahin
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours, 54 minutes
                5h 54m

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