24313 Commits

Author SHA1 Message Date
Jun Pataleta
7e39cee0f6
Merge branch 'MDL-79633-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-10-11 13:41:36 +08:00
Sara Arjona
66ff0a871f
Merge branch 'MDL-77816-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-10-10 09:21:39 +02:00
Paul Holden
5c30074d99
MDL-79633 mod_data: correct timemodified tag replacement attribute. 2023-10-09 19:41:12 +01:00
Laurent David
8e53ef0162 MDL-71414 mod_h5pactivity: Add a new "None" message
* In matching types of questions, sometimes the user does not answer all
questions. We now display "None" in the result report. The answer can
be either correct or incorrect.
* Fix "unknown" answer constant name.
2023-10-09 11:45:11 +02:00
Laurent David
2a2d3c85bb MDL-71414 mod_h5pactivity: Fix issue with drop down report
* Drag and Drop report were missing answers when target could be dropped on multiple
drop zones.
2023-10-09 11:45:10 +02:00
Paul Holden
52ada82da2
MDL-77816 mod_bigbluebuttonbn: feedback when validating completion. 2023-10-04 21:07:31 +01:00
Yannick Schillinger
fca2456e1f
MDL-77816 mod_bigbluebuttonbn: Fix completionValidate argument format 2023-10-04 20:27:34 +01:00
Paul Holden
a067663a63
MDL-79310 forumreport_summary: report only on users who can be viewed. 2023-10-04 14:31:31 +08:00
Paul Holden
a55e18fb81
MDL-79310 mod_forum: ensure only visible users can be exported. 2023-10-04 14:31:30 +08:00
Mikel Martín
fce36ecf4f MDL-79509 mod_wiki: Improve comment editing 2023-10-04 02:10:16 +02:00
Paul Holden
74b62601d0 MDL-79409 mod_imscp: appropriate unserialization of package structure. 2023-10-04 02:10:16 +02:00
Paul Holden
f428d58df6 MDL-79408 mod_lesson: safer unserializing/comparison of properties. 2023-10-04 02:10:16 +02:00
Laurent David
fc26693229 MDL-77795 mod_bigbluebuttonbn: Change meetingID on duplicate
* We need to set a different meetingID when duplicating or importing a
BigBlueButtonBN activity to prevent unwanted sharing of recordings between
meetings.
2023-10-04 02:10:16 +02:00
Paul Holden
c25092b232 MDL-78971 quiz_grading: escape user identity fields on display. 2023-10-04 02:10:16 +02:00
Andrew Nicols
d78dda7754
MDL-78580 mod_quiz: Do not concatenate lang strings 2023-10-03 12:03:55 +08:00
Andrew Nicols
2f6519d2de
Merge branch 'MDL-78580_401_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_401_STABLE 2023-10-03 11:23:54 +08:00
Huong Nguyen
ff7530e1d6
Merge branch 'MDL-79247_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE 2023-10-03 09:57:55 +07:00
Jun Pataleta
fbcb5793c3
Merge branch 'MDL-79254_401_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_401_STABLE 2023-10-03 09:42:08 +08:00
Eloy Lafuente (stronk7)
96e62487e7
MDL-79247 forum: Workaround same-time discussion modified dates bug
Within the forum_get_discussion_neighbours() function of forum
when the discussions timemodified (last post) is the same, there
is a bug that does strange things when calculating the prev and
next discussions.

Note that, in real life, this is really hard to achieve, but in tests,
when multiple discussions and post can be created by generators in the
same second (specially when the test machine is quick), chances of
facing that problem are higher.

By adding 1 second wait, we ensure that the discussions won't have
the same timemodified (last post) and workaround the problem.

No mater of that, the problem deserves an issue to be created
so we guarantee from code that it also works ok when the same
timemodified (last post) situation happens.
2023-10-01 23:46:19 +02:00
Eloy Lafuente (stronk7)
b342562457
MDL-79247 forum: Make discussion list ordering deterministic
Note that normally this doesn't matter much, but there are situations
when we want the discussion list ordering fully consistent /
deterministic.

Specifically, when discussions (or forum posts )are created in the
same second, or when the discussion titles are repeated, or 2
discussions have the same number of votes... (any criteria in general),
in the context of testing, we don't want the order
to be non-consistent, so we need to provide an extra sorting
criterion to make it fully deterministic.

So, in this case, we are adding a sort by discussion.id <<DIRECTION>>
that is an unique value, primary key... so cheap to calculate and,
that way, when the 1st sorting column has repeated values, the id
will decide.
2023-10-01 23:46:19 +02:00
Huong Nguyen
3b31c13678
Merge branch 'MDL-79274' of https://github.com/catalystfd/moodle into MOODLE_401_STABLE 2023-09-28 15:49:40 +07:00
Sara Arjona
8dad07455d
Merge branch 'MDL-78918-401' of https://github.com/ssj365/moodle into MOODLE_401_STABLE 2023-09-28 09:52:49 +02:00
Shamiso.Jaravaza
7127744f39 MDL-78918 mod_bigbluebuttonbn: Fix notifications 2023-09-27 12:28:57 -06:00
Mark Johnson
fbb6717550 MDL-79254 quiz_statistics: Convert recalculate task to ad-hoc
Previously, quiz statistics processing happened on a scheduled task.
This task looked for all quizzes with completed attempts, then
determined if those quizzes had a statistics calculation that's newer
than the most recent attempt, then ran the statistics calculation if
needed. It was hard coded to stop processing after 1 hour.

