https://bugzilla.wikimedia.org/show_bug.cgi?id=67728
Bug ID: 67728
Summary: Hovercards makes needless API requests with empty
titles params
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Popups
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
Visit https://www.mediawiki.org/wiki/Talk:Sandbox, open your browser's
development tools > Net panel, then mouse over the links in the informational
header.
Notice that popups makes API requests to query
extracts|pageimages|revisions|info for these hyperlinks. But the titles
parameter is empty, so obviously the API returns nothing.
resources/ext.popups.renderer.article.js should return early if link.data(
'title' ) is empty. And if there's no data('title') then article.init()
shouldn't be called in the first place. It seems
mw.popups.selectPopupElements() is trying to filter out blank titles.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l