Page MenuHomePhabricator

Invert include/exclude logic on DivinerAtomQuery
ClosedPublic

Authored by joshuaspence on Jun 4 2015, 9:04 PM.
Tags
None
Referenced Files
F13083984: D13157.diff
Wed, Apr 24, 10:46 PM
Unknown Object (File)
Mon, Apr 22, 7:49 PM
Unknown Object (File)
Mar 20 2024, 7:28 AM
Unknown Object (File)
Mar 20 2024, 7:28 AM
Unknown Object (File)
Mar 20 2024, 7:28 AM
Unknown Object (File)
Mar 20 2024, 7:27 AM
Unknown Object (File)
Mar 12 2024, 3:22 AM
Unknown Object (File)
Feb 9 2024, 1:44 PM
Subscribers

Details

Summary

Fixes T8401. Change withIncludeGhosts() to withExcludeGhosts() and withIncludeUndocumentable() to withExcludeDocumentable(). In particular, this allows querying for atoms by PHID to work as expected.

Test Plan

I got confused with double negatives so I might have gotten some of these wrong... I poked around Diviner and re-generated documentation to verify that this is working as expected.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Invert include/exclude logic on DivinerAtomQuery.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

I intentionally didn't change the following:

  • DivinerAtomPHIDType
  • DivinerAtomSearchEngine
src/applications/diviner/controller/DivinerAtomController.php
50–51

This will be changed when I land D13114.

epriestley edited edge metadata.

Also slightly more modern is withGhosts(), defaulting to null, and accepting true to mean "ghosts only" or false to mean "no ghosts". See PeopleQuery for an example if you want to go that route.

This revision is now accepted and ready to land.Jun 4 2015, 9:08 PM
joshuaspence edited edge metadata.

Modernize using withGhosts() and withIsDocumentable

This revision was automatically updated to reflect the committed changes.