Simey Lameze
eaf623c5bf
MDL-66871 calendar: add unit test coverage for ics importing
2020-01-06 10:36:35 +08:00
Eloy Lafuente (stronk7)
5afac432f5
MDL-67598 unit tests: Pass day of month without leading zero
...
Note this fixes the unit tests. Still the calendar API itself
should be able to manage this cases, both casting (int) or
being stricter about what's allowed there (param hinting).
But that falls out from this issue and the code that introduced
the failures, so the pure unit-test fix has been applied.
2020-01-02 00:06:40 +01:00
Shamim Rezaie
f046b70355
MDL-67152 calendar: The day view should start from the current day
2019-12-09 22:37:21 +11:00
sam marshall
584500d5ba
MDL-67300 Calendar: Inconsistent behaviour of managegroupentries
...
When calling the calendar_get_allowed_event_types function with
no course id, it is supposed to return true if you have the
relevant permissions in any course.
For users who have the managegroupentries permission, this was not
the case - even though it works correctly if you call the function
with a supplied course id.
This change makes behaviour with and without a supplied course id
consistent.
2019-11-21 10:51:35 +00:00
Jake Dallimore
7296c718a1
Merge branch 'MDL-66455-master' of git://github.com/lameze/moodle
2019-11-05 11:42:48 +08:00
Michael Hawkins
23affd76c2
MDL-66373 calendar: Added datetimes to timestamps conversion web service
2019-11-04 10:04:57 +08:00
Simey Lameze
65137025ff
MDL-66455 calendar: add coverage for event types in subscription page
2019-10-31 18:44:14 +08:00
Pau Ferrer Ocaña
375d82cafc
MDL-66612 calendar: Change global events to site events
...
AMOS BEGIN
CPY [category,moodle],[category,calendar]
CPY [site,notes],[eventtypesite,calendar]
CPY [site,moodle],[site,calendar]
MOV [typesite,moodle],[siteevent,calendar]
AMOS END
2019-10-21 09:33:01 +02:00
Jun Pataleta
ec720611d5
MDL-61450 calendar: Unit test for calendar_view_event_allowed()
...
* Unit test for calendar_view_event_allowed() when dealing with course
events.
2019-10-03 15:38:43 +08:00
Simey Lameze
da6ed25999
MDL-65958 calendar: cover students default event type visibility
2019-07-03 20:39:58 +08:00
Simey Lameze
47177cd6bc
MDL-65958 calendar: add behat to test calendar_adminseesall behaviour
2019-07-03 20:27:59 +08:00
Simey Lameze
ce715ce556
MDL-65707 calendar: behat scenario to test default event type
2019-06-25 09:50:27 +08:00
Jun Pataleta
f80ae63efa
Merge branch 'MDL-64573-master' of git://github.com/damyon/moodle
2019-04-26 10:59:30 +08:00
Marina Glancy
669d54a48c
MDL-64573 calendar: behat fix, validation is now on client
2019-04-26 10:57:04 +08:00
David Monllaó
45c8b226be
Merge branch 'MDL-64782-master' of git://github.com/rezaies/moodle
2019-04-24 17:37:45 +02:00
Shamim Rezaie
ac2bfc2c37
MDL-64782 core_calendar: Privacy deletion fix
...
Deleting in course context should not delete from course modules
2019-04-23 17:01:48 +10:00
Juan Leyva
2aad6b8261
MDL-64641 calendar: New WS core_calendar_get_allowed_event_types
2019-04-05 09:56:39 +02:00
Juan Leyva
a46980fa79
MDL-64641 calendar: New WS core_calendar_get_access_information
2019-04-05 09:56:39 +02:00
Simey Lameze
54fec0c30b
MDL-63196 core_calendar: add behat scenario
2019-03-22 10:41:00 +08:00
David Monllaó
7af6528e30
MDL-60340 calendar: New param to specify a user
2019-03-15 11:35:29 +01:00
Simey Lameze
9cf58f070d
MDL-64214 calendar: fix failing unit tests
2018-11-29 13:59:36 +08:00
Adrian Greeve
c84ee67864
MDL-64063 core_calendar: Unit test for suspended users.
2018-11-21 09:51:52 +08:00
Andrew Nicols
705003beae
MDL-63303 behat: Behat fixes
2018-11-15 16:26:16 +08:00
Mihail Geshoski
77134a08b2
MDL-63684 core_calendar: Fix test_get_contexts_for_userid() test
...
This issue is part of the MDL-62560 Epic.
2018-10-31 14:10:47 +08:00
Mihail Geshoski
c844eafd6f
MDL-63684 core_calendar: Add support for removal of context users
...
This issue is part of the MDL-62560 Epic.
2018-10-31 14:10:08 +08:00
Shamim Rezaie
084d5ee46c
MDL-62960 calendar: Rename get_module_timestamp_min/max_limit methods
...
The methods get_module_timestamp_min_limit() and get_module_timestamp_max_limit()
are doing generic stuff and can be used for other calendar event types as well.
I have renamed them to get_timestamp_min_limit() and get_timestamp_max_limit() respectively.
2018-10-16 12:58:25 +11:00
Marina Glancy
442f12f81a
MDL-62742 core: rename coursecat->core_course_category
...
Also rename course_in_list -> core_course_list_element
Deprecate class coursecat_sortable_records
2018-08-28 11:36:23 +02:00
Víctor Déniz Falcón
02fda279ed
MDL-57281 behat: deprecated step definition I navigate to node in
...
Definition step deprecated and affected tests modified.
2018-08-20 12:53:26 +01:00
Shamim Rezaie
7385ee37f9
MDL-58768 Calendar: Update get_raw_events_legacy_implementation
...
Update get_raw_events_legacy_implementation to work with the passed $users parameter instead of the logged in user.
Also, fixed a bug where get_raw_events_legacy_implementation was failing when $users was set to true, and a list of
$groups was given.
2018-07-28 07:51:32 +10:00
Shamim Rezaie
d8c6c21c95
MDL-58768 Calendar: Added user param to calendar_set_filters
...
Decoupled calendar_set_filters from $USER.
Also removed the backward compatibility bit from the function because it was a left over.
2018-07-28 07:41:50 +10:00
Shamim Rezaie
bd8705732d
MDL-58768 Calendar: Added userid param to calendar_get_default_courses
2018-07-28 07:41:50 +10:00
Andrew Nicols
834054ee06
Merge branch 'MDL-60826-master' of git://github.com/lameze/moodle
2018-07-25 09:18:53 +08:00
Simey Lameze
375b15a346
MDL-60826 calendar: deprecate calendar_get_all_allowed_types
2018-07-24 07:58:34 +08:00
Simey Lameze
dfc609e55d
MDL-60826 calendar: lazy load groups on event form
2018-07-24 07:58:34 +08:00
Simey Lameze
633c5ffbfe
MDL-60826 calendar: tests for calendar_get_allowed_event_types
2018-07-24 07:58:34 +08:00
Andrew Nicols
2585f77a11
MDL-62949 calendar: Fix behat nav to calendar
2018-07-20 11:48:15 +08:00
Jun Pataleta
a746b6e840
Merge branch 'MDL-37624-master' of git://github.com/mickhawkins/moodle
2018-07-04 15:33:43 +08:00
Michael Hawkins
9a3ee0c396
MDL-37624 calendar: string and behat testing fixes
2018-06-29 10:46:57 +08:00
Michael Hawkins
ef4e04ee26
MDL-37624 calendar: Added location support
2018-06-29 10:46:54 +08:00
Simey Lameze
23b05f1841
MDL-62813 calendar: add behat test for form validation
2018-06-28 14:04:46 +08:00
Zig Tan
49d6fb0379
MDL-61693 core_calendar: Implemented privacy providers
2018-04-26 21:10:49 +08:00
Ryan Wyllie
4e0ac12efa
MDL-60958 calendar: fix test helper action factory
2018-02-12 05:47:49 +00:00
Ryan Wyllie
28852998f6
MDL-60958 calendar: stop db query in repeat collection constructor
...
Stop loading the parent record in the constructor because it is an
unnecessary DB query for each event instantiation.
Return null on get_repeats() for events that don't have repeats.
2018-02-12 05:29:11 +00:00
Juan Leyva
e3c04bd98a
MDL-60836 core_calendar: Return categoryid in get_calendar_events
2018-01-30 13:47:19 +01:00
David Monllao
09896c35f2
Merge branch 'MDL-60963-master' of git://github.com/ryanwyllie/moodle
2018-01-17 10:49:58 +01:00
Ryan Wyllie
3152de6a8d
MDL-60963 calendar: use related cache for module instances in export
2018-01-17 03:23:36 +00:00
David Monllao
641e7d41a6
MDL-60967 calendar: Add argument for missing mini param
2018-01-16 13:30:14 +01:00
Ryan Wyllie
6b02488559
MDL-60959 calendar: remove duplicate course export in event exporter
2018-01-09 01:51:13 +00:00
Ryan Wyllie
bb4691ec7b
MDL-60959 calendar: use related course in calendar_event_exporter
2018-01-09 01:51:12 +00:00
Ryan Wyllie
7884ecf24f
MDL-60962 block_calendar_month: load content after page render
2017-12-06 06:21:16 +00:00