Ryan Wyllie
909d08588d
MDL-59393 calendar: stop user editing module events
2017-08-23 00:57:22 +00:00
Ryan Wyllie
c6fb931088
MDL-59393 calendar: add update_event_start_day external function
2017-08-23 00:56:27 +00:00
Ryan Wyllie
55f5fcb9c9
MDL-59393 calendar: add update_event_start_day to local api
2017-08-23 00:56:26 +00:00
Simey Lameze
1228bb6cad
MDL-59860 core_calendar: fix behat failures
2017-08-22 09:40:01 +08:00
Andrew Nicols
b7173c18e9
Merge branch 'MDL-59687-master' of git://github.com/lameze/moodle
2017-08-21 15:20:22 +08:00
Andrew Nicols
ba756e857b
Merge branch 'MDL-59699-master' of git://github.com/lameze/moodle
2017-08-21 14:15:41 +08:00
Simey Lameze
21e3d8b8a3
MDL-59699 core_calendar: add steps to assert the course link
2017-08-21 13:35:53 +08:00
Simey Lameze
6a87019b13
MDL-59860 core_calendar: behat scenario for module events
2017-08-18 12:29:49 +08:00
Simey Lameze
ed84d85fdb
MDL-59687 core_calendar: calendar feature improvement
2017-08-18 11:13:27 +08:00
Simey Lameze
a56a9b3937
MDL-59687 core_calendar: create event step needs to wait page ready
2017-08-18 11:12:41 +08:00
Simey Lameze
5d942f5a53
MDL-59810 core_calendar: test action events cannot be deleted
2017-08-15 12:05:10 +08:00
Simey Lameze
c448e19bff
MDL-59382 core_calendar: fix behat failures
2017-08-02 07:52:20 +00:00
Simey Lameze
81170930c2
MDL-59382 core_calendar: change behat step
2017-08-02 04:47:43 +00:00
Ryan Wyllie
aa0912258d
MDL-59382 calendar: add modal to create and update events
2017-08-02 04:47:43 +00:00
Simey Lameze
52380c823c
MDL-59538 core_calendar: add behat step back
...
Part of MDL-59333.
2017-07-21 09:01:57 +08:00
Simey Lameze
ebebbc442c
MDL-59383 core_calendar: remove failing behat steps
2017-07-14 11:42:56 +08:00
David Monllao
93f2056000
Merge branch 'wip-MDL-59441-master' of git://github.com/marinaglancy/moodle
2017-07-11 11:41:03 +02:00
Marina Glancy
5540c0979b
MDL-59441 calendar: unittest fix for modules without generators
2017-07-04 11:16:08 +08:00
Mark Nelson
2fe7f706d7
MDL-59304 core_calendar: check if course is hidden in bailout callback
2017-07-04 10:11:34 +08:00
David Monllao
1243fce158
Merge branch 'wip-MDL-59308-master' of git://github.com/marinaglancy/moodle
2017-06-27 16:41:26 +02:00
Marina Glancy
70b6230829
MDL-59308 calendar: pass module context when known
...
this will protect us from exceptions when context for removed instance can not be retrieved
2017-06-22 13:42:22 +08:00
Marina Glancy
63e9e38202
MDL-58911 calendar: use the same callbacks in unittests and prod
...
Remove unittest-specific callbacks for checking access and displaying
the calendar events on the dashboard.
This will allow plugin developers unittest the full behavior
of how their plugins add events to the dashboard.
Reset all static caches between unittests.
2017-06-20 16:13:35 +08:00
Jun Pataleta
51807cf5c4
MDL-59101 calendar: Properly calculate expected until date
2017-06-07 23:09:17 +08:00
Jun Pataleta
723742fee0
MDL-59093 calendar: Use a fixed start day for forever BYMONTH test
2017-05-31 15:01:34 +08:00
Jun Pataleta
4eec39e2b2
MDL-58723 calendar: Better testing of forever recurring events
...
* Change the start date of the parent event to the current date
for tests that with events that recur forever.
* Limit query results to 100 for events that recur forever that can
generate more than 100 event records.
2017-05-16 14:39:53 +08:00
Dan Poltawski
3cc5abc163
Merge branch 'wip-MDL-58688-master-c' of git://github.com/marinaglancy/moodle
2017-05-08 10:31:37 +01:00
Jun Pataleta
472cae12a6
Merge branch 'MDL-58518-master' of git://github.com/ryanwyllie/moodle
2017-05-08 15:50:03 +08:00
Jun Pataleta
bf57bde20d
MDL-58810 calendar: Add coverage for UUID in recurring events
2017-05-08 09:33:47 +08:00
Marina Glancy
47a710177a
MDL-58688 calendar: retrieve event module without db queries
2017-05-04 16:53:19 +08:00
Cameron Ball
eeb27f03bd
MDL-58736 core_calendar: Revert calendar_get_events to 3.2 implementation
...
We modified calendar_get_events in a non backwards compatible way
so instead of fixing that, an easier approch is to simply revert
it to the 3.2 implementation. This should be fine since the way
to get events is going to change in an upcomming release, and we
had to swap all occurences of calendar_get_events in core with
calendar_get_legacy_events to make sure the calendar and overview match.
2017-05-04 12:19:35 +08:00
Marina Glancy
5900513f75
MDL-58688 calendar: use modinfo to check module availability
2017-05-03 15:07:43 +08:00
Ryan Wyllie
405f8491e5
MDL-58518 calendar: ignore events from courses user not enrolled in
2017-05-02 02:53:25 +00:00
Jake Dallimore
434f31bc12
Merge branch 'MDL-58575-master' of git://github.com/cameron1729/moodle
2017-05-01 12:14:42 +08:00
Cameron Ball
d0dc97bf3a
MDL-58575 core_calendar: Group override tests for same priority
...
This patch adds tests for when group override events have the same
priority.
2017-04-27 19:12:50 +08:00
David Monllao
af282469b4
Merge branch 'MDL-58578-master' of git://github.com/cameron1729/moodle
2017-04-27 15:16:27 +08:00
Cameron Ball
a776415d55
MDL-58578 core_calendar: Properly respect priorities on overview
...
Prior to this patch, if a user was in two groups, and an override
existed for both groups in an assignment the override
visually lower on the override list would be displayed on the
overview, whereas the one visually higher would be displayed
in the assignment grading table.
2017-04-27 15:15:12 +08:00
David Monllao
f539dc3aa5
Merge branch 'MDL-58718-master' of git://github.com/andrewnicols/moodle
2017-04-27 11:14:04 +08:00
Eloy Lafuente (stronk7)
a25116c0ac
MDL-58718 unit tests: fix some windows + 32bits problems
...
- We were using number beyond 32 bits MAXINT.
- setTimestamp() needs an integer. Better fulfill it.
2017-04-26 09:36:10 +08:00
Jake Dallimore
0dcfadd9e4
Merge branch 'MDL-57793-master' of git://github.com/junpataleta/moodle
2017-04-24 15:16:30 +08:00
Jun Pataleta
6d5661a9b3
MDL-57793 calendar: Additional edge-case tests
...
* Added leap year and 31th day of the month tests.
2017-04-18 13:55:25 +08:00
Jun Pataleta
22753c8c5c
MDL-58566 calendar: Move \core_calendar\local\api::get_legacy_events()
...
* Move and rename \core_calendar\local\api::get_legacy_events() to
calendar_get_legacy_events() in calendar/lib.php.
* Fix the parameter-normalising callback function in
calendar_get_legacy_events() so that it correctly handles false values
by returning an empty array instead of it returning a non-empty array
that contains an empty element.
2017-04-18 10:32:09 +08:00
Mark Nelson
5c85bfe122
MDL-55611 core_calendar: Fixed query for Oracle
...
Also fixed unit test filter.
2017-04-06 12:56:00 +08:00
Andrew Nicols
95f38c22ca
MDL-55611 calendar: Fix unit test filter
...
The event test factory uses a closure to return only every other record.
This was previously working based on ID but MSSQL starts from an even
number rather than an odd number.
This change changes that to use a static variable which keeps a count of
the records instead and only returns every other record in this fashion,
removing the dependance upon ID.
2017-04-06 08:50:12 +08:00
Mark Nelson
d7bc2c6fd5
MDL-55611 core_calendar: fixed unit tests failing in isolation
2017-04-04 11:01:57 +01:00
Cameron Ball
92ac08bcee
MDL-58442 core_calendar: Nuke action_event_factory and friends
...
These are unecessary since the only place the factory
is used is in the container.
Part of MDL-55611 epic.
2017-04-04 11:01:56 +01:00
Cameron Ball
d10693cb63
MDL-58442 core_calendar: Rename core_container to simply container
...
core_container was confusing as it looks Frankenstyleish.
Part of MDL-55611 epic.
2017-04-04 11:01:56 +01:00
Cameron Ball
42e76c3f70
MDL-58430 core_calendar: Keep interfaces with implementations
...
All interfaces have been moved from the interfaces folder such
that they now live with their default implementations.
Part of MDL-55611 epic.
2017-04-04 11:01:55 +01:00
Mark Nelson
2229368a3c
MDL-58424 core_calendar: moved api::get_events
...
This function was moved to local_api::get_legacy_events.
Also removed the calendar/classes/api.php file since it no longer contained any
functionality and added unit tests for local_api::get_legacy_events (a copy of
the unit tests for calendar_get_events).
Part of MDL-55611 epic.
2017-04-04 11:01:53 +01:00
Mark Nelson
f8443a26f9
MDL-58424 core_calendar: removed unused get_action_events_* functions
...
Also moved associated unit tests to another location and changed
them so that they were testing local_api instead.
Part of MDL-55611 epic.
2017-04-04 11:01:53 +01:00
Mark Nelson
23a29de7ee
MDL-58424 core_calendar: moved logic from api.php to lib.php
...
Also moved related PHPUnit tests.
Part of MDL-55611 epic.
2017-04-04 11:01:52 +01:00