Page MenuHomePhabricator

Support "Any Value" and "No Value" search constraints for datasource Custom Fields
ClosedPublic

Authored by epriestley on Feb 22 2018, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jan 29, 5:03 PM
Unknown Object (File)
Wed, Jan 29, 5:03 PM
Unknown Object (File)
Wed, Jan 29, 5:03 PM
Unknown Object (File)
Wed, Jan 29, 11:19 AM
Unknown Object (File)
Tue, Jan 28, 4:10 PM
Unknown Object (File)
Tue, Jan 28, 3:24 AM
Unknown Object (File)
Tue, Jan 28, 3:24 AM
Unknown Object (File)
Tue, Jan 28, 3:24 AM
Subscribers
None

Details

Summary

Depends on D19126. Ref T13090. For datasource custom fields, this proxies the datasource and provides "none()" and "any()" functions to allow you to search for objects with no values or any values.

Test Plan
  • Created a custom "Owning Group" field in Maniphest using a Projects datasource.
  • For a task with no owner assigned, searched for "none()" (hit) and "any()" (miss).
  • Assigned the task to an owning project.
  • Searched for "none()" (miss), "any()" (hit), the project it is now a member of (hit) and some random other project (miss).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable