HomePhorge

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
June RhodesAuthored on Aug 24 2015, 4:23 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP0d4f9363a0f2: Improve Drydock log search engine
Branches
Unknown
Tags
Unknown

Event Timeline