((BugTask.status = 15) AND (
(Bug.date_last_message IS NOT NULL AND
BugTask.date_incomplete <= Bug.date_last_message))
OR
(
(Bug.date_last_message IS NULL OR BugTask.date_incomplete > Bug.date_last_message)))
which is a little easier to read though no different to the planner.
15 is incomplete, so the middle bit is:
incomplete messages with a last message(date_last_message is not null) where the message is newer than the incompleteness
OR
there is no last message
OR
but the bug was made incomplete after the last message.
This all cancels out: we should just not restrict it.
Rearranging the status component gives us:
(BugTask.status in (10, 20,21,22,25)) OR
((BugTask.status = 15) AND ( date_last_ message IS NOT NULL AND date_incomplete <= Bug.date_ last_message) ) date_last_ message IS NULL OR BugTask. date_incomplete > Bug.date_ last_message) ))
(Bug.
BugTask.
OR
(
(Bug.
which is a little easier to read though no different to the planner.
15 is incomplete, so the middle bit is: date_last_ message is not null) where the message is newer than the incompleteness
incomplete messages with a last message(
OR
there is no last message
OR
but the bug was made incomplete after the last message.
This all cancels out: we should just not restrict it.