3362 Commits

Author SHA1 Message Date
Jun Pataleta
9af545659c Merge branch 'MDL-72928-rebase' of https://github.com/Chocolate-lightning/moodle 2022-02-11 22:28:11 +11:00
Jun Pataleta
ae14ff321b MDL-72928 core: Remove Remember username 2022-02-11 12:01:26 +08:00
Eloy Lafuente (stronk7)
3bb4a4009c MDL-73764 tool_xmldb: Regenerate all the files detected by the report
Note that, instead of going one by one to them from the XMLDB Editor
(load, makes some tiny change, save, revert the change, save), the
report includes a commented line that, once uncommented, does regenerate
the file while reporting.

I've left it there as a commodity for the developer.
2022-02-08 19:25:03 +01:00
Eloy Lafuente (stronk7)
7a0d024e60 MDL-73659 phpunit: restore_date, api, rule, plugin, manager & helper
All restore_date_test, api_test, rule_test, plugin_test,
manager_test, helper_test testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to:

- All restore_date_test cases have been put under xxx\backup
  level 2 (valid API) namespace.
2022-02-05 00:03:32 +01:00
Paul Holden
99fa14185c MDL-73075 lang: move deprecated strings to correct component.
Fix deprecated version. See original change from f9e1c258 for context.
2022-02-02 09:59:45 +00:00
Eloy Lafuente (stronk7)
2d2b70bc01 MDL-72089 behat: Need to hover the cards to make the buttons visible
Kudos to Chrome that detected this. The buttons are now not visible
until you hover the course card. Hence, we have to do the same with
extra behat step, to allow the following click to work.
2022-01-26 23:31:05 +01:00
Eloy Lafuente (stronk7)
f067a420cf Merge branch 'MDL-72089' of https://github.com/Chocolate-lightning/moodle 2022-01-26 10:23:01 +01:00
Shamim Rezaie
61f6e6c639 Merge branch 'MDL-73068-master-2' of git://github.com/mickhawkins/moodle 2022-01-25 10:55:47 +11:00
Mathew May
c530e4c448 MDL-72089 block_myoverview: Template changes for styling 2022-01-24 15:09:38 +08:00
Jake Dallimore
041b1beb46 Merge branch 'MDL-73347-master' of https://github.com/sarjona/moodle 2022-01-24 13:40:57 +08:00
Eloy Lafuente (stronk7)
100bc51f1d MDL-73485 phpunit: externallib, generator and filter tescase names
All externallib_test, generator_test and filter_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under testing/tests:

1) The core_testing component doesn't exist.
2) But testing/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have testing_xxxx as prefix.

Finally, also modified calendar/tests/events/events_test.php because it uses
some renamed (core_calendar_externallib_testcase => \core_calendar\externallib_test)
classes.
2022-01-21 19:48:23 +01:00
Michael Hawkins
22eacb1590 MDL-73068 timeline: Make dates view consistent where no courses enrolled
Updating the dates view of the block so it shows the same message as
courses view if the user is not enrolled in any courses. The block also
no longer tries to fetch any content in this case, since we know they
have no courses to fetch events from.
2022-01-18 18:22:45 +08:00
Michael Hawkins
e01f2d514a MDL-73068 timeline: Update courses view to omit courses without events
Previously, the timeline block courses view included all courses in
alphabetical order, whether they contained any events matching the
relevant filters or not. This could be tedious and misleading if there
were many courses with no events appearing before a course which did
have matching events. Now, courses are only included if they contain
events matching the currently set time filter and search term. When
those values are modified, the block will be refreshed and fetch
results for the current values, and also takes these into
consideration when determining whether to display the show more courses
button.
2022-01-18 18:22:45 +08:00
Shamim Rezaie
945058b890 Merge branch 'MDL-73342-master' of https://github.com/sarjona/moodle 2022-01-18 17:00:59 +11:00
Andrew Nicols
6670c04c23 Merge branch 'MDL-73476' of https://github.com/stronk7/moodle 2022-01-18 09:31:44 +08:00
Sara Arjona
0921e06ff6 Merge branch 'MDL-73486-master' of https://github.com/bmbrands/moodle 2022-01-17 16:32:10 +01:00
Eloy Lafuente (stronk7)
0c53a3dec8 MDL-73476 phpunit: events, external and search tescase names
All events_test, external_test and search_test classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to lib/external/tests/external_test.php:
- external is not a valid component
- hence, its only valid namespace is "core"
- also, it's testing lib/external/externallib.php
- hence, the file (and class) have been renamed to external_externallib_test.php
  (to avoid conflicts with other external_test that may exist in core)
2022-01-14 16:18:39 +01:00
Sara Arjona
53fe23d8b5 MDL-73347 behat: Add blocks hidden by default for boost
For the boost them, a few themes have been hidden by default.
The unaddable setting should be set to let admins add them again,
because some behat tests need them.
2022-01-14 13:08:48 +01:00
Andrew Nicols
626c8b43bf Merge branch 'MDL-65801' of https://github.com/paulholden/moodle 2022-01-14 09:30:11 +08:00
Paul Holden
6ed8458eda MDL-65801 lang: final removal of deprecated 37/38 strings.
The following lang strings have been undepecated, as they are still
in use:

