Page MenuHomePhabricator

Maniphest - fix blocking / blocked task queries
ClosedPublic

Authored by btrahan on Mar 3 2015, 11:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 4:45 PM
Unknown Object (File)
Fri, Dec 20, 10:21 AM
Unknown Object (File)
Tue, Dec 10, 2:53 AM
Unknown Object (File)
Mon, Dec 9, 9:22 AM
Unknown Object (File)
Mon, Dec 9, 2:15 AM
Unknown Object (File)
Fri, Nov 29, 10:21 AM
Unknown Object (File)
Fri, Nov 29, 10:21 AM
Unknown Object (File)
Fri, Nov 29, 9:51 AM
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.