Page MenuHomePhabricator

Don't compute a nonsensical assigned task count for logged-out users
ClosedPublic

Authored by epriestley on Nov 19 2014, 9:00 PM.
Tags
None
Referenced Files
F18754104: D10876.id.diff
Sat, Oct 4, 9:21 PM
F18745184: D10876.diff
Fri, Oct 3, 5:37 AM
F18657992: D10876.id.diff
Tue, Sep 23, 4:22 AM
F18656660: D10876.id26122.diff
Mon, Sep 22, 11:06 PM
F18596249: D10876.diff
Sep 13 2025, 12:09 AM
F18504428: D10876.id.diff
Sep 4 2025, 11:47 PM
F18305485: D10876.diff
Aug 23 2025, 11:49 PM
F17847147: D10876.id26121.diff
Jul 27 2025, 5:48 AM
Tokens
"Mountain of Wealth" token, awarded by 20after4.

Details

Summary

When a logged-out user views the home page, we currently compute a meaningless "assigned tasks" count which just counts every open task. Don't do this.

Ideally ManiphestTaskQuery should get some tightening up too (that is, withOwners(array(null)) should not select every task), but that might affect other stuff and the performance implications of counting every open task are affecting WMF, so just fix the immediate issue for now.

Test Plan
  • Viewed homepage as a logged out user, no assigned task count.
  • Viewed homepage as a logged-in user, still saw assigned task count.

Diff Detail

Repository
rP Phabricator
Branch
nostatus
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3096
Build 3102: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Don't compute a nonsensical assigned task count for logged-out users.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, chad, chasemp.

I guess withOwners(array(null)) is internal shorthand for "unowned", so this is actually just counting unassigned tasks. Still broken and junky but the API which allowed the error is at least somewhat defensible.

chasemp edited edge metadata.

Thank you for your expediciousness :)

This revision is now accepted and ready to land.Nov 19 2014, 9:05 PM
This revision was automatically updated to reflect the committed changes.