mediawiki-extensions-Echo/modules/model
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
..
mw.echo.dm.BundleNotificationItem.js Properly aggregate the itemUpdate event 2016-07-07 19:08:47 +00:00
mw.echo.dm.CrossWikiNotificationItem.js Separate model's symbolic name and model's source 2016-06-09 16:20:57 -07:00
mw.echo.dm.FiltersModel.js Add a cross-wiki sidebar to the Special:Notifications page 2016-06-21 14:49:42 -07:00
mw.echo.dm.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00
mw.echo.dm.ModelManager.js Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
mw.echo.dm.NotificationGroupsList.js Separate model's symbolic name and model's source 2016-06-09 16:20:57 -07:00
mw.echo.dm.NotificationItem.js Expandable bundle 2016-06-28 15:37:54 -04:00
mw.echo.dm.NotificationsList.js Properly aggregate the itemUpdate event 2016-07-07 19:08:47 +00:00
mw.echo.dm.PaginationModel.js Add a cross-wiki sidebar to the Special:Notifications page 2016-06-21 14:49:42 -07:00
mw.echo.dm.SortedList.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00
mw.echo.dm.SourcePagesModel.js Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
mw.echo.dm.UnreadNotificationCounter.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00