Mark all read needs to use changed date, not created date of node

Michelle - May 22, 2009 - 15:13
Project:Advanced Forum
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

While testing the pgsql patch I discovered that the current MAR functionality misses some posts on my dev site. Need to investigate.

Michelle

#1

Michelle - June 24, 2009 - 03:06
Version:6.x-1.x-dev» 6.x-2.x-dev

Bumping to development branch. Will backport when it's fixed.

Michelle

#2

Michelle - June 24, 2009 - 18:07

The likely culprit:

[12:51] I will note that mark as read compares node.created and Views, at least, compares node.changed
[12:51] So with this query I think a node with a very old created and a more recent changed might get marked unread because its history record would get deleted and no one one might get added.

#3

tom_o_t - June 24, 2009 - 18:37
Status:active» needs review

Here's the patch for testing - thanks to merlinofchaos for getting to the root of this one

AttachmentSize
advanced_forum-470202.patch 1.44 KB

#4

Michelle - June 25, 2009 - 21:29
Status:needs review» fixed

I reviewed this enough to test that it didn't break MAR but I didn't set up the edge case the fix targetted. Going to call this fixed. If I (or anyone) run into any more weirdness, I'll re-open.

Thanks,

Michelle

#5

neclimdul - June 25, 2009 - 21:40
Status:fixed» needs review

seems to be working for me.

#6

neclimdul - June 25, 2009 - 21:42
Status:needs review» fixed

#7

dparrott - July 9, 2009 - 17:20

hi,
is this fix in the current dev version of advanced forums? my users are running into this issue.

Thanks!
dave

#8

Michelle - July 9, 2009 - 17:37
Version:6.x-2.x-dev» 6.x-1.x-dev
Status:fixed» patch (to be ported)

It's fixed in 2.x. I haven't backported it to 1.x. I suppose I could do that. It's a small enough thing.

Michelle

#9

dparrott - July 13, 2009 - 21:49

well, what do you suggest? I could either upgrade to 2.x-dev or use the 1.x-dev (if you want to port it), or finally, if you give me the fix I could just put it into my current code base (if it isn't too complicated).

#10

Michelle - July 13, 2009 - 21:58

The fix is in #3. No, I don't recommend upgrading to 2.x. I'll get it into the 1.x dev eventually. This is a weird edge case thing that rarely happens so it hasn't been a super high priority for me.

Michelle

#11

dparrott - July 14, 2009 - 16:57

thanks, michelle. guess i didn't look close enough to the thread. sorry about that!

#12

dparrott - July 14, 2009 - 18:44

well, i noticed this works when i am at a forum page (viewing just topics for a forum). But, when i try to mark all read from a container page (containing multiple forums), it doesn't seem to work. am i missing something?

#13

Michelle - July 14, 2009 - 18:54
Title:Mark all read doesn't always work» Mark all read needs to use changed date, not created date of node

Containers can't have posts in them so there would be nothing to mark read. Being able to mark all forums in a container all read at once would be a new feature request. The code isn't designed to handle that, and that's unrelated to this issue.

Michelle

#14

dparrott - July 14, 2009 - 22:37
Title:Mark all read needs to use changed date, not created date of node» Mark all read doesn't always work

oh ok, i guess i'll just make it so the button doesn't show up in containers.

#15

Michelle - July 14, 2009 - 22:51
Title:Mark all read doesn't always work» Mark all read needs to use changed date, not created date of node

Fixing title so I remember what this is.

Michelle

#16

Michelle - July 30, 2009 - 01:35
Status:patch (to be ported)» fixed

Ok, backported to both 1.x and D5.

Michelle

#17

System Message - August 13, 2009 - 01:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.