1
0
mirror of https://github.com/moodle/moodle.git synced 2025-07-23 23:31:58 +02:00
Commit Graph

3299 Commits

Author SHA1 Message Date
ferran
f6698b7567 MDL-83871 course: activity overview page
The old activities block will be fully replaced by a new course
activities overview page in the course secondary navigation. This
commit has the initial implementation of the page.
2025-01-31 15:21:48 +01:00
Andrew Nicols
2d9c877f58 MDL-79843 core: Fully reset the component cache for some tests 2025-01-29 14:39:50 +08:00
Sara Arjona
54ed733f98 Merge branch 'MDL-73700_remove-all-the-old-php-version-checks-from-core' of https://github.com/ziegenberg/moodle 2025-01-28 19:43:36 +01:00
Daniel Ziegenberg
224a7d2aac MDL-73700 core: remove old PHP version check
As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. It was introduced with
MDL-75945  because a new signature was introduced to ImagePolygon
functions from PHP 8.1 with the previous signature deprecated in 8.1.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2025-01-28 18:57:52 +01:00
Huong Nguyen
474231d1a4 Merge branch 'MDL-83079-main' of https://github.com/HuongNV13/moodle 2025-01-28 17:04:08 +07:00
Frederik Milling Pytlick
d8f1d2aa95 MDL-83079 core: Make signal handlers run during non CLI scripts 2025-01-28 16:45:59 +07:00
Jake Dallimore
17eb4af339 MDL-79843 core_task: changes to support deprecated plugin types
This ensures:
- existing adhoc tasks will run and be cleared from the queue
- new adhoc tasks cannot be scheduled
- scheduled tasks cannot be listed or fetched via scheduling
Given the nature of the task API, since all tasks are just objects,
a manually created task can still be run via its ::execute() method.
2025-01-28 14:42:19 +08:00
Jake Dallimore
6031b7cb60 MDL-79843 core: support deprecated plugin types in plugin_manager APIs
This change:
- Adds param to plugin_manager::get_plugins() to permit return of
plugininfo for deprecated/deleted plugins, defaulting to false for
b/c.
- ensures plugininfo represents the deprecation state, via:
-- base::is_deprecated() and
-- base::is_deleted()
- ensures plugin_manager supports deprecated/deleted plugins in the
following APIs:
-- plugin_manager::get_present_plugins()
-- plugin_manager::get_installed_plugins()
-- plugin_manager::get_plugin_info()
-- plugin_manager::get_plugintype_root()
-- plugin_manager::can_uninstall_plugin()
-- plugin_manager::get_uninstall_url()

The above changes facilitate listing/reporting on deprecated or deleted
plugins in install, upgrade or site admin views.
2025-01-28 14:42:19 +08:00
Jake Dallimore
6b1a63189b MDL-79843 core: add plugintype deprecation support to core component
By default, for backward-compatibility, these plugin types and plugins
are not returned from existing APIs.
2025-01-28 14:42:19 +08:00
Huong Nguyen
5fbd4b6555 Merge branch 'MDL-83869-main' of https://github.com/ferranrecio/moodle 2025-01-23 11:15:26 +07:00
Huong Nguyen
8ad2dc02a1 Merge branch 'MDL-83751' of https://github.com/paulholden/moodle 2025-01-23 10:48:16 +07:00
Huong Nguyen
40fd9b8d22 Merge branch 'main_MDL-82977' of https://github.com/mattporritt/moodle 2025-01-23 09:36:50 +07:00
ferran
46318e53d0 MDL-83869 output: new collapsable section component 2025-01-22 11:36:27 +01:00
Matt Porritt
368114c7cd MDL-82977 AI: Provider instances
Create provider instances for AI povider plugins.
Each provider plugin can now have multiple instances,
allowing for different configurations and models using
the same base provider.
2025-01-22 08:43:13 +11:00
Sara Arjona
2f3cffd815 Merge branch 'MDL-83468-main' of https://github.com/andrewnicols/moodle 2025-01-20 16:47:56 +01:00
Andrew Nicols
9536ca738e MDL-83468 phpunit: Do not throw exception in mocked destructor
PHPUnit removed the ability to mock a destructor, but our lock system
throws an exception if a lock has not been explicitly released in its
destructor.

Normally thhis is fine because the lock is released, and if not then we
want to know about it.

However, where we are mocking the lock, we do not actually obtain the
lock, and we may expect the test to fail.

