Commit graph

6326 commits

Author SHA1 Message Date
Ilya Tregubov
34a0ba3232 Merge branch 'MDL-71610-master' of git://github.com/bmbrands/moodle 2021-09-29 15:40:39 +02:00
Ferran Recio
639a99014d MDL-71834 course: lock elements
Now components has a new property lock to disable all user interactions.
This is applied directly into the course index and course content to
freeze an element if some action is performed over it. To set this
locked value there are 2 new mutations cmLock and sectionLock.
2021-09-29 11:34:43 +02:00
Ferran Recio
96c6dc53cd MDL-72463 courseformat: course index highlight section badge 2021-09-29 11:32:03 +02:00
Ferran Recio
9abf7e1a72 MDL-71727 course: sync dragged elements
Two new mutations are added to indicate that a section
or a cm is being dragged. The logic related to refresh
a section or a cm has been moved to components to
simplify the code.
2021-09-29 10:01:25 +02:00
Ferran Recio
a0b4cacc8c MDL-71828 courseformat: course index section link toggler 2021-09-29 09:57:24 +02:00
Bas Brands
16c726cde7 MDL-71610 core_behat: use new edit mode step in feature files 2021-09-29 09:25:36 +02:00
Bas Brands
3ff1b83239 MDL-71610 core_behat: update edit mode steps 2021-09-29 09:25:36 +02:00
Ilya Tregubov
950504bac0 Merge branch 'MDL-72643-master' of git://github.com/sammarshallou/moodle 2021-09-28 08:03:14 +02:00
sam marshall
e332d1849d MDL-72643 core: Improve display_size
Allows display_size to use a fixed unit for easy comparison of
multiple results, and fixed decimal places for the same reason.

Improves behaviour by using consistent decimal places and a
consistent space before the unit (the previous one only has a space
before 'bytes', not before 'KB').

Of existing uses, all the ones that displayed a 'maxbytes' type
configuration setting (which are likely to have an 'exact' size
and would be better shown as 512 KB rather than 512.0 KB) have been
changed to use 0 decimal places, to preserve previous behaviour.
All the uses which were showing an actual file or memory size have
been left as default (1 decimal place).
2021-09-27 16:52:33 +01:00
Ilya Tregubov
6cc0d5dfbd Merge branch 'MDL-71828-master' of git://github.com/ferranrecio/moodle 2021-09-24 08:49:32 +02:00
Ferran Recio
05b6f68f65 MDL-71828 courseformat: course index section link toggler 2021-09-22 20:10:04 +02:00
Jun Pataleta
ed0d7efa2f Merge branch 'MDL-71664-master-v04' of git://github.com/ferranrecio/moodle 2021-09-22 21:17:32 +08:00
Ferran Recio
23499e6447 MDL-71664 course: add browser native drag and drop 2021-09-22 11:08:06 +02:00
Jun Pataleta
99cb8a7303 Merge branch 'MDL-71037-master-8' of git://github.com/ilyatregubov/moodle 2021-09-22 14:44:17 +08:00
Ilya Tregubov
f2e28c0561 MDL-71037 course: Make sections collapsible for Topics/Weeks format. 2021-09-21 18:41:59 +02:00
Eloy Lafuente (stronk7)
0f04ec2ef6 Merge branch 'MDL-72387-master' of git://github.com/aanabit/moodle 2021-09-20 23:23:24 +02:00
Amaia Anabitarte
5c54b1a608 MDL-72387 core_course: section navigation visiblity for students 2021-09-20 21:49:19 +02:00
Amaia Anabitarte
7958fa72e1 MDL-72356 core_course: auto enrol admins when adding a new course 2021-09-20 13:09:29 +02:00
Sujith Haridasan
c1a2df7f64 MDL-72396 core: Allow setting of active tab
Allow easy setting of active tab for the navigation
views.
2021-09-17 12:37:42 +05:30
Jun Pataleta
385438b463 Merge branch 'MDL-72589' of https://github.com/stronk7/moodle 2021-09-16 09:46:56 +08:00
Eloy Lafuente (stronk7)
433212a33e Merge branch 'MDL-72093-master' of git://github.com/mihailges/moodle 2021-09-16 00:32:47 +02:00
Eloy Lafuente (stronk7)
9f9fe79c26 MDL-72589 behat: Add @skip_chrome_zerosize to failing scenarios
All the scenarios failing with Chrome zero-size errors are
getting the @skip_chrome_zerosize to be able to keep them apart from
regular runs. See MDL-71108 for more information about
that error.

