Content deleted Content added
→New fields: new section |
→New fields: reply |
||
Line 39:
Anyway, I have everything working, and I am ready to add the fields to all the indices (only back to 2015 since per-page view counts aren't available before then), but I wanted to hold off and make sure that this isn't going to break everything first. What do you say? '''[[User:JPxG|jp]]'''×'''[[User talk:JPxG|g]]''' 08:19, 5 January 2023 (UTC)
:{{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. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 06:51, 6 January 2023 (UTC)
|