Import data from loco.ubuntu.com JSON service locally

Bug #611304 reported by Daniel Holbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LoCo Team Portal
Fix Released
High
Ronnie

Bug Description

It'd be useful to import data from the loco.ubuntu.com JSON service locally to have real live test data.

I'd envision a ./manage.py import-life-data command that takes a bit of processing time but actually imports live data for me.

Tags: development

Related branches

Changed in loco-directory:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Daniel Holbach (dholbach) wrote :

Raising importance of this. We run into more and more issues on loco.u.c that we can't reproduce locally. We should rule out problems because of existing real-life data.

Changed in loco-directory:
importance: Wishlist → High
Revision history for this message
Daniel Holbach (dholbach) wrote :

This bug depends on bug 612521.

Revision history for this message
Ronnie (ronnie.vd.c) wrote :

I almost nailed this one.

But im currently running into a problem. Set User property of the UserProfile is not sended with the JSON and therefore its impossible to link the UserProfile with the User object. Is this blocked by any reason?

Revision history for this message
Ronnie (ronnie.vd.c) wrote :

Related branche is now online. Importing fails currently at 2 points

1. The User and UserProfile are not properly linked (its now random)
2. The properties of BaseEvent are not set

The own properties of GlobalEvent and TeamEvent are saved

Any help regarding this is welcome

Revision history for this message
Ronnie (ronnie.vd.c) wrote :

Thx to mhall119, point no 2 is now solved.

For 1. another bug report is made:
https://bugs.launchpad.net/loco-directory/+bug/692098

Changed in loco-directory:
status: Triaged → In Progress
assignee: nobody → Ronnie (ronnie.vd.c)
Changed in loco-directory:
status: In Progress → Fix Committed
milestone: none → 0.2.22
Changed in loco-directory:
milestone: 0.2.22 → 0.3.0
Changed in loco-directory:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.