Page MenuHomePhabricator

Improve Conpherence behavior for logged out users.
ClosedPublic

Authored by amckinley on Apr 2 2019, 8:58 PM.
Tags
None
Referenced Files
F18843037: D20375.diff
Tue, Oct 28, 8:34 PM
F18831865: D20375.id48600.diff
Sat, Oct 25, 3:59 PM
F18830952: D20375.id48601.diff
Sat, Oct 25, 9:48 AM
F18666781: D20375.id.diff
Sep 24 2025, 8:17 AM
F18653760: D20375.diff
Sep 21 2025, 5:23 PM
F18518649: D20375.diff
Sep 5 2025, 3:31 PM
F18110642: D20375.id48600.diff
Aug 11 2025, 10:00 PM
F18109315: D20375.id48601.diff
Aug 11 2025, 1:07 PM
Subscribers

Details

Summary

There are two issues here I was trying to fix:

  • Viewing /conpherence by logged out users on secure would generate an overheated query on ConpherenceThreadQuery secure has a ton of wacky threads with bogus names.
  • When a user views a specific thread that they don't have permission to see, we attempt to fetch the thread's transactions before applying policy filtering. If the thread has more than 1000 comments, that query will also overheat instead of returning a policy exception.

I fixed the first problem, but started trying to fix the second by moving the transaction fetch to didFilterPage but it broke in strange ways so I gave up.

Also fix a dangling qsprintf update.

Test Plan

Loaded threads and the Conpherence homepage with and without logged in users.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I fixed the first problem, but started trying to fix the second by moving the transaction fetch to didFilterPage but it broke in strange ways so I gave up.

do not worry some day we will make conpherence a good application with good programming code 😀

This revision is now accepted and ready to land.Apr 2 2019, 9:01 PM
This revision was automatically updated to reflect the committed changes.