Page MenuHomePhabricator

Maniphest - fix blocking / blocked task queries
ClosedPublic

Authored by btrahan on Mar 3 2015, 11:14 PM.
Tags
None
Referenced Files
F14065434: D11962.diff
Tue, Nov 19, 4:39 AM
F14050465: D11962.diff
Thu, Nov 14, 6:50 PM
F14038630: D11962.diff
Mon, Nov 11, 12:53 AM
F14027313: D11962.id28802.diff
Fri, Nov 8, 6:31 AM
F14023020: D11962.diff
Wed, Nov 6, 9:55 PM
F13998736: D11962.id28803.diff
Thu, Oct 24, 10:56 AM
F13980580: D11962.id.diff
Oct 19 2024, 11:32 AM
Unknown Object (File)
Oct 2 2024, 4:07 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.