Page MenuHomePhabricator

Update many Phabricator queries for new %Q query semantics
ClosedPublic

Authored by epriestley on Nov 7 2018, 12:29 PM.
Tags
None
Referenced Files
F18886815: D19789.diff
Fri, Nov 7, 5:09 AM
F18862865: D19789.id.diff
Sun, Nov 2, 9:20 PM
F18849765: D19789.id47256.diff
Thu, Oct 30, 12:06 PM
F18820861: D19789.diff
Wed, Oct 22, 5:32 PM
F18789291: D19789.id47302.diff
Wed, Oct 15, 8:57 AM
F18733828: D19789.id.diff
Sep 30 2025, 10:42 PM
F18701870: D19789.id.diff
Sep 27 2025, 9:33 PM
F18689402: D19789.diff
Sep 26 2025, 6:03 PM
Subscribers

Details

Summary

Depends on D19785. Ref T13217. This converts many of the most common clause construction pathways to the new %Q / %LQ / %LO / %LA / %LJ semantics.

Test Plan

Browsed around a bunch, saw fewer warnings and no obvious behavioral errors. The transformations here are generally mechanical (although I did them by hand).

Diff Detail

Repository
rP Phabricator
Branch
query2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21151
Build 28757: Run Core Tests
Build 28756: arc lint + arc unit

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 7 2018, 12:30 PM
Harbormaster failed remote builds in B21105: Diff 47256!
epriestley added inline comments.
src/applications/calendar/query/PhabricatorCalendarEventQuery.php
512–514

This method has no effect: this is the default behavior of the parent method, so removing it does not change program behavior.

(It otherwise needed a signature change, so I just nuked it instead.)

amckinley added inline comments.
src/applications/chatlog/query/PhabricatorChatLogQuery.php
63

"nul"

src/infrastructure/query/PhabricatorOffsetPagedQuery.php
38

This is just required because qsprintf returns objects instead of strings now, right?

This revision is now accepted and ready to land.Nov 15 2018, 3:12 AM
epriestley marked an inline comment as done.
  • Fix nul vs null.
src/infrastructure/query/PhabricatorOffsetPagedQuery.php
38

Yep, exactly.

This revision was automatically updated to reflect the committed changes.