Module talk:Signpost: Difference between revisions

Content deleted Content added
Fleshing: new section
Line 41:
 
:{{ping|JPxG}} What will the data be used for? My first reaction is that unless you need to make the data available via a template, you could use the [[wikitech:Analytics/AQS/Pageviews|Pageviews API]] to get the data dynamically and not have to worry about storing it in the index modules. If we do need to store the data in the index modules, [[WP:SPT]] will need to be updated; with the current way that it is written, it will delete all the extra view fields when it changes any tags (see [[Special:Diff/1131885112|this diff]] for an example). Also, rather than using fields like <code>views30</code>, <code>views60</code> etc., I would prefer that the page view statistics are put into their own subtable, like <syntaxhighlight lang="lua" inline>views = {[7] = 642, [30] = 1966, [60] = 2279, [90] = 2419}</syntaxhighlight>. The data would be more structured this way. Best — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 06:51, 6 January 2023 (UTC)
::{{yeac}} I thought restructuring the views would be hard, but it wasn't really. Anyway, yeah -- the pageviews thing is a little strange. Basically, it is necessary because {{tl|Graph:PageViews}} is bizarrely broken (it can ''only'' return graphs, and is ''completely incapable'' of returning straightforward numbers -- tried to figure this out for quite some time to no avail). That is to say, if we want to just look at "how many pageviews did the traffic report get versus the discussion report", we either have to manually enter each page title into the pageviews website, or wild-ass-guess [[Integral|the area under the curve]] on a graph...
::At any rate, if it's possible, I would be glad to help rewrite whatever part of the JS poses issues for passthrough of extra parameters (since this might prove useful for other stuff as well). '''[[User:JPxG|jp]]'''×'''[[User talk:JPxG|g]]''' 03:16, 8 January 2023 (UTC)
 
== Fleshing ==