MDL-40515: report_log: List activities in optgroups

Prevents users from generating reports on invalid values

Change-Id: If358fa06c8dadd33bb2875ea54ab4bce97b16aff
MDL-22669 course: Display section number for orphaned activities
MDL-38664 Lesson mod: fixed re-attempt unseen page
MDL-38664 Lesson mod: code improvement for lesson attemps
MDL-26244 mod_date:added some logic show or hide the file picker button based on repository availability
MDL-29441 Chat: Use a valid name for chat popup actions
MDL-36818 cas: improve SSL validation
MDL-42278 behat: block context can be returned to original state

Automate MDLQA-1547 - The context of a block can always be returned to it's original state.
MDL-42293 behat: Add suport for custom admin paths to the behat upload repository step
MDL-35402 forms - prevent crash when multiple rules defined on an editor element
MDL-31405 Assignment reset issue solved
MDL-42347 course: Added behat test for deleting a course
MDL-31405 Assignment: Fixed date in reset to be called once
MDL-42323 coursecat: Changed phpdocs in deprecated function get_categories
MDL-42272 groups: Add automated tests for MDLQA-145
MDL-42112 Tablelib: Add unit tests (some)
MDL-42112 tablelib: Generate the correct number of cols for empty rows

(And a test for it).
MDL-38734: Automated backup failure causing all course to fail
MDL-42290 choice: Add a automated test to verify limiting number of responses works
MDL-42386 fix invalid etag comparison

Credit goes to Eloy Lafuente, thanks!