Page MenuHomePhabricator

Page history lines are rendered differently to admins when contents have been concealed by RevisionDelete
Closed, ResolvedPublic

Description

Author: happy_melon

Description:
When an admin views the edit history of an article, the concealed revision componenents are still shown visibly, although struck out to highlight the concealment. When an admin views a log extract, the concealed components display in the same manner as they do for non-admins, grey and struck out, and the admin must click through to Special:RevisionDelete in order to see the contents of the log entry. This behavior should be consistent between the two types of entries. Personally I think the latter behavior is preferable: in the same fashion as Special:DeletedContributions, the content is still *accessible* to admins, but it is more clearly set apart from the 'normal' content. Thoughts?


Version: unspecified
Severity: minor

Details

Reference
bz17060

Event Timeline

• bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:27 PM
• bzimport set Reference to bz17060.

Seems to do this already on SVN HEAD. When viewing page history as a sysop/oversight I see (username removed), etc. same as log entries.

Going through the places this is used - whether the deleted content is visible or not:

*Special:Log - not visible
*Log excerpts - not visible
*Page history - not visible
*Diffs - not visible
*Viewing old revisions - visible
*Special:Undelete - visible
*Viewing deleted revisions - visible

Issue does not appear to exists, perhaps 'Viewing old revisions' was what was meant?

happy_melon wrote:

Screenshot of history of [[test:Foo]]

This is what I mean, sorry if I explained it badly. Admin account is on top (obviously, hence the show/hide links).

Attached:

revisiondeleteerror.png (1,036×659 px, 91 KB)

happy.melon.wiki wrote:

This has regressed, it's now present in trunk again.

happy.melon.wiki wrote:

caused by r48902; the changes to PageHistory::revLink() should be reverted.

(In reply to comment #6)

caused by r48902; the changes to PageHistory::revLink() should be reverted.

Works for me. A related bug for empty comments was fixed in r50757 though.

happy.melon.wiki wrote:

screenshot with trunk code

This is with r50757 of PageHistory.php. How much more recent do you want? :D

Attached:

bug17060_repeat.png (1,076×613 px, 73 KB)

mike.lifeguard+bugs wrote:

(In reply to comment #8)

Created an attachment (id=6134) [details]
screenshot with trunk code

This is with r50757 of PageHistory.php. How much more recent do you want? :D

Isn't it supposed to show people as much as they can see? So, if something is hidden (but not from sysops too) then a sysop will see it as crossed out so they know there is a restriction applied to it, but they can see it?

If that's correct, then I'd like to point to my comment at <somewhere I can't find> in which I asked that things hidden from sysops should be doubly-stricken-out, and things that sysops (only) can see should be single-stricken-out. This will make it clearer for oversighters that even though they can see something, sysops can't (since that stuff will be visually different from anything hidden but which /can/ be seen by sysops which would have a normal single strikeout)

mike.lifeguard+bugs wrote:

(In reply to comment #10)
Apparently double-strikeout doesn't exist in html et al. However a similar method of distinguishing the two levels of hidden-ness would be nice - maybe a div with an unobtrusive background colour?

happy.melon.wiki wrote:

(In reply to comment #9)

That is not an edit summary

True, but it is the same issue as was originally reported (compare recent screenshot with the one from three months ago), hence it's the same bug, hence regression.

(In reply to comment #10)

Isn't it supposed to show people as much as they can see? So, if something is
hidden (but not from sysops too) then a sysop will see it as crossed out so
they know there is a restriction applied to it, but they can see it?

No, the other components (user and comment) both explicitly don't render for *anyone* when they've been hidden (cf second-from-bottom entry in that screenshot). I approve of the sentiment that RevDeleted information should not be casually-accessible, it should require an active "yes I want to look at concealed information" from the admin/oversight.

If that's correct, then I'd like to point to my comment at <somewhere I can't
find> in which I asked that things hidden from sysops should be
doubly-stricken-out, and things that sysops (only) can see should be
single-stricken-out. This will make it clearer for oversighters that even
though they can see something, sysops can't (since that stuff will be visually
different from anything hidden but which /can/ be seen by sysops which would
have a normal single strikeout)

When the content has been hidden from admins too, the "show/hide" link is bolded for oversights, and not present for admins (again, cf screenshot). I agree that's not the clearest distinction, but one is present.

(In reply to comment #12)

(In reply to comment #9)

That is not an edit summary

True, but it is the same issue as was originally reported (compare recent
screenshot with the one from three months ago), hence it's the same bug, hence
regression.

If the summary is wrong then it's hard to tell what is going on sometimes.