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
F18837455: D20782.diff
Mon, Oct 27, 5:33 AM
F18831809: D20782.id.diff
Sat, Oct 25, 3:27 PM
F18827819: D20782.diff
Fri, Oct 24, 12:22 PM
F18809607: D20782.id49553.diff
Sun, Oct 19, 3:31 PM
F18702759: D20782.id49554.diff
Sep 28 2025, 1:24 AM
F18514382: D20782.id49553.diff
Sep 5 2025, 10:11 AM
F18512123: D20782.diff
Sep 5 2025, 7:37 AM
F18309781: D20782.id49554.diff
Aug 24 2025, 3:47 AM
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.