Last modified: 2014-09-24 00:02:49 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 T19591, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17591 - diff engine should use timestamps instead of revids to count revisions between diffed versions
diff engine should use timestamps instead of revids to count revisions betwee...
Status: NEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
1.15.x
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-20 17:06 UTC by Johan Euphrosine
Modified: 2014-09-24 00:02 UTC (History)
3 users (show)

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


Attachments
countRevisionsBetween using timestamps (1.90 KB, patch)
2009-02-20 17:06 UTC, Johan Euphrosine
Details

Description Johan Euphrosine 2009-02-20 17:06:30 UTC
Created attachment 5836 [details]
countRevisionsBetween using timestamps

For example http://en.wikipedia.org/w/index.php?title=Apple&diff=269860524&oldid=234474
states:
(4580 intermediate revisions not shown) (4582)
instead of:
(4598 intermediate revisions not shown) (4600)

Because there is 18 revisions is Apple history which have rev_ids < 234474 and timestamp > 2001-10-24T01:47:59Z
(see http://en.wikipedia.org/w/api.php?action=query&prop=revisions&titles=Apple&rvprop=ids|user|timestamp&rvlimit=100&rvdir=newer&format=jsonfm)

Is this a known/real issues: is the intended behaviour to sort by revids when counting revisions between diffed version ?

If not, feel free to review the attached patch, which switch countRevisionsBetween behaviour to count revisions between timestamps instead of revids.

Thanks in advance.
Comment 1 Sumana Harihareswara 2011-11-10 05:29:02 UTC
Johan Euphrosine: thank you for the bug report and the patch. Adding the "need-review" keyword to indicate that you're waiting for a response to the patch.  My apologies that it's been so long.
Comment 2 Sumana Harihareswara 2012-01-10 22:13:18 UTC
Comment on attachment 5836 [details]
countRevisionsBetween using timestamps

This patch no longer applies to trunk per Rusty Burchfield's automated testing https://docs.google.com/spreadsheet/ccc?key=0Ah_71HHl7qa7dGtvSms3TGpHQU9NU2Y1VmNzUEUteWc .
Comment 3 Sumana Harihareswara 2012-01-10 22:14:50 UTC
Johan Euphrosine, I'm sorry that it took so long for us to review your patch.  If the issue is still one you're interested in fixing, please join us in IRC https://www.mediawiki.org/wiki/MediaWiki_on_IRC and talk with other developers before renewing and possibly revising your approach.  Thanks for your interest in improving MediaWiki!

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


Navigation
Links