Last modified: 2013-04-08 12:27:13 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 T30820, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28820 - Diffs using rev_id should work when one or both revisions are deleted
Diffs using rev_id should work when one or both revisions are deleted
Status: NEW
Product: MediaWiki
Classification: Unclassified
History/Diffs (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Brion Vibber
:
Depends on: 21279
Blocks: 28821
  Show dependency treegraph
 
Reported: 2011-05-04 23:33 UTC by FT2
Modified: 2013-04-08 12:27 UTC (History)
3 users (show)

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


Attachments

Description FT2 2011-05-04 23:33:42 UTC
(Forked from bug 21279 comment 33 per Brion)

Per bug 21279, code will be patched so that deleted revisions can be referenced
by their rev_id, and this will work regardless of subsequent delete/undelete activity.

Once this is done, can diff handling be enhanced so that a correct diff will still be generated if one or both rev_id's are deleted revisions.

This would ensure that any diffs posted on-wiki or noted by users for future would be guaranteed to be capable of generation and review regardless of future deletion/undeletion. 

At present a diff between arbitrary deleted revisions, or a deleted and non-deleted revision, is not possible, and if a revision is deleted then any diffs it was once part of, are no longer able to be displayed, even if the user has the appropriate viewing rights to both revisions.
Comment 1 Brion Vibber 2011-05-04 23:38:18 UTC
It's been a while since I poked the diff code, but I think it'll mostly need poking in two places:

1) Actually fetching revs will need to be able to fall back to deleted versions, if you have sufficient permissions. This should be pretty easy.


2) on finding the next/previous revision when not explicitly listed on the URL, which right now will just look in the revision table.

Even just fixing 1) would be *very* useful as it would make a lot of broken links work again.

2) has a potential issue in that it could cause the same link to work differently depending on whether you have access to the deleted revs or not, which might end up confusing. Might want to think about things here.
Comment 2 FT2 2011-05-05 01:42:07 UTC
A possible solution for 2) might be to produce the obvious diff (whatever that is) with a hat note 

"This shows all edits between <X> and <Y>. There are <N> intermediate revisions. The edit immediately previous to <X> has been deleted. The diff for the single edit <X> can be viewed by administrators [LINK here]."

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


Navigation
Links