Closed
Bug 1075135
Opened 10 years ago
Closed 8 years ago
Create manage.py "download" command for local development data
Categories
(developer.mozilla.org Graveyard :: Setup / Install, enhancement)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: groovecoder, Unassigned)
References
()
Details
Reporter | ||
Comment 1•10 years ago
|
||
:ubernostrum - :shobson has a few pull requests and changes that need this for testing before we can merge. Can you start on it this week?
Assignee: nobody → jbennett
Flags: needinfo?(jbennett)
Comment 3•10 years ago
|
||
\o/
Comment 4•10 years ago
|
||
So, final things that need deciding: 1. Do we want to add some faked users in a fixture to be the authors of the revisions that will be imported? 2. If so, are we OK with randomly choosing one of them as an author for each revision?
Flags: needinfo?(shobson)
Flags: needinfo?(lcrouch)
Reporter | ||
Comment 5•10 years ago
|
||
1. Yeah 2. Yeah. Locally, I've used ./manage.py loaddata kuma/users/fixtures/test_users.json to get the 'testuser', 'testuser01', and 'testuser2' accounts into my box. Then I update my document dumps to make all revision "creator" properties to be "testuser".
Flags: needinfo?(lcrouch)
Comment 6•10 years ago
|
||
Can I hand craft users with actual profile data to throw in the mix?
Comment 7•10 years ago
|
||
I need some demos too, will the script be okay handling those?
Flags: needinfo?(shobson)
Reporter | ||
Comment 8•10 years ago
|
||
Users and data will be tricky to download - there's no ?raw=1 or API endpoints for them. Our best path for those is probably to create more/better fixture data and load it with `./manage.py loaddata` ... which could be part of the `./manage.py download` command too.
Reporter | ||
Comment 9•10 years ago
|
||
I.e., users and/or *demo* data ...
Comment 10•10 years ago
|
||
OK, *actual* final question, since this affects the complexity/time involved and possibly the load on our servers... Do we need the *full* revision history of the document, or is it reasonable to just grab some small-ish number of revisions? i.e., would it be OK to just grab the last 5 revisions? Could we get away with fewer?
Flags: needinfo?(shobson)
Comment 11•10 years ago
|
||
It may be worth making sure that, when available, there are enough history entries to enact pagination of the history, so that pagination-related effects can be tested. Just my 2¢.
Comment 12•10 years ago
|
||
We need to populate pagination on the revision page and on user profiles, it isn't necessary to get all the revisions for all the pages but we do need pagination. Not sure what the best solution for that is. It's also necessary to have some to properly populate the translation interface but certainly 5 would be enough for that.
Flags: needinfo?(shobson)
Updated•10 years ago
|
Severity: normal → enhancement
Updated•8 years ago
|
Assignee: jbennett → nobody
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•4 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•