Last modified: 2014-03-09 03:26:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44135, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42135 - Add page creator index to MediaWiki core
Add page creator index to MediaWiki core
Status: NEW
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/wiki/Manual...
: easy, schema-change
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-15 05:01 UTC by MZMcBride
Modified: 2014-03-09 03:26 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description MZMcBride 2012-11-15 05:01:01 UTC
There's currently no way to easily get the creator of a page. This makes it difficult to write reports about who wrote the most articles or make a list of the pages a person created.

I think it'd be nice to have a page_creator column in the page table to track who has created a page. It'll have some edge cases like page moves, but I think this is acceptable.

So this would have four pieces, I guess:

* add a page_creator column to the page table (255 bytes, has to support anon page creations);
* add an index to this column (so that you can sort by user);
* write a maintenance script to populate this column; and
* fix up Extension:RenameUser to make sure it accounts for this column in user renames.
Comment 1 db [inactive,noenotif] 2012-11-17 19:29:45 UTC
Another solution is to log the creation of pages on Special:Log (bug 10331).
Comment 2 Alex Monk 2012-11-17 21:28:18 UTC
Or we could store the first revision.
Comment 3 MZMcBride 2013-01-14 06:46:08 UTC
(In reply to comment #2)
> Or we could store the first revision.

Store the first revision? You mean a separate table that just stores the data from revision, but limited to the first revision only?
Comment 4 Alex Monk 2013-01-14 16:04:33 UTC
Store the first revision's ID? Then you can go look up the ID.

Actually maybe you could do something like this instead:
select rev_user from revision where rev_parent_id=0 and rev_page=$pageid
Comment 5 MZMcBride 2013-05-09 23:33:50 UTC
(In reply to comment #2)
> Or we could store the first revision.

Okay, let's index the first revision. It should be simple enough to add a page_first column (or similar) to complement page_latest.
Comment 6 PiRSquared17 2014-03-09 03:26:07 UTC
(In reply to MZMcBride from comment #0)
> There's currently no way to easily get the creator of a page. This makes it
> difficult to write reports about who wrote the most articles or make a list
> of the pages a person created.

FYI, the latter can be done with rev_parent_id=0 and the username in the where clause.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links