OpenUserJS / OpenUserJS.org

The home of FOSS user scripts.
https://openuserjs.org/
GNU General Public License v3.0
845 stars 301 forks source link

Users Listings - Script Installs Column #646

Open TimidScript opened 9 years ago

TimidScript commented 9 years ago

Provide an Installs column in Users listings.

Martii commented 9 years ago

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)

TimidScript commented 9 years ago

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.

Martii commented 9 years ago

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 commented 9 years ago

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

TimidScript commented 9 years ago

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.

sizzlemctwizzle commented 9 years ago

How about a special stats page? Calculating these stats on every page could drain resources. On Jun 17, 2015 8:49 AM, "TimidScript" notifications@github.com 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 .

TimidScript commented 9 years ago

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.

Martii commented 9 years ago

@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 commented 9 years ago

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.