MDL-63352 block_timeline: Persist user preference on timeline
authorPeter <peter@moodle.com>
Thu, 4 Oct 2018 07:57:04 +0000 (15:57 +0800)
committerPeter <peter@moodle.com>
Mon, 15 Oct 2018 06:46:12 +0000 (14:46 +0800)
commit9e95193e9fd0ac9a69ce6c7573c97017e6565034
tree824a390540046d5edb8b643f30809c2f7fca3156
parent129783b98c4d5a9a4559260fc26dc1e21ab83be0
MDL-63352 block_timeline: Persist user preference on timeline

* Persist sort preference to the user table
* Persist filter preferences to the user table
* Add behat tests to test persistence
* Add the gdpr exports for the user preferences as well as unit tests for the same
* Updated view_nav.min
16 files changed:
blocks/timeline/amd/build/view_nav.min.js
blocks/timeline/amd/src/view_nav.js
blocks/timeline/block_timeline.php
blocks/timeline/classes/output/main.php
blocks/timeline/classes/privacy/provider.php
blocks/timeline/lang/en/block_timeline.php
blocks/timeline/lib.php [new file with mode: 0644]
blocks/timeline/templates/nav-day-filter.mustache
blocks/timeline/templates/nav-view-selector.mustache
blocks/timeline/templates/view.mustache
blocks/timeline/tests/behat/block_timeline_courses.feature
blocks/timeline/tests/behat/block_timeline_dates.feature
blocks/timeline/tests/privacy_test.php [new file with mode: 0644]
theme/bootstrapbase/templates/block_timeline/nav-day-filter.mustache
theme/bootstrapbase/templates/block_timeline/nav-view-selector.mustache
theme/bootstrapbase/templates/block_timeline/view.mustache