The queries involved in determining which quizzes needed processing
weren't terribly efficient, and combined with the 1 hour limit this made
the statistics unusable on large sites, where they are the most useful.

This converts the scheduled task to an ad-hoc task, and uses an event
observer for mod_quiz\event\attempt_submitted to queue a task when
it is needed. This removes the need for a query to work out what needs
processing, and allows the task processing to be scaled up as needed.
2023-09-27 15:42:41 +01:00
Sara Arjona
54d446ce43
MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:57:33 +02:00
Shamim Rezaie
24a5b078f7 Merge branch 'MDL-78895-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-20 23:43:43 +10:00
Mark Johnson
e6b80e155b MDL-78580 report_statistics: Prevent database deadlocks when viewing
If a quiz had a long job to calculate statstics running, this would
cause pages that may also attempt a recalculation (the statistics report
page or question bank) to load very slowly, and possibly result in a
database deadlock.

This change will firstly prevent the question bank page performing
analysis calculations at all, since these are not required for this
page, which will speed up loading and prevent deadlocks on this page.

Secondly, this adds a lock to the recalcuation process so that it cannot
run twice concurrently. This will present the user with a message to
indicate that it is waiting for a running calculation until it is
complete, and eventually it will timeout with a message and debugging.
2023-09-15 15:16:12 +01:00
Ilya Tregubov
748814dc61
Merge branch 'MDL-79220-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-09-14 17:43:57 +08:00
Ilya Tregubov
f154d35e13
Merge branch 'MDL-78806-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-13 10:55:47 +08:00
Ilya Tregubov
b0a931b48a
Merge branch 'm41_MDL-63539' of https://github.com/danmarsden/moodle into MOODLE_401_STABLE 2023-09-11 11:15:33 +08:00
Jun Pataleta
007988a5f2
MDL-78806 mod_assign: Use new Behat step for checking page title 2023-09-10 10:54:18 +08:00
Jun Pataleta
49393a1608
MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:56:50 +08:00
Angelia Dela Cruz
fe07a2032c MDL-79220 mod_glossary: Behat for glossary entry with attachment 2023-09-07 10:13:08 +08:00
Francis Devine
57a1df54e1 MDL-79274 assignfeedback_editpdf: Fix permission error in conversion
This was causing the adhoc task to fail with a nopermission error, when
a user was unenrolled from a course before their assignment submission
could be converted into a pdf.

Comments from MDL-56810 indicate the correct approach is to not attempt
a conversion in those cases.
2023-09-07 09:27:22 +12:00
Paul Holden
0ef9be6004
MDL-78895 mod_url: fix double encoded ampersands in URL.
Also restore the `$attributes` property (previously `$extra` prior
to 8d8af19a) to define URL opening behaviour, e.g. in popup or new
window.
2023-09-06 13:24:46 +01:00
Andrew Nicols
0356a9ba84
Merge branch 'MDL-79059-401-2' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-08-29 11:37:07 +08:00
Sara Arjona
ccd2ea3d60
Merge branch 'MDL-78749-401' of https://github.com/BruceGoodGuy/moodle into MOODLE_401_STABLE 2023-08-28 14:26:13 +02:00
Jun Pataleta
9db9ff3028
MDL-79059 mod_data: Enclose preset options within a fieldset
Enclosing the radio buttons in a fieldset to provide additional context
to the purpose of the fields.
2023-08-26 10:40:34 +08:00
Jun Pataleta
bd76d860c0
MDL-79059 mod_data: Fix presets accessibility issues
* Add sr-only column headers for the select and actions columns.
* Define unique IDs for the preset name links using array indices.
* Label the radio buttons via aria-labelledby attribute pointing to
the ID of the preset's link.
2023-08-26 10:40:34 +08:00
Simey Lameze
ea1cf5d927 MDL-79015 behat: make verification step more specific 2023-08-25 08:55:08 +08:00
Andrew Nicols
0d3cdb0c10
Merge branch 'MDL-79075-attempt_reviewed-401' of https://github.com/leonstr/moodle into MOODLE_401_STABLE 2023-08-25 00:16:15 +08:00
Sara Arjona
d437bdafc4
Merge branch 'MDL-78965-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-08-24 16:38:36 +02:00
Huong Nguyen
f12e010847
Merge branch 'MDL-78302-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-08-24 15:26:39 +07:00
Jun Pataleta
87a9b1c8ba
Merge branch 'MDL-79015-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-08-24 15:53:14 +08:00
Angelia Dela Cruz
a16624f94c MDL-78965 mod_quiz: Behat coverage for quiz with certainty-based marking 2023-08-24 15:01:50 +08:00
Jun Pataleta
e25d28ff05
Merge branch 'MDL-78941-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-08-24 13:05:49 +08:00
Angelia Dela Cruz
1b18e3328e MDL-79015 mod_lesson: Behat coverage for lesson with access restriction 2023-08-24 12:53:58 +08:00
Angelia Dela Cruz
60e74092cd MDL-78941 mod_quiz: Behat coverage for student flagging quiz questions 2023-08-24 10:56:00 +08:00
Huong Nguyen
45bd1bfa49
Merge branch 'MDL-78843-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2023-08-24 08:58:03 +07:00
Leon Stringer
fe3054d05b MDL-79075 quiz: Fix transposed user IDs
In the description of "Quiz attempt reviewed" events the user IDs of
the reviewer (typically the teacher) and the reviewee (typically the
student) were the wrong way round.
2023-08-21 15:50:28 +01:00