188 Commits

Author SHA1 Message Date
Andrew Nicols
f7c52739c0
MDL-73239 core_my: Fix coverage 2023-07-09 22:12:10 +08:00
Andrew Nicols
c472ba4738
Merge branch 'MDL-73239-master' of https://github.com/rmady/moodle 2023-07-09 22:02:22 +08:00
Angelia Dela Cruz
09d654b3fe MDL-78158 behat: Behat cleanup and optimisation 2023-07-04 07:01:27 +08:00
Angelia Dela Cruz
9f101a30b2 MDL-78158 Behat: Use data generators to add blocks 2023-07-03 17:41:21 +08:00
Rodrigo Mady da Silva
eccbe6606a MDL-73239 core_my: Add Webservice core_my_view_page 2023-06-29 15:06:45 -03:00
Andrew Nicols
aa2fc4048e MDL-69231 behat: Update tests to use new generator 2023-06-02 12:47:27 +08:00
Marina Glancy
04c3cd2343 MDL-74465 block_html: display config when adding 2023-03-30 12:15:54 +01:00
Marina Glancy
e861734286 MDL-72182 my: tests for resetting dashboard
Co-authored-by: Paul Holden <paulh@moodle.com>
2023-02-06 09:34:18 +00:00
Paul Holden
b31b37aaae MDL-72182 user: cross-DB compatibility for getting user pages/blocks. 2023-02-06 09:34:18 +00:00
Leon Stringer
199ce65ec0 MDL-75346 core_my: Handle missing blocks on reset
If the default dashboard contained a block that was missing from disk
then "Exception - Call to a member function instance_copy() on bool"
was shown to users.  This change only shows an error with debugging
enabled which now includes the name of the missing block.
2022-12-17 17:37:45 +00:00
Ilya Tregubov
3f568024a1 MDL-76033 core: bump version in is_major_upgrade_required
MDL-58266 changes db structure. So upgrade must happen before
accessing any page.
2022-10-19 15:08:44 +03:00
Jun Pataleta
87e513e439 MDL-74800 core: block actions fix suggestion 2022-08-08 14:46:42 +02:00
Sujith Haridasan
73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Marina Glancy
b2565dd580 MDL-74596 core_admin: option to hide search input on admin pages 2022-07-05 12:28:21 +03:00
Ferran Recio
31b4535695 MDL-74716 core_my: Fix My course user tour for admins 2022-06-16 19:10:33 +02:00
Amaia Anabitarte
2c010bbd7b MDL-74716 course: Add Request a course link to My courses 2022-06-14 16:53:38 +02:00
Mihail Geshoski
8d0ca00e95 MDL-74386 navigation: Remove redundant set_secondary_navigation() calls
Removes $PAGE->set_secondary_navigation(false) calls which certain pages
were using to prevent displaying secondary navigation menu in the system
context. This logic is now generally handled within the secondary
navigation class.
2022-04-08 15:11:31 +08:00
Michael Hawkins
a640f43181 MDL-74078 core_my: Lock all blocks on the my courses page 2022-04-04 14:24:56 +08:00
Sujith Haridasan
aa1c2e2382 MDL-73848 administration: Fix the breadcrumbs and nav highlights
Create or update the breadcrumbs in the site administration
pages where it is required.
Highlight the corresponding site adminstration tab.
Highlight the primary nav to Site administration when user
is navigating to any of the site administration pages.

Also changed the boostnavbar so that the nodes in the secondary
navigation are not shown in the breadcrumbs when user is in site
administration page.
2022-03-25 17:44:47 +08:00
Marina Glancy
09446a2934 MDL-74254 course: User may not have capability to browse courses 2022-03-21 14:44:14 +01:00
Jun Pataleta
1e533995dd Merge branch 'MDL-73233-master' of https://github.com/sarjona/moodle 2022-03-18 00:35:11 +08:00
Sara Arjona
31ed9a6c2f MDL-73233 my: Disable /my page depending on setting
When $CFG->enabledashboard will be disabled, the /my page
will redirect to a different page or display an error message.
2022-03-16 11:35:08 +01:00
Jun Pataleta
6937d87ddd MDL-72481 admin: Render the site admin navigation menu as tablist
only render the secondary nav as tablist if it is for the site admin tabs

