Go to file
Moriel Schottlender 5aaf6d26d8 Relate read-state filter and mark read/unread action
When we are viewing a certain read state filter ('read' or 'unread')
the visibility of items should correspond to that state even when
the user marks a specific item as read/unread. That means that the
system should remove these items from view when the action is taken.

In this commit:
* The controller makes the judgment of whether to remove items when
  read/unread action is taken, based on whether a filter is set.
* We clean up the terminology of discard - no more 'remove' - to
  make sure we have consistency in the code.
* Related: The 'discard' event is now scoped within the hierarchy;
  meaning, lists emit 'discard' when an item is removed, grouplist
  emits 'discard' when a group is removed, and the manager emits
  'discard' when an entire notification model is removed. This
  means we can actually have proper hierarchy and organization with
  a single event, and not worry about clashing between the intentional
  'discard' action and the event 'remove' that is also used while
  resorting happens.
* The model manager emits a discard event when a model is removed
  so that the general list can listen to the manager and remove an
  entire batch of items if needed.
* The pagination model now updates the count for the current page
  rather than some vague notion of the last page. This is also
  updated when the controller removes items, so we can get an
  accurate count in the page for the number of notifications that
  are displayed.

Bug: T136891
Change-Id: I247c618042ef256fadf09922f7b83bd1ad361f64
2016-07-18 13:23:57 -07:00
db_patches Dynamic bundles 2016-06-27 09:49:13 -04:00
i18n Localisation updates from https://translatewiki.net. 2016-07-17 22:28:13 +02:00
images Initial version of Special:Notifications Javascript page 2016-05-27 13:42:25 -07:00
includes getCentralAuthToken back to protected. 2016-07-12 18:45:31 -04:00
maintenance Change wfWikiId (lowercase d) to wfWikiID (uppercase D) 2016-06-29 15:11:21 +02:00
modules Relate read-state filter and mark read/unread action 2016-07-18 13:23:57 -07:00
scripts Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
tests Dynamic bundles 2016-06-27 09:49:13 -04:00
.csslintrc Add Grunt infrastructure for CI 2015-05-01 20:35:23 -07:00
.gitignore Add tmp emacs file to gitignore 2016-05-12 13:11:20 -04:00
.gitreview Add .gitreview file 2012-04-28 01:26:21 +10:00
.jscsrc Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
.jshintignore Recurse into sub folders for jshint and jscs 2015-11-09 12:52:42 +00:00
.jshintrc Update formatting 2015-10-03 23:28:54 -04:00
.mailmap Add Kunal, Moriel, Jon to credits; add mailmap file 2015-12-15 16:30:19 -08:00
.rubocop.yml Fixed Metrics/LineLength RuboCop offense 2015-09-29 14:59:05 +02:00
autoload.php Dynamic bundles 2016-06-27 09:49:13 -04:00
composer.json Remove forced -p (progress) flag from phpcs.xml 2016-04-26 14:21:28 -07:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Add mark-as-read button to notifications in Special:Notifications 2016-05-11 10:41:32 -07:00
Echo.php Notification count: don't assume 'all' 2016-07-06 21:04:49 +00:00
echo.sql Dynamic bundles 2016-06-27 09:49:13 -04:00
Gemfile Update mediawiki_api gem to 1.7.1 2016-05-26 12:36:55 +02:00
Gemfile.lock Update mediawiki_api gem to 1.7.1 2016-05-26 12:36:55 +02:00
Gruntfile.js Ignore docs folder in all grunt tasks 2016-05-16 13:59:43 -07:00
Hooks.php Dynamic bundles 2016-06-27 09:49:13 -04:00
jsduck.external.js Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck_custom_tags.rb Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
Makefile Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
package.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
phpcs.xml Remove forced -p (progress) flag from phpcs.xml 2016-04-26 14:21:28 -07:00
Rakefile Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 17:54:45 +02:00
RELEASE_NOTES BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
Resources.php Add a SeenTimeModel to handle seenTime in sources 2016-07-15 11:25:38 -07:00