"Hide comment" link appears for comments if the comment has been viewed by an admin, with memcache on

Bug #869063 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Robert Collins

Bug Description

From Andrea Corbellini's comments on the batched-comments story:

> 1. The comments that are shown via AJAX contain a "Hide comment" button
> that seems to have no visible effect.
>
> 2. The "Hide comment" button is only visible for the comments which were
> loaded via AJAX, it is not possible to hide other comments (i.e.
> the ones that were shown by default).
>
> 3. The pencil icon near "Hide comment" makes me think that Launchpad
> will remember my choice to hide the comment, although I doubt it
> will do. If I'm not the only one who has noticed this, I think that
> the icon should be changed.

These comments suggest that Andrea is seeing the "Hide comment" link even though this link should only be visible to members of ~launchpad.

Michael Hudson thinks this might be a memcache issue:

> I expect this is wonky use of memcache -- it's turned off via a feature
> flag for the bugtask:+index pages, but I guess not for whichever view
> the ajax is hitting?

... and Rob agrees:

> Probably. Perhaps time to default it off globally and turn it on for
> the one page we know benefits - the front page.

Related branches

Graham Binns (gmb)
description: updated
Graham Binns (gmb)
Changed in launchpad:
status: Triaged → Fix Released
Revision history for this message
Robert Collins (lifeless) wrote :

Theres still a code change to make here: the template causing memcache caching of comments is wrong - they are no longer safe to cache across users (and so there is no reason to cache at all).

Changed in launchpad:
importance: Critical → High
assignee: Graham Binns (gmb) → nobody
status: Fix Released → Triaged
importance: High → Critical
summary: - "Hide comment" link appears for batched comments when the user doesn't
- have permission to hide comments anyway
+ "Hide comment" link appears for comments if the comment has been viewed
+ by an admin, with memcache on
tags: added: regression
tags: removed: story-batched-comment-loading
Revision history for this message
Robert Collins (lifeless) wrote :

This is a regression added when the hide-a-comment button was added.

Curtis Hovey (sinzui)
tags: added: bugs comments
Curtis Hovey (sinzui)
tags: added: memcache
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
assignee: nobody → Robert Collins (lifeless)
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.