Co-authored-by: Shamim Rezaie <shamim@moodle.com>
2022-03-15 12:48:21 +11:00
Ilya Tregubov
bf842246c6 Merge branch 'MDL-73549-master-2' of https://github.com/HuongNV13/moodle 2022-03-09 16:41:02 +06:00
Huong Nguyen
481cfdc3f0 MDL-73549 Course: My course page menu improvement
- Introduce core_course_category::get_nearest_editable_subcategory()
 - This function will return the first creatable/manageable category
for current user
 - With this new function, we can fix the issue that the users with
course management or creation permision at category level cannot see
the manage menu on My courses page
2022-03-08 14:25:19 +07:00
Jun Pataleta
4aa63901c3 Merge branch 'MDL-73906-master' of https://github.com/bmbrands/moodle 2022-03-04 13:06:43 +08:00
Eloy Lafuente (stronk7)
9dde12dc99 Merge branch 'MDL-72092-master' of https://github.com/Chocolate-lightning/moodle 2022-03-01 14:55:02 +01:00
Bas Brands
62fadb8ddb MDL-73906 core_my: default dashboard page header 2022-03-01 14:12:22 +01:00
Peter Dias
081b255ab0 MDL-73462 navigation: Behat test update 2022-03-01 17:57:24 +08:00
Mathew May
f0cedb93e8 MDL-72092 core: Re-arrange the default dashboard 2022-02-25 15:12:50 +08:00
Jake Dallimore
041b1beb46 Merge branch 'MDL-73347-master' of https://github.com/sarjona/moodle 2022-01-24 13:40:57 +08:00
Sara Arjona
efd5ddbd9f Merge branch 'MDL-73114-master' of https://github.com/bmbrands/moodle 2022-01-20 09:10:07 +01:00
Bas Brands
5e8b258cac MDL-73114 theme_boost: show page title on Dashboard page
replace the page title when the welcome message is shown
2022-01-19 17:36:54 +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
Jun Pataleta
2b962cf691 Merge branch 'MDL-73274-master' of https://github.com/bmbrands/moodle 2021-12-23 11:31:25 +08:00
Shamim Rezaie
dacfebedf3 Merge branch 'MDL-73348' of https://github.com/stronk7/moodle 2021-12-22 21:19:52 +11:00
Jun Pataleta
e9bd499fb1 Merge branch 'MDL-72867-master' of https://github.com/HuongNV13/moodle 2021-12-21 11:23:09 +08:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
57e6fb7ad9 MDL-73348 phpunit: privacy and privacy_provider testcase names
All privacy_test and privacy_provider_test classes:

- Namespaced with component\privacy.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Renamed a few files to make all be privacy_test or privacy_provider_test.php
- All them passing individually.
- Complete runs passing too.
2021-12-17 14:21:02 +01:00
Bas Brands
a8b6912e44 MDL-73274 theme_boost: add block/activity styling 2021-12-15 14:46:45 +01:00
Huong Nguyen
8c336899a9 MDL-72867 Navigations: User menu improvements 2021-12-15 13:54:45 +07:00
Bas Brands
946fd915e2 MDL-72095 theme_boost: max width for activity pages 2021-12-08 17:29:49 +01:00
Gareth Barnard
00f59c226e
MDL-73173 core_my: Confusing 'Content' region. 2021-12-03 12:54:17 +00:00
Sara Arjona
948c86ce07 Merge branch 'MDL-72996' of https://github.com/Chocolate-lightning/moodle 2021-12-01 11:35:01 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Mathew May
60f0bae098 MDL-72996 my: Rounded course management button hover 2021-11-25 10:55:19 +08:00
Mathew May
6ca9c2154a MDL-70801 core_my: Add a new courses page 2021-11-15 11:49:35 +08:00
Shamim Rezaie
045ca2f1f0 Merge branch 'MDL-72689-master' of https://github.com/sharidas/moodle 2021-10-11 20:11:44 +11:00
Mathew May
dba47e8641 MDL-72091 Navigation: Update navigation to match designs 2021-10-11 12:20:34 +08:00