Comment 2 for bug 1321055

Revision history for this message
William Grant (wgrant) wrote :

BugTaskFlat.active exists, and it's set by bugtask_flatten, but it doesn't currently follow Product.active changes so we don't yet use it in bugtasksearch:

        extra_clauses.append(
            Or(BugTaskFlat.product == None, Product.active == True))
        join_tables.append(
            (Product, LeftJoin(Product, And(
                            BugTaskFlat.product_id == Product.id,
                            Product.active))))

We should make setting Product.active trigger an update on all affected BugTaskFlat rows, or we should just fix the bugtasksearch check to consider ProductSeries too.