Don't load fandoms on orphan_account user dashboard

Description

On production, https://archiveofourown.org/users/orphan_account is not loading.

We think this could be because the Fandoms list takes too long to put together, but we'll need to deploy some code that skips listing Fandoms for the orphan_account in order to be sure.

Testing

On staging, go to the orphan_account’s dashboard (https://test.archiveofourown.org/users/orphan_account) and make sure there is no Fandoms section. Then pick one of the orphan_account’s pseuds and make sure the Fandoms section is present.

On production, see if the orphan_account’s dashboard loads.

Notes

This is a temporary change (famous last words!) to help us diagnose the actual problem. If the orphan_account dashboard starts loading once this is deployed, we should come up with a new way of counting fandoms. If it doesn't start loading, we should remove this code and keep looking for the problem.

Activity

Show:
Lady Oscar
June 1, 2019, 2:17 AM

1) On Staging, went to https://test.archiveofourown.org/users/orphan_account

The page loaded, and there is no "Fandoms" section

2) Chose one of orphan_account's pseuds

There is a "Fandoms" section

3) Tried while logged out

Same results

Looks good!

ticking instant
July 17, 2019, 12:53 PM

Well, the orphan_account dashboard is very slow to load, but it does appear to be loading in production. So I guess that means that the code for calculating the user's fandoms needs to be rewritten to scale better. (Maybe with Elasticsearch.)

redsummernight
August 6, 2019, 1:35 PM

To be continued in AO3-5726.

Done

Assignee

Sarken

Reporter

Sarken

Roadmap

Orphaning

Priority

High

Affects versions

Fix versions

Components

BackEnd

Difficulty

Easy

Milestone

Internal 0.9