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
F16419709: D19127.id45827.diff
Mon, Jun 16, 8:40 AM
Unknown Object (File)
Sun, Jun 15, 1:58 PM
Unknown Object (File)
May 6 2025, 10:58 AM
Unknown Object (File)
Apr 27 2025, 1:24 AM
Unknown Object (File)
Apr 11 2025, 12:20 PM
Unknown Object (File)
Apr 7 2025, 1:24 PM
Unknown Object (File)
Mar 25 2025, 2:04 AM
Unknown Object (File)
Mar 22 2025, 6:07 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