Page MenuHomePhabricator

Update instrumentation to use stable API to Check Wikimedia Media Viewer Extension Status
Open, LowPublic

Description

We're requesting the development of a public API that allows us to efficiently check the status of the Media Viewer extension using something like an mw.mv API. Currently, there is a need for a more straightforward way to access this information without relying on fragile conditions.

Here's how the API could be used in JavaScript with the mw.mv API:

/**
 * Get the Media Viewer preferences from mw.mv API.
 *
 * @return {boolean} Media Viewer Preferences
 */
function getMediaViewerSettings() {
  return mw.mv ? mw.mv.isEnabled() : false;
}

# TODO

[x] Create new API
[] use it in WikimediaEvents

Event Timeline

Change 998535 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/MultimediaViewer@master] Public API to Check Wikimedia Media Viewer Extension Status

https://gerrit.wikimedia.org/r/998535

Change 998535 merged by jenkins-bot:

[mediawiki/extensions/MultimediaViewer@master] Public API to Check Wikimedia Media Viewer Extension Status

https://gerrit.wikimedia.org/r/998535

Jdlrobson renamed this task from Public API to Check Wikimedia Media Viewer Extension Status to Update instrumentation to use stable API to Check Wikimedia Media Viewer Extension Status.Feb 15 2024, 9:19 PM
Jdlrobson updated the task description. (Show Details)

Change 1005612 had a related patch set uploaded (by Kimberly Sarabia; author: Kimberly Sarabia):

[mediawiki/extensions/WikimediaEvents@master] [WIP] Adds new Media Viewer API setting

https://gerrit.wikimedia.org/r/1005612