OpenUserJS.org icon indicating copy to clipboard operation
OpenUserJS.org copied to clipboard

Users Listings - Script Installs Column

Open TimidScript opened this issue 9 years ago • 9 comments

Provide an Installs column in Users listings.

TimidScript avatar Jun 12 '15 15:06 TimidScript

Can you please elaborate a little more... what route (url) and you want an install count for how many users are installed? (this is why you need to elaborate more)

Martii avatar Jun 12 '15 16:06 Martii

It was badly "explained".

On the User listings (https://openuserjs.org/users), include a column for the total number of script installs and maybe even script/library count for the author. These currently appear inside the "Stats" box on the author's profile page.

TimidScript avatar Jun 12 '15 20:06 TimidScript

Perhaps... why would you want to do this? e.g. what logic is behind showing everyones script totals in the user list when it's already in their profile.

Martii avatar Jun 15 '15 17:06 Martii

@jerone What do you think about this feature? Does it give anything useful outside of a userscript manipulation of the stats?

Martii avatar Jun 15 '15 17:06 Martii

why would you want to do this?

Just interesting to see stats. I would also like to see the number of users, total number of scripts. It just interesting to see how big the site is becoming. Apart from that, really there's little point.

TimidScript avatar Jun 17 '15 13:06 TimidScript

How about a special stats page? Calculating these stats on every page could drain resources. On Jun 17, 2015 8:49 AM, "TimidScript" [email protected] wrote:

why would you want to do this? Just interesting to see stats. I would also like to see the number of users, total number of scripts. It just interesting to see how big the site is becoming. Apart from that, really there's little point.

— Reply to this email directly or view it on GitHub https://github.com/OpenUserJs/OpenUserJS.org/issues/646#issuecomment-112807494 .

sizzlemctwizzle avatar Jun 17 '15 14:06 sizzlemctwizzle

How about a special stats page? Calculating these stats on every page could drain resources.

I did not mean on every page, just the user listings, which isn't visited that often. And a special page for total site stats. The stats can be updated every so often, say every hour or longer. This should ease on the server load.

TimidScript avatar Jun 17 '15 17:06 TimidScript

@TimidScript

the number of users

99 pages of users at 25 each not including last page ... so 98 pages times 25 + 4 users on last page that equals... 98 x 25 + 4 === 2454 users on site as of this moment.

total number of scripts

Same calculation as before but with scripts.... 77 pages ... so 76 * 25 + 18 === 1918 scripts on site as of this moment.

@sizzlemctwizzle

Calculating these stats on every page could drain resources.

I agree especially since we have that QSP that does 100 maximum entries on certain pages (routes). The only slight administration benfit would be if a "drive by scripter" is posting/deleting/posting/deleting and if we catch it at zero scripts... so I don't really think it's all that useful since I usually have to go into their account/user page anyhow.

However calculating a static total of each controller model at the top (or wherever) with the simple check of QSP value multiplied by whatever pages minus one and then the remainder added to it (or if the totals are available in the view) would be simple enough I think... much like USO did. Crossing the user controller and the script controller is where I think the drain would occur... which is why I said perhaps (towards the perhaps not).

Martii avatar Jun 17 '15 21:06 Martii

How about a special stats page?

I would be more interested in this with the JSON API (#77) and/or OUJS metadata block (#285) rather than muck up the UI too much.

Martii avatar Jun 17 '15 22:06 Martii