108966 Commits

Author SHA1 Message Date
meirzamoodle
c3c18bbb20 MDL-78969 oauth2: remove auto-login after successful confirmation
With the new flow, users can go to the login page from the confirmed page,
and if the user successfully logs in, the user will be directed to the confirmed page.
To avoid that, the confirmed page can only be seen by users who are not logged in.
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
Jun Pataleta
a7bdd7a007
weekly release 4.1.5+ 2023-10-04 07:49:17 +08:00
Jun Pataleta
99f4f6894f
Merge branch 'install_401_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_401_STABLE 2023-10-04 07:49:15 +08:00
Jun Pataleta
cf98238fdf
Merge branch 'MDL-79557-401' of https://github.com/jleyva/moodle into MOODLE_401_STABLE 2023-10-03 12:18:00 +08:00
Jake Dallimore
925c36fb1d
Merge branch 'MDL-79056-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-10-03 12:03:58 +08: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
Ilya Tregubov
109879a2a1
Merge branch 'MDL-79428-401' of https://github.com/srobotta/moodle into MOODLE_401_STABLE 2023-10-03 09:41:21 +08:00
Jun Pataleta
a0d2e40b4d
Merge branch 'MDL-79364-401' of https://github.com/ilyatregubov/moodle into MOODLE_401_STABLE 2023-10-03 09:16:27 +08:00
Juan Leyva
8d65efee7c MDL-79557 message: Clean subject field content for get_messages WS 2023-10-02 14:52:25 +02:00
Ilya Tregubov
35312efbf9
MDL-79364 backup: Fix conversion for 1.9 backups.
1.9 backups used current plugin version as oldversion.
But quiz uses some hardcoded version numbers when processing
restore which is lower then current plugin number, so some quiz
logic was ignored.

See define_structure(), process_quiz_question_instance() within
restore_quiz_stepslib.php
2023-10-02 15:29:17 +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
AMOS bot
803df36ce0 Automatically generated installer lang files 2023-09-30 00:10:27 +00:00
Jun Pataleta
b3ea1a9d5b
weekly release 4.1.5+ 2023-09-29 22:07:19 +08:00
Jun Pataleta
fb311f1eae
Merge branch 'install_401_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_401_STABLE 2023-09-29 22:07:17 +08:00
Stephan Robotta
f9432283a9 MDL-79428 license: upgrading cc core licenses to version 4.0
The short name of the cc licenses are trailed with a suffix containing
the version number (current 3.0 and 4.0). The old cc* licenses become
the new cc-*-3.0 licenses and are disables, because the new cc*-4.0
licenses are the current ones.

This is a backport of MDL-43195.
2023-09-29 09:39:18 +02:00
Artur Neumann
0c4dc597d7
MDL-79487 oauth2: do not delete refresh token
when `log_out` is called from `\core\oauth2\client` it will delete the refresh token,
what it actually needs to use it to get a new access token
actually logging out is not needed here, the only thing we need to make sure is,
the invalid access token is removed from the session
that is done by storing `null`
2023-09-29 12:14:50 +08:00
Jun Pataleta
adc138d1f1
MDL-79056 gradereport_user: Make column heading IDs unique
Associate column headings of user report tables to the user ID that the
report is being generated for. This will prevent duplicate IDs for the
report columns when multiple user report tables are displayed on the
User report page.
2023-09-29 11:03:36 +08:00
Jun Pataleta
aff1f3a400
MDL-79056 gradereport_user: Set grade category and item names as th
* The table cells mentioned in the `headers` attribute of other table
cells need to be using the table header <th> tag. Otherwise, HTML
validation fails.
2023-09-29 11:03:36 +08:00
AMOS bot
74d66468cb Automatically generated installer lang files 2023-09-29 00:08:05 +00: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
Ilya Tregubov
d4c9c36fcd
Merge branch 'MDL-79463-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-28 16:41:19 +08:00
Sara Arjona
5299097da9
Merge branch 'MDL-79477-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-28 10:17:47 +02: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
Sara Arjona
c5707a934d
Merge branch 'MDL-79350-401' of https://github.com/daledavies/moodle into MOODLE_401_STABLE 2023-09-28 07:48:06 +02:00
Huong Nguyen
6bc7b8e8be
Merge branch 'MDL-78813-401' of https://github.com/mihailges/moodle into MOODLE_401_STABLE 2023-09-28 12:03:25 +07:00
Ilya Tregubov
8894b1eb42
Merge branch 'MDL-79349-m401' of https://github.com/sammarshallou/moodle into MOODLE_401_STABLE 2023-09-28 10:47:24 +08:00
Huong Nguyen
f0c0dbbb06
Merge branch 'MDL-75329-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-28 09:36:49 +07:00
Ilya Tregubov
8e5eda32fe
Merge branch 'MDL-79285_401' of https://github.com/stronk7/moodle into MOODLE_401_STABLE 2023-09-28 10:21:09 +08:00
Ilya Tregubov
20e40c3882
Merge branch 'MDL-79360/401' of https://github.com/skodak/moodle into MOODLE_401_STABLE 2023-09-28 09:38:20 +08:00
Shamiso.Jaravaza
7127744f39 MDL-78918 mod_bigbluebuttonbn: Fix notifications 2023-09-27 12:28:57 -06:00
Jun Pataleta
5d902db0d1
Merge branch 'MDL-77891-401' of https://github.com/snake/moodle into MOODLE_401_STABLE 2023-09-27 23:49:20 +08: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
Shamim Rezaie
ae0cdf3b67 Merge branch 'MDL-78239-401' of https://github.com/HuongNV13/moodle into MOODLE_401_STABLE 2023-09-27 14:41:23 +10:00
Huong Nguyen
a76f40c81b
Merge branch 'MDL-79467-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-27 10:45:07 +07:00
Ilya Tregubov
4f8a492374
Merge branch 'MDL-77708-401' of https://github.com/sarjona/moodle into MOODLE_401_STABLE 2023-09-27 09:11:38 +08:00
Eloy Lafuente (stronk7)
68a2dd57ef
MDL-79285 xhprof: Add support for optional "reducedata" parameter
This new parameter / property will decide if we want to reduce
the run data before processing it:
- By default it will be disabled in table mode.
- By default it will be enabled in graph mode.
- The defaults can be changed by adding reducedata=[0|1] in the URLs
- Once data reduction is enabled, it stays enabled while
  navigating within the xhprof reports.
2023-09-26 19:40:07 +02:00
Eloy Lafuente (stronk7)
c841064432
MDL-79285 xhprof: Cover the new functions with unit tests
This covers the 2 new functions with unit tests:
- xhprof_topo_sort()
- reduce_run_data()

Note that the example graph used in the provider is the
one shown in the issue to explain the reduction procedure.
2023-09-26 19:40:06 +02:00
Eloy Lafuente (stronk7)
f82ca155ac
MDL-79285 xhprof: Enable reducing runs data for quicker use
Here we are reducing the xhprof runs data by removing the
__Mustache==>__Mustache calls and all the orphaned data.

To save N iterations what we are doing is:

0. The information is "topologically" sorted, so we ensure that
   all the parents in the data are processed before the children.
   (this will help a lot when cleaning orphaned data, see below).
1. First pass, all the candidate (by regexp) calls are removed
   from the run data.
2. Second pass, all the orphaned information (calls that have
   ended losing his parent) are also removed, so data is consistent.
   Note that, normally we would need N passes to remove all the
   orphaned data (because each pass creates new orphan candidates),
   but, as far as we have ensured that the information is topologically
   sorted (see point 0 above), all this can be done in one unique pass.

TODO:
  - Add unit tests.
  - Enable some system to be able to decide which utilities we
    want to get the data reduced and which ones will continue
    using the complete data. Right now the reduction is being
    applied to all the utilities (both table and graph views).
  - Document the change and, if implemented, the way to select
    between complete/reduced data.
  - Consider adding some caching to speed-up the reduction process
    (some TODOs have been left in the code pointing to the critical
    points).
2023-09-26 19:40:06 +02:00
Sara Arjona
b660e6979a
weekly release 4.1.5+ 2023-09-26 16:17:04 +02:00
Mihail Geshoski
ebf12946d6 MDL-78813 gradereport_grader: Revert border-top-width css change
Revert the modification of the border-top-width css attribute
to the grader table and the table header. This change seems to
be unnecessary.
2023-09-26 13:32:02 +02:00
Paul Holden
0195ecbf78
MDL-75329 course: defensive counting of course sections.
Avoids errors due to pre-existing integrity issues with course
data, where the absence entirely of section data would result in
PHP errors.
2023-09-26 12:18:39 +01:00
Paul Holden
98381d5ab7
MDL-79477 tool_moodlenet: better handling of network download test.
We can't assume the presense of `Content-Length` header in response
to a HEAD request. Modify test assertion to account for this.
2023-09-26 11:33:09 +01:00
Kevin Percy
00bd11b539 MDL-78813 gradereport_grader: Fixed help icon covering course average 2023-09-26 11:21:00 +02:00
Sara Arjona
54d446ce43
MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:57:33 +02:00
Huong Nguyen
e8d14cde9a
MDL-78239 editor_tiny: Calculate correct height for non-visible editors 2023-09-26 14:57:24 +07:00