HomePhabricator

Fix issues where Drydock queries didn't work correctly with empty arrays

Description

Fix issues where Drydock queries didn't work correctly with empty arrays

Summary: Ref T2015. This fixes issues where the Drydock queries wouldn't filter (or throw an exception) when passed empty arrays for their with methods. In addition, this also adds array_unique to the resource and lease subqueries so that we don't pull in a bunch of stuff if logs or leases have the same related objects.

Test Plan: Tested it by using DarkConsole on the log controller.

Reviewers: epriestley, Blessed Reviewers

Reviewed By: epriestley, Blessed Reviewers

Subscribers: joshuaspence, Korvin, epriestley

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D10879

Details

Provenance
hach-queAuthored on
hach-quePushed on Aug 24 2015, 11:23 AM
Reviewer
Blessed Reviewers
Differential Revision
D10879: Fix issues where Drydock queries didn't work correctly with empty arrays
Parents
rP0d4f9363a0f2: Improve Drydock log search engine
Branches
Unknown
Tags
Unknown
Tasks
T2015: Implement Drydock