WLFilters: set default values
authorStephane Bisson <sbisson@wikimedia.org>
Mon, 21 Aug 2017 19:28:23 +0000 (15:28 -0400)
committerStephane Bisson <sbisson@wikimedia.org>
Mon, 28 Aug 2017 16:57:39 +0000 (12:57 -0400)
commit6314a9026f9b404928e96a883c6ace7e491e891b
tree5382682fab60545457753e7934308f70934b829c
parenta8ec960e9d910acbcd0d50efad3bd73e3ae812aa
WLFilters: set default values

* Respect different default values for 'limit' and 'day'
  in RC and WL.

* Make 'latestrevision' respect 'watchlistextended'

Introducing 2 properties to ChangesListBooleanFilter
* activeValue: The value that defines when a filter is active.
  Most filters are active when they are set to 'true' but
  'extended' has no effect when it is 'true' and applies
  filtering when it is set to false.

* isVisible: Whether this filter is visible anywhere.
  'extended' is not visible in the legacy form but
  it is activated from preference or URL. When
  understanding form submission, it should not be assume
  to be 'false' when not present in the request.

Bug: T171134
Change-Id: I3e48a9f2d9b70f0b9f6d7c6329db9c8e8001ee49
includes/changes/ChangesListBooleanFilter.php
includes/specialpage/ChangesListSpecialPage.php
includes/specials/SpecialRecentchanges.php
includes/specials/SpecialWatchlist.php
resources/src/mediawiki.rcfilters/mw.rcfilters.Controller.js