[Django] #24016: Document how to migrate data between two external apps

5 views
Skip to first unread message

Django

unread,
Dec 17, 2014, 6:29:38 PM12/17/14
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+--------------------
Reporter: jsma | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The docs do not mention best practices of how to migrate data between two
external apps (whose migrations you do not control). I attempted to solve
this on my own and ran into issues which required (in the interest of
time) ugly solutions.

For now I'm assuming the preferred method just needs to be documented (I
clearly have no idea what this is) and that there is not some fundamental
bug in the migrations system that prevents a reasonable approach.

I was directed to open a ticket after discussing this issue on the users
mailing list https://groups.google.com/d/msg/django-
users/SPXOBZN0b5g/_8ibzrqWE1QJ
This post contains specific details of the problem as well as the flawed
approach I took. Appreciate any feedback concerning best practices for
this problem type.

--
Ticket URL: <https://code.djangoproject.com/ticket/24016>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 17, 2014, 8:10:58 PM12/17/14
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: nobody
Type: New feature | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by timgraham):

* needs_better_patch: => 0
* needs_docs: => 0
* type: Uncategorized => New feature
* needs_tests: => 0
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:1>

Django

unread,
Jan 29, 2015, 12:22:03 PM1/29/15
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: nobody
Type: New feature | Status: new
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by akulakov):

You could argue that migrations between 3rd party apps are one-off type of
thing and should be handled by a custom script, and is a very different
use case than migrating within your own app which is a continuous process
in larger apps. Does that make sense?

--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:2>

Django

unread,
Apr 2, 2016, 10:07:14 AM4/2/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by rixx):

* owner: nobody => rixx
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:3>

Django

unread,
Apr 3, 2016, 6:07:20 AM4/3/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: assigned
Component: Documentation | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by MarkusH):

* needs_better_patch: 0 => 1
* version: 1.7 => master


--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:4>

Django

unread,
Apr 3, 2016, 9:40:56 AM4/3/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by rixx):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:5>

Django

unread,
Apr 3, 2016, 10:20:40 AM4/3/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: assigned
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by rixx):

* needs_better_patch: 1 => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:6>

Django

unread,
Apr 3, 2016, 11:20:43 AM4/3/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------
Changes (by Russell Keith-Magee <russell@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"b7ea494d65e4d9703a0a24f0cd708293df88f48b" b7ea494]:
{{{
#!CommitTicketReference repository=""
revision="b7ea494d65e4d9703a0a24f0cd708293df88f48b"
Fixed #24016 -- Added documentation about third-party app data migrations

There was confusion about how to migrate data from third-party

applications when you are going to uninstall the application later on.

Thanks to Markus, Marten and Sergei for help and review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:7>

Django

unread,
Apr 6, 2016, 12:15:07 PM4/6/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"c643b4c9f2acfdcb562bdbec1d74ac797b890b9b" c643b4c9]:
{{{
#!CommitTicketReference repository=""
revision="c643b4c9f2acfdcb562bdbec1d74ac797b890b9b"
Refs #24016 -- Edited "Migrating data between third-party apps" howto.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:8>

Django

unread,
Apr 6, 2016, 12:17:10 PM4/6/16
to django-...@googlegroups.com
#24016: Document how to migrate data between two external apps
-------------------------------+------------------------------------
Reporter: jsma | Owner: rixx
Type: New feature | Status: closed
Component: Documentation | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"59ae2292df8daae365f989bdb388b4eb38d5927a" 59ae2292]:
{{{
#!CommitTicketReference repository=""
revision="59ae2292df8daae365f989bdb388b4eb38d5927a"
[1.9.x] Fixed #24016 -- Added "Migrating data between third-party apps"
howto.

Thanks to Markus, Marten and Sergei for help and review.

Backport of b7ea494d65e4d9703a0a24f0cd708293df88f48b and
c643b4c9f2acfdcb562bdbec1d74ac797b890b9b from master
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/24016#comment:9>

Reply all
Reply to author
Forward
0 new messages