Commit graph

396 commits

Author SHA1 Message Date
Conn Warwicker
d9d2388965
MDL-79122 question: Correct capability check for question comments link.
This makes the rendering of the question comments count additionally
check the core moodle/comment:post capability, since this capability
is required to make comments. Previously, this was not being checked
so users could open the modal to make a comment, which was causing
a javascript error due to expected elements being missing.
2024-12-13 15:31:47 +00:00
Paul Holden
812975e218
MDL-83361 reportbuilder: date aggregation for timestamp columns.
This change introduces updates to the existing aggregation API, to
allow types to define whether to group by fields of a column to which
the aggregation is applied.

The new date aggregation utilises this, to allow for creation of time
series reports, e.g. report data grouped by dates.

Co-authored-by: Daniel Neis Araujo <danielneis@gmail.com>
2024-12-13 12:36:22 +00:00
Jun Pataleta
df990a7c02
Merge branch 'MDL-83733-main' of https://github.com/aanabit/moodle 2024-12-12 11:50:09 +08:00
Jun Pataleta
fce8ddcac8
Merge branch 'MDL-83765-main' of https://github.com/aanabit/moodle 2024-12-12 11:43:29 +08:00
Amaia Anabitarte
1d8d35a2c5 MDL-83765 core_output: deprecated functions have been removed from action_menu class. 2024-12-11 11:10:18 +01:00
Sara Arjona
1420e2fb5d
Merge branch 'MDL-82457-main' of https://github.com/laurentdavid/moodle 2024-12-11 08:57:09 +01:00
Jun Pataleta
4929d6c3d1
Merge branch 'MDL-81520-main' of https://github.com/andrewnicols/moodle 2024-12-11 13:41:15 +08:00
Andrew Nicols
f30cfe049d
MDL-81520 mod_assign: Update tests to not extend assign_provider test 2024-12-11 12:30:24 +08:00
Mikel Martín
a973ea46d7 MDL-81825 core: Replace sr_text() with visually_hidden_text()
In core renderer, replace 'sr_text' method with 'visually_hidden_text' to be
consistent with Bootstrap 5 upgrade.
2024-12-10 14:02:34 +01:00
Laurent David
34b0c5a24d MDL-82457 theme_boost: Remove styles for chat and survey
* Remove styles that were associated with the modules
2024-12-10 08:59:18 +01:00
Laurent David
6ec4617ee3 MDL-82457 tool_mobile: Remove chat and survey 2024-12-10 08:59:18 +01:00
Laurent David
bdc1c81b02 MDL-82457 tool_brickfield: Remove core support for chat and survey 2024-12-10 08:59:18 +01:00
Laurent David
e9bb3d1144 MDL-82457 core_presets: Remove chat and survey from presets
* Replace chat by page whenever possible
* Use Wiki when we need a module that is disabled by default.
2024-12-10 08:59:18 +01:00
Laurent David
f8805b06d0 MDL-82457 core_analytics: Remove chat and survey from core 2024-12-10 08:59:18 +01:00
Laurent David
8e5ac0e34f MDL-82457 mod_chat: Remove mod_chat from Moodle 5.0 2024-12-10 08:59:18 +01:00
Laurent David
9d94ea58b6 MDL-82457 mod_survey: Remove mod survey from Moodle 5.0 2024-12-10 08:59:18 +01:00
Khoa Nguyen
9d1c481448 MDL-75075 quiz: Show question tags as non-links to avoid errors 2024-12-10 13:44:58 +07:00
Khoa Nguyen
c5e4c202f5 MDL-75075 core_tag: Add an option to render tag lists without links 2024-12-10 13:44:17 +07:00
Andrew Gosali
7c712b0cdd MDL-79907 core_grades: removal on grade_structure's deprecated methods
- grade_structure::get_element_type_string()
- grade_structure::get_element_header()
- grade_structure::get_element_icon()
- grade_structure::get_activity_link()
2024-12-09 21:02:31 +07:00
Mark Johnson
1613a98102
MDL-83859 core_question: Update filter condition API
This corrects some definitions of the methods in the base condition
class to make things more obvious to developers implementing new
filters.

Previously if your filter wanted to use the default
`core/datafilter/filtertype` class, you still had to implement
`get_filter_class` to return `null`, since it was declared as abstract.
This change defines it as returning `null` by default, so this is no
longer necessary.

Also, this removes the default definitions for `get_condition_key` and
`build_query_from_functions`, and declares them abstract. Currently it
is necessary to override these to implement a functional filter so it
doesn't make sense to have a useless default definition.

