mediawiki-extensions-Echo/modules
Moriel Schottlender fcd2f41151 Store local source as 'local' rather than dbName
When we fetch the pages per wiki, the API returns an object that
defines the local wiki we are in as its dbName; this then gets
stored into the model as the source, which forces us to check against
the dbName whenever we want to perform an operation so we can tell
the API layer to fetch and perform the actions locally, rather than
use a foreign API.

The term 'local' makes no sense for naming the model (and upcoming
tech debt work will fix this) but it makes sense in the context of
the API layer -- and hence, the source name should follow suit.

This fix makes sure that the local wiki objects always have their
sources defined to be 'local', and thus making us use the test for
dbName in very specific points (when we get the data) rather than
throughout the codebase, randonly.

This is also the first step to allow proper updating of things like
seenTime accross wikis, especially in cases where we view a remote
wiki as if it is local (in the Special:Notifications page)

Change-Id: I94633a1cd074580cbc5029d7c75d179e908e5c52
2016-07-07 12:20:39 -07:00
..
api Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
controller Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
icons Adjust styling for "Mark group as read" 2016-05-26 13:30:49 -07:00
logger Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
model Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
nojs No-JS special page: One-click mark as read 2016-05-27 17:23:29 -07:00
special Expandable bundle 2016-06-28 15:37:54 -04:00
styles Keep bundled notification compact header on one line 2016-07-06 20:44:00 +00:00
ui Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
echo.mixins.less Truncate usernames, titles and excerpts in notifications 2016-01-29 07:04:23 -05:00
echo.variables.less Keep bundled notification compact header on one line 2016-07-06 20:44:00 +00:00
echo.variables.monobook.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
echo.variables.vector.less Separate skin specific styles and improve Monobook appearance 2015-11-10 17:57:44 -08:00
ext.echo.init.js Expandable bundle 2016-06-28 15:37:54 -04:00
ext.echo.moment-hack.js Use localized weekdays on Special:Notifications 2016-06-13 13:09:51 +01:00
hooks.txt Add overlay hook for user scripts. 2013-06-13 21:27:26 -04:00
mw.echo.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00