This change moves the release and notification to a separate, reusable
public method, which is called from the destructor. This allows it to be
mocked at the appropriate time.
2025-01-20 16:47:56 +01:00
Andrew Nicols
bc75ef8bbc MDL-83468 phpunit: Fix various tests after phpunit 10 2025-01-20 16:47:55 +01:00
Jun Pataleta
0b8526e6d3 Merge branch 'MDL-81780-Adhoc-task-improvements' of https://github.com/waleedhassan5/moodle 2025-01-17 11:53:28 +08:00
Paul Holden
2bb8b013e7 MDL-83751 check: remove non-functional result class method. 2025-01-16 17:40:01 +00:00
waleedhassan
c0572a0423 MDL-81780 tool_task : Adhoc task improvements
Added fail delay column in the adhock task table on the admin page,
Added a new column for a delete action for the adhoc tasks on and
Wrote delete_adhoctask.php for delete functionality of adhoc tasks.
Wrote behat test for the delete functionality. Also there was a
logical error in the previous code where it was checking if the task
is due or not and it was just showing Never or ASAP instead of
actual time so fixed that as well.
2025-01-16 12:16:04 +00:00
Jun Pataleta
d0a31f104a Merge branch 'MDL-83172-main' of https://github.com/meirzamoodle/moodle 2025-01-15 17:02:12 +08:00
Sara Arjona
7c9bfaa0f0 Merge branch 'MDL-84072' of https://github.com/paulholden/moodle 2025-01-14 14:43:47 +01:00
Huong Nguyen
61911e21d1 Merge branch 'MDL-83969-main' of https://github.com/davewoloszyn/moodle 2025-01-14 09:10:01 +07:00
meirzamoodle
c26cc0e005 MDL-83172 dml: Remove Oracle from LMS 2025-01-13 17:11:55 +07:00
Jun Pataleta
d76dc40565 Merge branch 'MDL-83968-main' of https://github.com/andrewnicols/moodle 2025-01-13 15:29:31 +08:00
Andrew Nicols
189bf3074f MDL-83968 core: Move router test classes to correct locations 2025-01-13 14:16:49 +08:00
Sara Arjona
6ab62a98cd MDL-83933 pix: Switch import/export icons 2025-01-09 17:15:51 +01:00
Huong Nguyen
421f46969b Merge branch 'MDL-77185-diskfreespace' of https://github.com/leonstr/moodle 2025-01-09 10:12:52 +07:00
sarjona
d597dd02ae Merge branch 'MDL-83746-main' of https://github.com/srobotta/moodle 2025-01-07 14:50:00 +01:00
Paul Holden
a296bdfc5b MDL-84072 output: correct progress bar component percentage parameter.
Avoid mixing float/string types, where the decimal separator could
vary according to current locale (as per previous fix 5a1aef5a, which
was subsequently re-broken by b92886ad).
2025-01-07 13:14:26 +00:00
Huong Nguyen
d5505e0ae2 Merge branch 'MDL-83639-main' of https://github.com/sarjona/moodle 2025-01-02 10:00:11 +07:00
Leon Stringer
de059dbfe0 MDL-77185 session: Fix undefined disk_free_space
Fix PHP fatal error "Call to undefined function
core\session\disk_free_space()" when disable_functions=disk_free_space.
Prior to PHP 8.0 this error was suppressed by '@'.

Co-authored-by: Federico Alvarez <32086536+fedealvz@users.noreply.github.com>
2024-12-31 15:34:42 +00:00
Sara Arjona
314d41f427 MDL-83639 pix: Update custom icons
Sabina Abellán from the UX team has created the following custom icons:

- ai*:sparkles
- core:e/insert_col_after
- core:e/insert_col_before
- core:e/split_cells
- core:e/text_color
- core:i/bulk_edit
- core:i/export
- core:i/grade_partiallycorrect
- core:i/item
- core:t/completion_incomplete
- core:t/locktime
- mod_scorm:browsed
- tool_policy:level

In addition to updating these SVG files, the entries in the icon_map() have
been removed to ensure that the customized version is always used.
2024-12-20 07:40:23 +01:00
Sara Arjona
c0366ffea1 MDL-82460 pix: Deprecate unused icons
While addressing MDL-82211, these icons were identified as candidates
for deprecation. After confirmation that they are no longer in use,
they can now be safely deprecated.
2024-12-20 07:39:52 +01:00
David Woloszyn
25be0c2776 MDL-83969 hub: Update text for marketing opt-in 2024-12-19 13:41:49 +11:00
Andrew Nicols
84532b7667 MDL-83705 core: Update subplugins.json relative to plugin 2024-12-19 09:03:00 +07:00
Jun Pataleta
6120f12c10 Merge branch '79121-normalize-proxy-bypass-main' of https://github.com/DSI-Universite-Rennes2/moodle 2024-12-18 10:56:00 +08:00
Sara Arjona
f2c9419a56 Merge branch 'MDL-71472_deprecate-add_select_with_email' of https://github.com/ziegenberg/moodle 2024-12-17 13:15:54 +01:00
Julien Boulen
67d0069dad MDL-79121 lib: Normalize proxybypass value
This changes prevent the admin to define an incorrect proxybypass value.

Dropped out formats in MDL-74289 are now fixed automatically.
e.g.: "192.168." becomes "192.168.0.0/16" and ".domain.tld" becomes "*.domain.tld".
2024-12-16 15:54:52 +01:00
Huong Nguyen
860bb57497 Merge branch 'MDL-83703-main' of https://github.com/andrewnicols/moodle 2024-12-16 10:07:57 +07:00
Huong Nguyen
bb3cda8b64 Merge branch 'MDL-75075-master' of https://github.com/NashTechOpenUniversity/moodle 2024-12-16 09:50:12 +07: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
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
Mikel Martín
f9abc562f5 MDL-81825 theme_boost: Refactor .sr-only usages for BS5
- Add .visually-hidden to the Boostratp 5 bridge SCSS file
- Replace .sr-only occurrences with .visually-hidden
- Replace .dropzone-sr-only-focusable  with .dropzone-visually-hidden-focusable
  for consistency
2024-12-10 14:02:32 +01:00
Laurent David
2be6563324 MDL-82457 core: Remove chat and survey dependencies
* Remove chat and survey plugins from the standard plugins
* Remove all related tables and settings from both plugins
using upgrade.
* Remove temporary admin notification (MDL-82297) and strings.
* PHP Unit:
   - Remove chat and survey as a sample module for unit testing
     replacing it with assignment module when possible (if not page).
   - Remove chat and survey from bulk update test
* Behat: Remove chat and survey behat tests
2024-12-10 08:59:18 +01: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
Huong Nguyen
199fd9a02b Merge branch 'MDL-83584-main' of https://github.com/sammarshallou/moodle 2024-12-05 10:12:24 +07:00
meirzamoodle
cacf7546b9 MDL-61316 core: Removed 5x multiplier from guest session expiration 2024-12-04 02:44:22 +00:00