mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
fcd2f41151
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 |
||
---|---|---|
.. | ||
api | ||
controller | ||
icons | ||
logger | ||
model | ||
nojs | ||
special | ||
styles | ||
ui | ||
echo.mixins.less | ||
echo.variables.less | ||
echo.variables.monobook.less | ||
echo.variables.vector.less | ||
ext.echo.init.js | ||
ext.echo.moment-hack.js | ||
hooks.txt | ||
mw.echo.js |