1148 Commits

Author SHA1 Message Date
Jun Pataleta
a84fb7c075
Merge branch 'MDL-82651-main' of https://github.com/lameze/moodle 2024-08-29 11:59:31 +08:00
Simey Lameze
3b2be7f382 MDL-82651 behat: remove unnecessary steps 2024-08-28 13:54:09 +08:00
Andrew Nicols
c21aeeb380
MDL-82158 core: Update most uses of cache_ classes 2024-08-20 20:44:28 +08:00
Huong Nguyen
aeac21463a
Merge branch 'MDL-82607' of https://github.com/timhunt/moodle 2024-08-15 09:32:08 +07:00
Jun Pataleta
5b15521c90
Merge branch 'MDL-82385-main' of https://github.com/dpalou/moodle 2024-08-14 19:02:57 +08:00
Dani Palou
e12954e55c MDL-82385 subsection: Return delegated section ID in customdata 2024-08-14 11:29:24 +02:00
Sara Arjona
bddbd218e9
Merge branch 'MDL-81889-main' of https://github.com/ferranrecio/moodle 2024-08-13 09:49:37 +02:00
Ilya Tregubov
fbbd99c21e Merge branch 'MDL-82497-main' of https://github.com/sarjona/moodle 2024-08-13 10:53:46 +08:00
ferranrecio
a2ed8a036d MDL-81889 tool_generator: add examples to behat steps
The tool_generator creates a testing scenario that can execute
all steps from behat_data_generators (with some limitations),
change admin settings and delete courses and users to cleanup
the created entities. However, this list of valid steps will
change over time and it will be great if all available steps
are listed with examples.
2024-08-12 12:25:46 +02:00
Huong Nguyen
7b4f8e4021
Merge branch 'MDL-82260-main' of https://github.com/ferranrecio/moodle 2024-07-31 09:37:01 +07:00
Sara Arjona
793fe8ac40
MDL-82497 theme: Update icons for consistency
Some places where using the wrong icon and now that they have changed,
they need to be updated. For instance:
- i/settings (cog) should be used for settings or configure.
- t/edit (pen) should be used for editing
2024-07-30 12:55:09 +02:00
Tim Hunt
69e1c3ca7a MDL-82607 filters: configfilternavigationwithsystemcontext on by default 2024-07-29 11:12:13 +01:00
ferranrecio
c87e52f577 MDL-82260 course: add behat section settings page url 2024-07-26 11:16:38 +02:00
Amaia Anabitarte
d4a887987a MDL-82259 behat: Improve section behat steps to allow section name 2024-07-26 10:02:47 +02:00
Huong Nguyen
854296c210
Merge branch 'MDL-81888-main-v02' of https://github.com/ferranrecio/moodle 2024-07-25 08:58:19 +07:00
Paul Holden
c10610d035
MDL-82466 completion: format time duration in report entity columns.
Where the previous output was simple count of days, switch to using
the new format helper to return a time duration.

AMOS BEGIN
 CPY [daystakingcourse,core_course],[daystakingcourse,core_completion]
AMOS END
2024-07-19 10:34:00 +01:00
Huong Nguyen
388fb71f51
Merge branch 'MDL-81699-main' of https://github.com/durenadev/moodle 2024-07-18 09:57:18 +07:00
Paul Holden
e60876ecef
MDL-82467 completion: simplify field SQL for completion columns.
For columns whose values can be represented purely in SQL, we don't
need to/shouldn't select extra data because it confuses the column
output during aggregation for numeric/boolean columns.
2024-07-15 13:19:25 +01:00
Daniel Ureña
5089744789 MDL-81699 Course: core_course_get_courses_by_field add param sectionid 2024-07-12 11:29:26 +02:00
ferranrecio
5617445d42 MDL-81888 tool_generator: add cleanup scenario tag
The tool_generator creates a testing scenario that can
execute all steps from behat_data_generators (with some
limitations) and admin settings. With the patch the scenario file can
incorporate a cleanup steps to be executed when the manual test is done.
2024-07-12 10:32:54 +02:00
Huong Nguyen
2845d8cbde
Merge branch 'MDL-79717' of https://github.com/paulholden/moodle 2024-07-11 09:34:52 +07:00
Paul Holden
bd0f8a058f
MDL-79717 phpunit: ensure unique data provider keys in tests.
Duplicate data provider keys were overwriting and/or duplicating
one another, leading to some cases being skipped.