They will be run by another job, specifically using that tag to
keep them failing and under control.
2021-09-15 20:25:11 +02:00
Ilya Tregubov
de814baafe Merge branch 'MDL-72310-master' of git://github.com/aanabit/moodle 2021-09-15 14:06:17 +02:00
Eloy Lafuente (stronk7)
2d65b1eb52 Merge branch 'MDL-72115-master' of git://github.com/sarjona/moodle 2021-09-14 22:42:15 +02:00
Mihail Geshoski
7d821080f0 MDL-72093 navigation: Update behat tests 2021-09-14 12:02:35 +08:00
Jun Pataleta
355e30cfec Merge branch 'MDL-71228-master-v02' of git://github.com/ferranrecio/moodle 2021-09-13 22:10:19 +08:00
Odei Alba
a1b38e4f8c MDL-68325 completion: Add validation to course completion form 2021-09-13 12:06:08 +02:00
Sara Arjona
3f2f2e85bb MDL-72115 course: Rename Miscellaneous category
The "Miscellaneous" course category has been renamed to Category 1.
Besides, the description field has been set from FORMAT_MOODLE to
FORMAT_HTML.
2021-09-13 08:36:17 +02:00
Ferran Recio
7659a18993 MDL-71228 course: sorting course on section state change 2021-09-09 11:16:10 +02:00
Ferran Recio
7f750dc01c MDL-71228 course: course index drag and drop 2021-09-09 11:16:10 +02:00
Huong Nguyen
e0dd5f268a MDL-71899 performance: Improve course image caching
Changed to use get_course() instead of get_fast_modinfo() for better performance
2021-09-09 09:21:14 +07:00
Amaia Anabitarte
c5578db866 MDL-72310 core_course: Expand course index sections by default 2021-09-03 12:25:33 +02:00
Sara Arjona
72410362bf Merge branch 'MDL-72130-master' of git://github.com/ferranrecio/moodle 2021-09-01 18:15:18 +02:00
Paul Holden
69d3e67189 MDL-72169 privacy: format course name/summary during export. 2021-08-31 11:55:56 +01:00
Eloy Lafuente (stronk7)
083289d540 MDL-71209 behat: remove some useless "follow the course" steps
They are not really needed and, with the new course index (or
maybe with the new navigation, I've not checked), they don't work
any more. Hence, removing them.
2021-08-26 18:18:53 +02:00
Ferran Recio
5672bafcdb MDL-72130 courseformat: fix deprecated course_section_cm 2021-08-26 10:18:34 +02:00
Andrew Nicols
b69b7184e9 Merge branch 'MDL-72311-master' of git://github.com/aanabit/moodle 2021-08-26 11:54:08 +08:00
Jun Pataleta
4e75e73cb5 Merge branch 'primary_secondary_nav' of https://github.com/Chocolate-lightning/moodle 2021-08-25 10:42:57 +08:00
Sara Arjona
c5183622d6 Merge branch 'MDL-58579' of https://github.com/Chocolate-lightning/moodle 2021-08-24 12:35:10 +02:00
Mathew May
ccd62d2884 MDL-58579 block_myoverview: Implement searching within myoverview 2021-08-24 16:26:50 +08:00
Eloy Lafuente (stronk7)
c25fe3a183 Merge branch 'MDL-71055-master' of git://github.com/andrewnicols/moodle 2021-08-23 23:22:15 +02:00
Eloy Lafuente (stronk7)
a65c0bbc0a MDL-71847 course: small tests fixes.
1) Namespace must match the one being covered.
2) the @covers annotation was wrong, missing class name(s). At the
   end I've used the coversDefaultClass annotation that allows to
   specify a whole namespace, useful in this case to get the 3
   existing (course, section, cm) classes covered.
2021-08-23 20:14:51 +02:00
Eloy Lafuente (stronk7)
101355638b Merge branch 'MDL-71847-master' of git://github.com/ilyatregubov/moodle 2021-08-23 18:48:25 +02:00
Ferran Recio
0b18d478a2 MDL-71209 courseformat: disable course index in mod 2021-08-23 12:49:22 +02:00
Adrian Greeve
7d435fb5f2 MDL-70196 navigation: Update to feature files.
- Part of: MDL-69588
A lot of tests rely on the last element of the breadcrumb being
active. This updates feature files to not rely on this anymore.
2021-08-23 17:46:38 +08:00
Andrew Nicols
891d1bfad3 MDL-71055 behat: Update core settings to use generator
These changes have only been applied to settings which were already
using settings names and values, but which were still using the UI.
2021-08-23 12:23:03 +08:00
Ferran Recio
ef745009ed MDL-71209 courseformat: add state suport to legacy action
Adapt the current course editing libraries to modify also
the course state data. This way, any UI component that
watches the course structure can react to the changes.
2021-08-20 16:49:06 +02:00
Ferran Recio
830c3eb907 MDL-71209 courseformat: add course index modules
The course index is the first UI component that implements the new
drawers and the reactive components. The course index uses the course
state to present the current course structure and changes whenever
that structure change.
2021-08-20 16:49:06 +02:00
Mikhail Golenkov
8355a9a018 MDL-72239 phpunit: Assert the number of db queries to be less or equal
The course unit test assumes the number of db call. This assumption
is correct in vanilla moodle only. Once some plugins installed their
observers may do extra db calls. Due to caching the number of actual
db calls in the unit test may be fewer.
2021-08-18 11:01:29 +10:00
Amaia Anabitarte
d45058fd21 MDL-72311 core_course: Go to course content when creating a course 2021-08-17 19:16:37 +02:00