Page MenuHomePhabricator

Special:Contributions - filter to show only the user's last edit to each page
Open, LowPublicFeature

Description

Author: smjg

Description:
Sometimes I would like to see a list of pages I have recently edited. Special:Contributions does this, but if I've edited the same page multiple times then it appears multiple times in the list.

"Only show edits that are latest revisions" guarantees that each page appears only once in the list, but if somebody has edited the page since the user whose contributions I am viewing, that page doesn't appear in the list at all.

It would therefore be nice to have another option here: "Only show edits that are the user's last edit to the page"

I don't know how the "Only show edits that are latest revisions" filter works internally, but if it just adds to the query the condition "no newer edits to [page] exist", then it probably wouldn't be difficult to do "no newer edits to [page] by [user] exist" along the same lines.


Version: unspecified
Severity: enhancement

Details

Reference
bz33581
TitleReferenceAuthorSource BranchDest Branch
Clean up coverage and lint.repos/abstract-wiki/wikifunctions/function-evaluator!158apineapine-coveragemain
Run coverage in a Blubber-built image.repos/abstract-wiki/wikifunctions/function-evaluator!153apineapine-coverage-againmain
Remove old version string.repos/abstract-wiki/wikifunctions/function-evaluator!149apineapine-version-stringmain
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:02 AM
bzimport set Reference to bz33581.
bzimport added a subscriber: Unknown Object (MLST).

I don't think this can be done efficiently. (Like certainly it would be possible to on the php side, look through all the contribs we're about to output, and remove duplicates. However if a person edited a page once, then edited again 20 000 edits later (so that the two contribs are not on the same page when going through special:contribs 50 contribs at a time), it would be very difficult to make it so only one of those appeared.

smjg wrote:

How does it do "Only show edits that are latest revisions" efficiently enough? Maybe knowing the database structure would help to put it in better perspective.

Database structure is documented at [[mw:Manual:Revision_table]] and [[mw:Manual:Page_table]]. Only show latest edits does an inner join from revision table to page table on rev_id = page_latest .

I've mentioned this on enwp (and other places -- "my" script works on explainxkcd for example), but for a workaround reference on phabricator, my [[User:Markhurd/hidetopcontrib]] script can do this, effectively doing what Bawolff suggests at the JavaScript/html level.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.