We've gotten a number of requests for providing again a way to do page-view graphs as was doable on Graphs (cf T334940). This remains a key post-MVP requirement, and it would be nice to get it going as we have most of the infrastructure needed now.
Graphs was doing client-side REST API fetching of the page view data, which is exposed into pageinfo data by PageViewInfo:
- https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageViewInfo/+/refs/heads/master/includes/Hooks.php#68
- https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/PageViewInfo/+/refs/heads/master/includes/WikimediaPageViewService.php
It's also available via action API: https://www.mediawiki.org/w/api.php?action=query&titles=Main_Page&prop=pageviews
So the data's available, but we have no way to query it as a data source in Charts at this time.
Current plan is to remedy this by exposing the page views data to Lua code which can fill out the data set in a transform, either:
- -> use ExternalData extension with allow-listing of rest API targets
- -> something like ExternalData but tuned to our specific needs
This is outside scope of the MVP for Charts Task Force but is a good stretch goal / potential work for Community Wishlist and should be prioritized sooner rather than later.