* errorcoursewronglypublished, core_hub
* eventrolecapabilitiesupdated, core_role
2022-01-13 09:50:50 +00:00
Sara Arjona
1ce7bc329c Merge branch 'MDL-73343-master' of https://github.com/aanabit/moodle 2022-01-13 10:22:16 +01:00
Amaia Anabitarte
615027ea75 MDL-73343 block_myoverview: Add link to create course for empty content 2022-01-13 09:39:43 +01:00
Sara Arjona
f6af9e103d MDL-73342 selfcompletion: Disable the block by default
Co-authored by: Amaia Anabitarte <amaia@moodle.com>
2022-01-11 16:37:26 +01:00
Sara Arjona
fcfa24f341 MDL-73342 rss_client: Disable the block by default
Co-authored by: Amaia Anabitarte <amaia@moodle.com>
2022-01-11 16:37:26 +01:00
Sara Arjona
219d8ec4a4 MDL-73342 feedback: Disable the block by default
Co-authored by: Amaia Anabitarte <amaia@moodle.com>
2022-01-11 16:37:25 +01:00
Sara Arjona
b1a772d1ad MDL-73342 course_summary: Disable the block by default
Co-authored by: Amaia Anabitarte <amaia@moodle.com>
2022-01-11 16:37:25 +01:00
Huong Nguyen
db56452269 MDL-73297 Calendar: Display improvement in small screen
- Changed the breakpoint for responsiveness from 1200px to 768px
 - Added "dots" to indicate days with events for the large block and main calendar page
 - Added popovers for the main calendar page
 - Added new Behat scenarios to test the responsiveness
2022-01-07 14:41:32 +07:00
Bas Brands
e3f5c0d191 MDL-73486 block_privatefiles: prevent stylelint warnings 2022-01-04 08:24:34 +01:00
Sara Arjona
b90bc54f4b MDL-73339 mnet_hosts: Add block only if main feature is enabled
The Network servers block should be added only if the MNet
authentication is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
8246271f7c MDL-73339 glossary_random: Add block only if main feature is enabled
The Random glossary entry block should be added only if the glossary
module is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
595177194f MDL-73339 core_blocks: Behat tests to cover can_block_be_added 2021-12-30 13:17:49 +01:00
Sara Arjona
bafe63dc9f MDL-73339 lp: Add block only if main feature is enabled
The Learning plans block should be added only if the competencies
advanced feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
c435627e18 MDL-73339 tags: Add block only if main feature is enabled
The Tags block should be added only if the badges advanced
feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
39faf1d99c MDL-73339 badges: Add block only if main feature is enabled
The Latest badges block should be added only if the badges
advanced feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
33499f32d3 MDL-73339 globalsearch: Add block only if main feature is enabled
The Global search block should be added only if the global search
advanced feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
5f7b53980b MDL-73339 completionstatus: Add block only if main feature is enabled
The Course completion status block should be added only if the
completion advanced feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
8e932d6fd9 MDL-73339 comments: Add block only if main feature is enabled
The Comments block should be added only if the comments advanced
feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
8d600233d3 MDL-73339 blog_tags: Add block only if main feature is enabled
The Blog tags block should be added only if the blogs and the tags
advanced features are enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
3413df37a5 MDL-73339 blog_recent: Add block only if main feature is enabled
The Recent blog entries block should be added only if the blogs
advanced feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
1e09ac167f MDL-73339 blog_menu: Add block only if main feature is enabled
The Blog menu block should be added only if the blogs advanced
feature is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
06e8cda348 MDL-73339 accessreview: Add block only if main feature is enabled
The Accessibility review block should be added only if the
"Enable accessibility tools" advanced setting is enabled.
2021-12-30 13:17:49 +01:00
Sara Arjona
1823873d9a MDL-73339 core_blocks: New method can_block_be_added
A new method, can_block_be_added, has been added to
let blocks override it to decide whether it should
be added to a page or not.
2021-12-30 13:17:47 +01:00
Sara Arjona
a633bb56c1 Merge branch 'MDL-72716' of https://github.com/paulholden/moodle 2021-12-29 15:01:38 +01:00
Paul Holden
844f4a7fb3 MDL-72716 blocks: fix external fetching of available blocks.
Pass `$PAGE->subpage` value in AJAX request, which is required on
some pages (e.g. user dashboard) for loading existing blocks.
2021-12-29 11:59:27 +00:00
Sara Arjona
27c1de3950 Merge branch 'MDL-73402' of git://github.com/paulholden/moodle 2021-12-29 10:07:55 +01:00
Sara Arjona
7e559628dc Merge branch 'MDL-72581-master' of https://github.com/junpataleta/moodle 2021-12-28 09:23:11 +01:00
Sara Arjona
0fc33251bf Merge branch 'MDL-72904-master-dec21' of https://github.com/peterRd/moodle 2021-12-27 08:47:50 +01:00
Peter Dias
6d5ab2233a MDL-72904 core_badges: Update behat tests 2021-12-23 21:25:36 +08:00
Jun Pataleta
80c17cd2a0 Merge branch 'MDL-72701-master' of https://github.com/andrewnicols/moodle 2021-12-23 12:10:46 +08:00
Jun Pataleta
2b962cf691 Merge branch 'MDL-73274-master' of https://github.com/bmbrands/moodle 2021-12-23 11:31:25 +08:00