Page MenuHomePhabricator

Fix an issue where querying for a large number of projects by slug could paginate incorrectly
ClosedPublic

Authored by epriestley on Jul 9 2020, 5:47 PM.
Tags
None
Referenced Files
F19824204: D21399.id.diff
Sat, Mar 7, 8:31 PM
F19767297: D21399.id.diff
Thu, Feb 19, 3:11 PM
F19738959: D21399.diff
Sun, Feb 15, 7:19 AM
F19605102: D21399.diff
Feb 3 2026, 8:34 AM
F18904265: D21399.id50936.diff
Nov 8 2025, 8:23 AM
F18902751: D21399.id50937.diff
Nov 8 2025, 2:33 AM
F18836633: D21399.diff
Oct 27 2025, 3:03 AM
F18809230: D21399.id.diff
Oct 19 2025, 12:11 PM
Subscribers
None

Details

Summary

See PHI1809. This query may join the "slug" table, but each project may have multiple slugs, and the query does not "GROUP BY" when this join occurs.

This may lead to partial result sets and unusual paging behavior.

This could likely be caught categorically in loadAllFromArray(); I'll adjust this in a followup.

Test Plan

A minimal reproduction case is something like:

  • Give project P slugs: a, b, c.
  • Give project Q slugs: d.
  • Query for slugs: a, b, c, d; with limit 2.
  • Order the query so P returns first.
  • Expect: P and Q.
  • Actual: P generates 3 raw rows and the final result is just P with no pagination cursor.

Diff Detail

Repository
rP Phabricator
Branch
project1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24755
Build 34140: Run Core Tests
Build 34139: arc lint + arc unit