Last modified: 2011-03-13 18:06:41 UTC
It would be desirable to have access to the list of contributors for a given page/revision via MediaWiki API. Ideally this list would be filterable (bots, anon users, minor edits), sortable (date) and aggregateable (sum over amount of contributions, sum over number of contributions; together with sorting). This feature would be great for all external tools that want to adhere to correct attribution for MediaWikis that use e.g. the GFDL.
In addition to the known contributors, the number of anonymous edits should be returned.
While such a feature would be nice, it would be awfully inefficient. Marking as WONTFIX. Note that this information can already be obtained by querying revision data through prop=revisions and doing some of the filtering and aggregating yourself.
(In reply to comment #2) > While such a feature would be nice, it would be awfully inefficient. How about introducing prop=contributors which just returns a list of unique contributors, plus the number of anonymous edits? Maybe this could be doable efficiently with SQL. > Note that this information can already be obtained by querying revision data > through prop=revisions and doing some of the filtering and aggregating > yourself. Yes, this is what we're doing right now, but we're doing lots of API requests which could be immensely reduced if we could retreive just the set of contributors for a given revision.
(In reply to comment #3) > (In reply to comment #2) > > While such a feature would be nice, it would be awfully inefficient. > > How about introducing prop=contributors which just returns a list of unique > contributors, plus the number of anonymous edits? Maybe this could be doable > efficiently with SQL. > It wouldn't be doable any more efficiently than the way it's currently done (by getting all revisions and ignoring duplicate usernames), because there is no index on (rev_page, rev_user_text) (but even if there was, I'm not sure such an aggregate query on all revisions of a page would be acceptable).