Other "duplicate array key" errors were picked up by `phpcs` in
this dragnet across all tests, which have also been fixed.
2024-07-10 14:08:49 +01:00
Sara Arjona
41b8cd3f73 Merge branch 'MDL-78388' of https://github.com/djarran/moodle 2024-07-10 09:16:57 +08:00
Sara Arjona
89dcf5066b
Merge branch 'MDL-74251-main' of https://github.com/lucaboesch/moodle 2024-07-03 09:35:56 +02:00
djarrancotleanu
38a6f3fcaf MDL-78388 course: Copy permissions when duplicating module 2024-07-03 13:39:00 +10:00
Sara Arjona
576e63cb0f
Merge branch 'MDL-63753' of https://github.com/larsbonczek/moodle 2024-07-01 12:18:50 +02:00
Adrian Perez
e1353c7649 MDL-74251 core: Remove old icon helper classes 2024-06-27 18:28:05 +02:00
Lars Bonczek
a48d11dd7d MDL-63753 course: Show stealth activity links to non-editing teachers 2024-06-26 12:57:36 +02:00
Sara Arjona
9e1eec783c
Merge branch 'MDL-82207' of https://github.com/stronk7/moodle 2024-06-26 12:27:19 +02:00
Sara Arjona
cf7cc40f4b
MDL-81866 course: Fix behat errors after improving reset 2024-06-25 12:59:26 +02:00
Sara Arjona
7402706c59
MDL-81866 course: Improve workflow for reset course
The following changes have been done to improve the reset course:
- Reset course button moved to sticky footer. Select default and
deselect all buttons set as secondary and left at the end of the form
- Adjusted page layout to a standardized format, centering the form for
improving presentation and recolocating the Reset course button away
from the bottom-right corner
- Changed page layout to standard, to display the form centered and
avoid having the Reset course button in the right bottom corner
- Modal added before resetting a course, asking user for confirmation
- Reset course buttons displayed with danger styling, because they
remove information
- All sections are expanded by default
- Default options are selected by default
2024-06-25 12:59:25 +02:00
Eloy Lafuente (stronk7)
ad5fe71868
MDL-82207 phpunit: fix various @covers annotations (take#1)
This fixes various (not all) wrong @covers annotations that
are reported as warnings by PHPUnit when it's run with
code-coverage enabled.

When possible, the preferred solution is to change to
@covers at class level, that is the recommended way.

If multiple classes are involved, then a mix of @coversDefaultClass
and @covers at method level are used (always trying to use the
minimum needed patch).

This is the first of a series of issues created as sub-tasks
of MDL-82142.
2024-06-24 12:07:39 +02:00
Huong Nguyen
c53b23e47e
Merge branch 'MDL-82202' of https://github.com/paulholden/moodle 2024-06-20 10:20:48 +07:00
Paul Holden
7ab967202c
MDL-82202 course: correct last access report entity column callback.
Ensure it works when being aggregated.
2024-06-17 14:27:01 +01:00
Eloy Lafuente (stronk7)
674497a12c
MDL-81523 phpunit: Add all missing setUp/tearDown parent calls
All setUp(), tearDown(), setUpBeforeClass() and tearDownAfterClass()
must, always, call to parent, to ensure that everything is properly
set and cleaned.

While in a lot of situations this is not needed (parents may not
have anything to run), with PHPUnit >= 10 this can become more
important because we are going to move the reset code from current
placement @ runBare() to setUp()/tearDown().

Note that all the changes performed in this commit have been detected
and fixed by moodle-cs (ParentSetUpTearDownSniffTest).
2024-06-14 16:04:57 +02:00
Huong Nguyen
5970d38755
Merge branch 'MDL-81332-main' of https://github.com/andelacruz/moodle 2024-06-12 13:15:05 +07:00
Jun Pataleta
bb1cddb140
Merge branch 'MDL-81681-main' of https://github.com/sarjona/moodle 2024-06-12 10:57:20 +08:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Angelia Dela Cruz
ff8d888c49 MDL-81332 core_course: Behat test for grade and activity reports display 2024-06-11 15:25:21 +08:00
Sara Arjona
79c85ab22d
MDL-81681 course: Make reactive the section page 2024-06-07 09:35:05 +02:00
Andrew Nicols
7fc931cdd8
Merge branch 'MDL-81698' of https://github.com/stronk7/moodle 2024-05-28 10:10:39 +08:00
Sara Arjona
47cd442dc9
MDL-81872 course: Fix behat errors after improving reset 2024-05-27 16:18:54 +02:00
Eloy Lafuente (stronk7)
018e6e1fc8
MDL-81698 phpunit: Apply various fixes towards 1by1 execution
The changes here are heterogeneous:
- Include stuff that is not available (other test has included it).
  Sometimes local to a unit test, others in setupBeforeClass() or
  globally, ... depends on every case.
- Rename some tests (namespaces, test name, ...) towards getting it
  running.
- Amend small bits here and there.

Important note: I've left any "cosmetic" warning out from the
changes, only a few errors (like long array syntax) have been fixed.
2024-05-25 17:19:44 +02:00
Jun Pataleta
53a059fb9b
Merge branch 'MDL-81330' of https://github.com/paulholden/moodle 2024-05-09 11:49:18 +08:00
Simey Lameze
7b713435b0 MDL-79702 behat: improvements and fixes to new tests
This commit adds the handling of tags as string separated by comma
to forum and glossary modules.
2024-05-06 19:58:38 +08:00
Angelia Dela Cruz
9ab79e2822 MDL-79702 core_tag: Behat for activity tags deletion during course reset 2024-05-06 16:42:18 +08:00
Paul Holden
0a9715a88a
MDL-81330 reportbuilder: add cohort data to participants report source.
This is consistent with data added to similar sources that include user
attainment data, in this case users' course completion.
2024-04-29 11:14:16 +01:00
Angelia Dela Cruz
eb36f078d8 MDL-77445 Behat: Coverage for activity chooser navigation 2024-04-24 14:42:37 +08:00
Andrew Nicols
6f1df841f7
MDL-67667 core: Deprecate and removal task blocking
There are inherent issues with task blocking which mean that it has
never worked properly. It is also very buggy and can lead to massive
performance issues with task processing.

It is almost impossible to deprecate this in a staged fashion because
various APIs use the methods and it is not possible to determine which
are API uses and which are other valid uses.

In reality there has been little-to-no uptake on the use of this feature
and it should just be removed.
2024-04-12 12:34:20 +08:00