This will not cause any breakages with existing filters. All filters
must already be defining the methods that are now abstract, otherwise
they will not function. Any filter that is now overriding
`get_filter_class` to return `null` will continue to work as before,
even though this is no longer necessary.
2024-12-05 11:30:32 +00:00
Conn Warwicker
3f36e1ca6a
MDL-77713 question: List question versions with most recent on top.
This makes the display of question versions consistent between
question preview and when users are building quizzes.
2024-12-05 11:17:06 +00:00
Huong Nguyen
b07c5f48cb
Merge branch 'MDL-83641' of https://github.com/paulholden/moodle 2024-12-05 11:29:03 +07:00
Huong Nguyen
c0f349c034
Merge branch 'MDL-83718' of https://github.com/paulholden/moodle 2024-12-03 10:05:33 +07:00
Paul Holden
e1df293131
MDL-83641 cohort: allow 'includes' option be specified in form element. 2024-12-02 10:58:44 +00:00
Shamim Rezaie
17201694ef Merge branch 'MDL-75610_main' of https://github.com/marxjohnson/moodle 2024-12-02 15:23:23 +11:00
Andrew Nicols
6ab400b733
MDL-83703 core: Remove support for subplugins.php 2024-12-02 10:08:28 +08:00
Huong Nguyen
c77fb0e6e0
Merge branch 'MDL-83473_main' of https://github.com/dasistwas/moodle 2024-11-28 13:23:54 +08:00
Huong Nguyen
4d530b5048
Merge branch 'MDL-81745-main' of https://github.com/roland04/moodle 2024-11-28 13:23:54 +08:00
jacob.viertel@wunderbyte.at
1773124a97 MDL-83473 course: hooks api for external courses 2024-11-26 09:11:45 +01:00
Amaia Anabitarte
48df296967 MDL-83733 blocks: 'Activity' non used selectors had been deleted 2024-11-25 11:55:39 +01:00
Shamim Rezaie
0af9b5ca7e Merge branch 'MDL-71378_main' of https://github.com/SimonasAdams/moodle 2024-11-25 18:21:18 +11:00
ferranrecio
4053bd2139 MDL-82351 course: fix course_ajax_enabled function
The course_ajax_enabled was using a course_format_ajax_support which
does not initialize the course format with the correct parameters.
Having a global function to get something the format base format can
provide is unnecessary and redudant, for this reason the function is now
deprecated.
2024-11-22 17:20:55 +01:00
Huong Nguyen
443871d320
Merge branch 'MDL-80430' of https://github.com/paulholden/moodle 2024-11-22 10:50:47 +07:00
Jun Pataleta
e5a241a02c
Merge branch 'MDL-71257-main' of https://github.com/junpataleta/moodle 2024-11-21 11:33:32 +08:00
David Woloszyn
2be5e7e18d
MDL-71257 dml: Rename master/slave to primary/replica 2024-11-21 11:17:51 +08:00
Paul Holden
02186de904
MDL-83718 reportbuilder: use window count method to get table data.
Use the new "counted recordset" DML API from 42664ee49a to obtain
the raw table data for reports. For those databases with defined
support for count window functions, this should give a performance
benefit by combining the count and main query into one request.
2024-11-19 18:07:04 +00:00
Mikel Martín
801f8cc246 MDL-81745 mod_feedback: Refactor editor drag and drop
- Remove YUI drag and drop.
- Add new 'mod_feedback\external\questions\reorder' web service.
- Use SortableList JS component to refactor drag and drop, using
  the new webservice.
- Update new SCSS styles
- Fix and create Behat scenarios
2024-11-19 14:05:12 +01:00
Jun Pataleta
fcb39d60a9
Merge branch 'MDL-81521-main' of https://github.com/andrewnicols/moodle 2024-11-19 15:15:17 +08:00
Huong Nguyen
155c4bd1e8
Merge branch 'MDL-82349-main-v03' of https://github.com/ferranrecio/moodle 2024-11-19 09:51:54 +07:00
Simon Adams
a0cf3d2da5 MDL-71378 core_question & mod_quiz: Refactor deprecated contexts 2024-11-18 10:22:59 +00:00
Daniel Ziegenberg
f3288f3c79
MDL-71472 core: Removal of site_registration_form::add_select_with_email
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-11-15 12:54:30 +01:00
Paul Holden
f3cd1df6e1
MDL-80430 reportbuilder: final removal of default table aliases.
They've been auto-generated for some time now, and we can make the
newer `get_default_tables` method abstract to ensure it's always
implemented.
2024-11-15 10:21:45 +00:00
Mark Johnson
9118a619c6
MDL-75610 theme: Allow the activity title in Boost theme's secure layout 2024-11-15 08:31:29 +00:00
Andrew Nicols
9adfbcde4e
MDL-81521 mod_quiz: Fix attempt walkthrough tests 2024-11-15 12:50:56 +08:00
Huong Nguyen
6c14a8aa86
MDL-81509 tasks: Fix upgrade note 2024-11-14 11:08:57 +07:00
Huong Nguyen
94568bc5e0
Merge branch 'MDL-81509_final-deprecation-of-task_base-is_blocking-and-set_blocking' of https://github.com/ziegenberg/moodle 2024-11-14 11:07:45 +07:00
Huong Nguyen
cbc68e95ad
MDL-78890 gradereport_grader: Fix upgrade note 2024-11-14 11:04:13 +07:00
Huong Nguyen
123e29201c
Merge branch 'MDL-78890-main' of https://github.com/mihailges/moodle 2024-11-14 11:03:10 +07:00
Huong Nguyen
43784b0d98
Merge branch 'MDL-46739_main' of https://github.com/marxjohnson/moodle 2024-11-14 09:26:43 +07:00
ferran
b0683da877 MDL-82349 core_courseformat: new get_generic_section_name method
The string "sectionname" was an unnecessary coupling between
formats and other plugins. Now the generic name for a section
should be obtained using $format->get_generic_section_name.
This allow formats to use an alternative string for nameing
sections. This is especially important for rare formats like
the frontpage one that does not have a plugin lang file.
2024-11-12 12:22:25 +01:00