Skip to content

[WIP] Add functionality to gather author stats in Etherpad#92

Closed
JohnMcLear with Copilot wants to merge 1 commit into
mainfrom
copilot/add-author-stats-plugin
Closed

[WIP] Add functionality to gather author stats in Etherpad#92
JohnMcLear with Copilot wants to merge 1 commit into
mainfrom
copilot/add-author-stats-plugin

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Get Actual Author stats from a real life instance</issue_title>
<issue_description>> "A hyperactive author tries to replicate a really active author pushing 4 characters a second. This is rare in Etherpad *needs citation."

Have been given permission to gather stats of this. Needs a commit to Etherpad core probably or maybe I can write this as a plugin?
</issue_description>

Comments on the Issue (you are @copilot in this section)

@JohnMcLear Thinking about what stat is useful.

of edits per second per user.

I would need total connected time and total "ACCEPT_COMMIT"

This would give me an average commits per user per second

At the moment we have "lurkers" and "authors", this might be realistic, but why not just have "users". If we have a set value of "user" makes X commits per Y seconds (let's say 5) then an instance could check their averageCommitPerUserPerSecond value in "/stats" and drop that into the load testing site.

A heavy instance might actually have a lot of lurkers and just a few authors, so the averageCommitPerUserSecond would actually be low. This instance would need something else...

author commits per second

Time connected to pad(in seconds) / number of commits
Example. 60seconds / 60commits = 1

I still need to think some more about this.

lurkers

An option might be to have a lurker value visible in stats where a user that connects never actually sends any contributions. I guess you could just collect totalConnectedUsers and have a totalLurkers type value that is on a counter and is incremented when a user joins and then if that user sends a changeset (becomes an author) then the counter is decremented.

todo

  • Lurker %
  • Average Commits per second</comment_new>
    <comment_new>@JohnMcLear
    WMF ftw.

https://hal.inria.fr/hal-01882069/document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get Actual Author stats from a real life instance

2 participants