Record "new" pages on User contributions
Closed, ResolvedPublic

Description

Author: artslave

Description:
[[Special:Contributions]] records minor (m) and most recent (top) contributions.
Would it be possible to list New (N) articles there -- articles which the user
created -- as on the Recent Changes page?

As a secondary idea, it would also be nice to be able to filter the
Contributions list to show all articles which the user created. Just a
nice-to-have for users reviewing their own contributions, but can also be useful
for tracking page-creation vandals.


Version: unspecified
Severity: enhancement

bzimport set Reference to bz4150.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.Dec 3 2005, 1:25 AM
brion added a comment.Dec 3 2005, 1:27 AM

Newness isn't currently tracked in the revision table.

snoutwood wrote:

*** Bug 4406 has been marked as a duplicate of this bug. ***

marco wrote:

That would be a nice job to do, but most nicest would be when it is possible to
make a whole page out of the data.

robchur wrote:

That would be one bloody nasty query. I pity the bugger who writes that.

avarab wrote:

*** Bug 4597 has been marked as a duplicate of this bug. ***

rick.denatale wrote:

Bug 4597 is NOT a duplicate, it is asking for a way to filter
Special:Contributions to only show contributions which are the latest editions
of an article.

THIS bug is asking for something different, it asks for NEW articles (i.e.
created by the contributor) to be distinguished.

*** Bug 6847 has been marked as a duplicate of this bug. ***

ayg wrote:

*** Bug 7077 has been marked as a duplicate of this bug. ***

dto wrote:

patch for r16149 SpecialContributions.php to show page creations

Attached patch gets information about page creations from recent changes, so
only recently created pages will get an "N" next to them. I'm hoping this will
be enough for dealing with vandalism.

Finding all page creations, even if they have been deleted from recent changes,
would either require tracking "newness", which, as Brion points out, isn't done
yet, or it would require a relatively expensive (I think?) GROUP BY query.

Attached: specialcontrib.diff

robchur wrote:

*** Bug 9555 has been marked as a duplicate of this bug. ***

ayg wrote:

The patch is outdated and can't be applied as-is, since SpecialContributions has been rewritten since it was created. Also, the modification to the query is unacceptable: it joins each revision to *every* row corresponding to it in recentchanges, causing many extra rows to be returned. That makes even the recentchanges solution somewhat nontrivial, or at least no way of avoiding that efficiently comes immediately to mind. There probably is some way, but I can't think of it . . .

aaron added a comment.Apr 6 2008, 4:03 PM

(In reply to comment #11)

The patch is outdated and can't be applied as-is, since SpecialContributions
has been rewritten since it was created. Also, the modification to the query
is unacceptable: it joins each revision to *every* row corresponding to it in
recentchanges, causing many extra rows to be returned. That makes even the
recentchanges solution somewhat nontrivial, or at least no way of avoiding that
efficiently comes immediately to mind. There probably is some way, but I can't
think of it . . .

Hmm, isn't there a user_text, timestamp index for recentchanges? Perhaps that can be to limit the row scanning needed for the join. Then the rc_this_oldid and rc_type condition can be checked on like 1-2 rows.

aaron added a comment.Apr 6 2008, 4:08 PM

Actually, why not start with RC and join on revision?

brion added a comment.Apr 7 2008, 8:41 PM

Joining to recentchanges is going to limit you to activity within the $wgRCmaxage limit. If you want this to be more generally useful, it's probably necessary to extend the fields in the revision table.

In theory you could just check for empty rev_parent_id, but this field is still unused afaik. :(

aaron added a comment.Apr 7 2008, 10:40 PM

(In reply to comment #14)

Joining to recentchanges is going to limit you to activity within the
$wgRCmaxage limit. If you want this to be more generally useful, it's probably
necessary to extend the fields in the revision table.

In theory you could just check for empty rev_parent_id, but this field is still
unused afaik. :(

A few changes to the Revision code, and it can be populated. I may whip up a maintenance script if someone cares (which would assume first=new). I thought about doing this before but always thought roman would come back and finish...didn't happen ;)

Add Comment