Closed
Bug 874535
Opened 12 years ago
Closed 12 years ago
Localized homepage looks for news articles without fallback
Categories
(support.mozilla.org :: Code Quality, task)
support.mozilla.org
Code Quality
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: shuhao, Assigned: shuhao)
Details
(Whiteboard: u=dev c=general p= s=)
Localized homepages currently will look for news articles and it will fail without a proper database setup. This is a roadblock to new contributors.
Comment 1•12 years ago
|
||
This should be fixable by adding some more code to the sampledata generation.
So instead of falling back to a system where the page won't load, we just generate sample data that's localized? Would this need to happen for every single locale?
Comment 3•12 years ago
|
||
Something is fishy here. If this was really a bug, a lot of our locales would be broken. For example, the 'ak' locale doesn't have almost anything localized and it works:
https://support.mozilla.org/ak/home
That's not the case. This is when you do _not_ have a database dump (only data from ./manage.py generatedata). I don't exactly know where the code for generatedata lives right now but it seems it doesn't generate localized news articles.
Production is not affected as the entire database (all localizations) is available.
Comment 5•12 years ago
|
||
Can you paste a stack trace? That'll help get us on the same page here.
The code for getting news looks right (it falls back to en-US then None):
https://github.com/mozilla/kitsune/blob/master/apps/landings/views.py#L32
Just generated a fresh database. Seems to be okay now.
Closed as invalid as I was having trouble setting up earlier, so I might have done something wrong. If anyone else find something.. please reopen.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•