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
Unknown Object (File)
Sun, Dec 1, 3:56 PM
Unknown Object (File)
Thu, Nov 21, 10:14 AM
Unknown Object (File)
Mon, Nov 4, 10:03 AM
Unknown Object (File)
Oct 15 2024, 9:55 PM
Unknown Object (File)
Oct 15 2024, 2:25 AM
Unknown Object (File)
Oct 15 2024, 1:20 AM
Unknown Object (File)
Sep 11 2024, 11:06 PM
Unknown Object (File)
Aug 26 2024, 1:49 AM
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
qobject7
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21105
Build 28688: Run Core Tests
Build 28687: arc lint + arc unit

Unit TestsFailed

TimeTest
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msConpherenceRoomTestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
1 msDiffusionURITestCase::Unknown Unit Message ("")
EXCEPTION (XsprintfUnknownConversionException): Unknown conversion LQ. #0 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(282): qsprintf_check_scalar_type(Array, 'LQ', 'SELECT %LQ') #1 /core/data/drydock/workingcopy-74/repo/libphutil/src/xsprintf/qsprintf.php(134): qsprintf_check_type(Array, 'LQ', 'SELECT %LQ')
View Full Test Results (113 Failed · 297 Passed)

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.