Page MenuHomePhabricator

Fix "ONLY_FULL_GROUP_BY" issue in SystemAction queries
ClosedPublic

Authored by epriestley on Sep 3 2019, 11:43 PM.
Tags
None
Referenced Files
F13062916: D20782.diff
Sat, Apr 20, 3:32 AM
Unknown Object (File)
Wed, Apr 17, 3:09 PM
Unknown Object (File)
Tue, Apr 16, 4:16 PM
Unknown Object (File)
Thu, Apr 11, 7:18 AM
Unknown Object (File)
Thu, Mar 28, 6:56 PM
Unknown Object (File)
Mar 18 2024, 8:50 PM
Unknown Object (File)
Mar 5 2024, 3:11 AM
Unknown Object (File)
Feb 19 2024, 9:40 PM
Subscribers
None

Details

Summary

Ref T13404. This query is invalid under "sql_mode=ONLY_FULL_GROUP_BY". Rewrite it to avoid interacting with actorIdentity at all; this is a little more robust in the presence of weird data and not really more complicated.

Test Plan
  • Enabled "ONLY_FULL_GROUP_BY".
  • Hit system actions (e.g., login).
    • Before: error.
    • After: clean login.
  • Tried to login with a bad password many times in a row, got properly limited by the system action rate limiter.

Diff Detail

Repository
rP Phabricator
Branch
group1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23379
Build 32116: Run Core Tests
Build 32115: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sep 3 2019, 11:50 PM
This revision was automatically updated to reflect the committed changes.