mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
8831887e3c
Before, the fallback algorithm was somewhat adaptive, trying harder and harder the fewer CirrusSearch results have been found. This updated algorithm guarantees that 10 results are shown. Warning: You might see only 9 results. The reason is a bogus, unrelated behavior in the mw.widgets.TitleWidget in core that's used as a base class here. There is a "showMissing" option that's apparently enabled by default, and prepends a non-existing title from the main namespace, ignoring the "namespace" option. This extra result from the wrong namespace is later dropped by the very same widget. This code here sees 10 results before the bogus one is dropped. Disabling "showMissing" causes other issues. We would need a series (?) of custom hacks to work around all this, but this seems inappropriate. Let's live with 9 for the moment. Bug: T303524 Change-Id: I2c577c9ef2752b6c6cd360f4023e151e9272fcd5 |
||
---|---|---|
.. | ||
actions | ||
commands | ||
contextitems | ||
datatransferhandlers | ||
dialogs | ||
elements | ||
inspectors | ||
pages | ||
styles | ||
tools | ||
widgets | ||
ve.ui.MWAriaDescribe.js | ||
ve.ui.MWCommandRegistry.js | ||
ve.ui.MWExtensionWindow.js | ||
ve.ui.MWSequenceRegistry.js | ||
ve.ui.MWSurface.js | ||
ve.ui.MWWikitextCommandRegistry.js | ||
ve.ui.MWWikitextDataTransferHandlerFactory.js | ||
ve.ui.MWWikitextSequenceRegistry.js | ||
ve.ui.MWWikitextSurface.js | ||
ve.ui.MWWikitextTransferRegistry.js |