108932 Commits

Author SHA1 Message Date
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
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
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
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
Jun Pataleta
ccbb3ce62d
Merge branch 'MDL-76713-401' of https://github.com/laurentdavid/moodle into MOODLE_401_STABLE 2023-09-26 11:57:14 +08:00
Laurent David
4f620f537e MDL-76713 core_availability: Fix date restriction conflict
* Use a unique ID the date nodes in the HTML tree to be able to find the current node.
* Look for nodes in the same tree "leaf" and work on conflicts in this single leaf/branch.
2023-09-25 10:16:24 +02:00
Shamim Rezaie
ff0b12cfd3 Merge branch 'MDL-75928-401' of https://github.com/lameze/moodle into MOODLE_401_STABLE 2023-09-25 17:52:16 +10:00
Andrew Nicols
6988b5b328
weekly release 4.1.5+ 2023-09-23 21:38:02 +08:00
Paul Holden
282523b96a
MDL-79467 output: handle empty sitename display during installation.
Causes PHP warnings when null on PHP 8.1.
2023-09-22 14:34:34 +01:00
Simey Lameze
3b6acb99bd MDL-75928 format_week: improve get_section_dates one week calc 2023-09-22 08:48:37 +08:00
Jun Pataleta
04461bed1c
Merge branch 'MDL-79323-401-enfix' of https://github.com/vmdef/moodle into MOODLE_401_STABLE 2023-09-21 15:29:23 +02:00
Ilya Tregubov
0717d4ea0e
Merge branch 'MDL-79341-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-21 14:51:12 +08:00
Ilya Tregubov
9e62b27d12
Merge branch 'MDL-71955-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-21 09:18:17 +08:00
Jake Dallimore
3c7c965a80
MDL-77891 core_calendar: support display of mod iconurl
This affects:
- event_item.mustache (day view)
- event_icon.mustache (used by month_mini and month_mini and
month_detailed templates)
2023-09-21 09:17:40 +08:00
Ilya Tregubov
3dc7b4b927
Merge branch 'MDL-68712-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-21 08:52:38 +08: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
Paul Holden
cee1103bec
MDL-68712 enrol_self: improve detection/re-use of group enrolment keys. 2023-09-20 13:31:05 +01:00
Víctor Déniz
98419ad77a MDL-79323 lang: Fix Behat tests regressions after merging en_fix strings 2023-09-20 09:59:26 +01:00
Helen Foster
7e6930f5b9 MDL-79323 lang: Import fixed English strings (en_fix) 2023-09-20 09:59:21 +01:00
Ilya Tregubov
8e931f2073
weekly release 4.1.5+ 2023-09-20 09:03:29 +08:00
Huong Nguyen
285b364a1e
Merge branch 'MDL-79370-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-19 14:30:53 +08:00
Jake Dallimore
2a2edcde93
Merge branch 'MDL-79186-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-19 11:12:51 +08:00
Dale Davies
ce1f9ec96a MDL-79350 core: Do not store lang in session when readonly 2023-09-18 14:31:02 +01:00
Huong Nguyen
3720396bb4
Merge branch 'MDL-79332_401' of https://github.com/timhunt/moodle into MOODLE_401_STABLE 2023-09-18 18:57:01 +07:00
Paul Holden
47941cb17a
MDL-79370 user: set profile page URL earlier, avoid subsequent error.
Co-authored-by: Dominique Palumbo <domenico.palumbo@uclouvain.be>
2023-09-18 09:26:45 +01:00
Ilya Tregubov
880e7e7298
Merge branch 'MDL-79047-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-18 12:25:40 +08:00
Jun Pataleta
8ebf873b65
MDL-79047 grade: Use the gradebook plugin name for the page title
* Use the appropriate gradebook plugin string for the page title.
* Improve gradebook page titles set by grade_get_plugin_info() by
listing the unique identifying information for the page first
(e.g. the gradebook plugin name), followed by broader information
(Grades + Course name), separating these bits of information using the
pipe `|` character.

For more information, check out
https://www.w3.org/WAI/WCAG21/Techniques/general/G88
2023-09-18 03:47:24 +02:00
Sara Arjona
0a09e482e4
weekly release 4.1.5+ 2023-09-15 17:34:04 +02:00
Petr Skoda
e42eeb62b0 MDL-79360 filter: fix nolink tag regression from MDL-77525 2023-09-15 12:45:02 +02:00
Ilya Tregubov
a5f1d86040
Merge branch 'test4' of https://github.com/ilyatregubov/moodle into MOODLE_401_STABLE 2023-09-15 17:38:42 +08:00
Jun Pataleta
c0ec027149
MDL-79057 grade: Remove block-level elements within buttons
Replace <div> tags within <button> tags for the selector
buttons in the grade pages.
2023-09-15 17:37:20 +08:00
Huong Nguyen
02e7ab212a
Merge branch 'MDL-79283-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-15 17:37:19 +08:00
Jun Pataleta
312f80d1d7
Merge branch 'MDL-79291-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-15 17:37:19 +08:00
Luca Bösch
767e147dac
MDL-79226 questions: check for UTF-8 encoding of the import file 2023-09-15 17:35:33 +08:00
Huong Nguyen
c2e501e144
Merge branch 'MDL-78728-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-15 17:32:44 +08:00