Use PHP DateInputWidget in Contribs and use for range filtering
authorGeoffrey Mon <geofbot@gmail.com>
Mon, 12 Dec 2016 14:26:15 +0000 (09:26 -0500)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 29 May 2017 16:39:07 +0000 (16:39 +0000)
commitb66888733c182fd02478c0d351682b15c3f114df
tree7ccfe544234250d0f7ab228e6dbc0a70b6e903cd
parent4b110c881c622d1bfe73a9ced7329a1cde5fb82b
Use PHP DateInputWidget in Contribs and use for range filtering

* Add two DateInputWidgets to Special:Contributions, one for start and
  one for end
** If start input is empty but end input is not, display edits up to end
   input, and vice versa
** If both inputs are specified, display edits between the two dates
** If both inputs are empty, no date range is used
* Legacy options (year=/month=) are converted to use for the end
  timestamp, so URLs with them should still work.
* Unit tests!

Bug: T120733
Change-Id: Id15f2b2ce2954fe98dfbbb7b0e86c0e4e5713f5e
includes/specials/SpecialContributions.php
includes/specials/pagers/ContribsPager.php
resources/Resources.php
resources/src/mediawiki.special/mediawiki.special.contributions.js [new file with mode: 0644]
tests/phpunit/includes/specials/SpecialContributionsTest.php [new file with mode: 0644]