Page MenuHomePhabricator

Maniphest - fix blocking / blocked task queries
ClosedPublic

Authored by btrahan on Mar 3 2015, 11:14 PM.
Tags
None
Referenced Files
F18961407: D11962.id28802.diff
Thu, Nov 13, 2:09 PM
F18857706: D11962.id.diff
Sat, Nov 1, 5:11 PM
F18852368: D11962.diff
Fri, Oct 31, 8:10 AM
F18831662: D11962.id28803.diff
Sat, Oct 25, 2:10 PM
F18805876: D11962.id.diff
Sat, Oct 18, 4:53 PM
F18702210: D11962.id28802.diff
Sep 27 2025, 11:14 PM
F18505059: D11962.id.diff
Sep 5 2025, 12:21 AM
F18496665: D11962.diff
Sep 4 2025, 5:35 PM
Subscribers

Details

Summary

Fixes T7392. I kind of stink at SQL so my approach here was to "start over" conceptually and this way makes the most sense to me - we basically do one join on the dependency table and then a second join back from the dependency table to the main task table. In the where clause we filter the resulting rows, first checking the data from dependency join for existence as appropros and then checking the second join for main task table for the proper "open" task values.

Test Plan

made a task X be blocked by task Y. closed task y. search for "not blocked" tasks and saw task X.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Maniphest - fix blocking / blocked task queries.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

I like this, it seems more clear to me too.

This revision is now accepted and ready to land.Mar 3 2015, 11:19 PM
This revision was automatically updated to reflect the committed changes.