Closed Bug 524793 Opened 15 years ago Closed 15 years ago

Solved topics show up when "Unsolved" filter is chosen

Categories

(support.mozilla.org :: Forum, task)

task
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: paulc)

References

()

Details

(Whiteboard: sumo_only)

Attachments

(2 files)

STR:

1. Load the Firefox forum: https://support-stage.mozilla.org/en-US/forum/1
2. Click on "Show: Unsolved Topics" (https://support-stage.mozilla.org/en-US/forum/1?thread_sort_mode=lastPost_desc&issue_solved=unsolved)
3. Look at the "Type" column's icon

Expected Results:

There should be no "Solved" threads present

Actual Results:

There are a few "Solved" threads, indicated by the green checkmark and their status
Hmm... I wonder if I regressed this with the sorting headers bug :)
Assignee: nobody → paulc
This happens when solving a thread by editing and setting status to "solved", which implies that there is no "solved" child for that thread. As soon as there is a "solved" child, however, the thread is no longer listed.

I'm not sure how to fix it without seriously impacting performance. Maybe we can live with it?
Oops. Nevermind. I think it actually shows if the *last child* isn't solved.

James, the filtering happens at commentslib.php:844
Maybe you can take a look, see if you have some ideas?
Assignee: paulc → james
Target Milestone: 1.4.2 → 1.5
Assignee: james → paulc
Attached patch v1Splinter Review
I figured it out. This fix should be acceptable and should cover the following case:
A thread is marked as solved, but none if its children are.

Solution: filter out solved threads *again*, by the parent post.

Hope there aren't any other exceptions now.
Attachment #412366 - Flags: review?(james)
Comment on attachment 412366 [details] [diff] [review]
v1

WFM.
Attachment #412366 - Flags: review?(james) → review+
r56280
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: sumo_only
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: