[Django] #25250: Better Indication of Squash Migration State in showmigrations

2 views
Skip to first unread message

Django

unread,
Aug 7, 2015, 4:44:06 PM8/7/15
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-----------------------------+--------------------
Reporter: mlavin | Owner: nobody
Type: New feature | Status: new
Component: Migrations | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
In the discussion of #25231 (https://github.com/django/django/pull/5112)
it became clear that there was a disconnect between the current output of
{{{showmigrations}}} and the actual recorded applied state of squashed
migrations.

Currently if all of the replaced/original migrations have been run,
{{{showmigrations}}} will output that the related squashed migration has
been applied with an [X] in the output even if that has not yet been
recorded by the migration recorder. However, it is currently a requirement
that {{{migrate}}} be run to record this applied state for the squashed
migration before the original migrations are removed. If a deployment
process is looking for an empty [ ] to know to run the migration then this
may trip it up.

This case is to consider an output for {{{showmigrations}}} which can
indicate that this migration has only been "soft" applied, that is applied
but not recorded yet.

Changes to the planner for such an output may also impact #24900.

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

Django

unread,
Aug 7, 2015, 5:04:23 PM8/7/15
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-----------------------------+------------------------------------

Reporter: mlavin | Owner: nobody
Type: New feature | Status: new
Component: Migrations | Version: master
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 carljm):

* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


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

Django

unread,
Jun 10, 2021, 10:51:03 AM6/10/21
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-----------------------------+---------------------------------------
Reporter: Mark Lavin | Owner: Jacob Walls
Type: New feature | Status: assigned
Component: Migrations | Version: dev

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 Jacob Walls):

* owner: nobody => Jacob Walls
* status: new => assigned


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

Django

unread,
Jun 10, 2021, 11:18:47 AM6/10/21
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-----------------------------+---------------------------------------
Reporter: Mark Lavin | Owner: Jacob Walls
Type: New feature | Status: assigned
Component: Migrations | Version: dev
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 Jacob Walls):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/14513 PR]

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

Django

unread,
Jun 11, 2021, 2:51:27 AM6/11/21
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-------------------------------------+-------------------------------------

Reporter: Mark Lavin | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: assigned

Component: Migrations | Version: dev
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 Mariusz Felisiak):

* type: New feature => Cleanup/optimization


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

Django

unread,
Jun 11, 2021, 3:37:08 AM6/11/21
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-------------------------------------+-------------------------------------
Reporter: Mark Lavin | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: assigned
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* stage: Accepted => Ready for checkin


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

Django

unread,
Jun 11, 2021, 5:21:12 AM6/11/21
to django-...@googlegroups.com
#25250: Better Indication of Squash Migration State in showmigrations
-------------------------------------+-------------------------------------
Reporter: Mark Lavin | Owner: Jacob
Type: | Walls
Cleanup/optimization | Status: closed
Component: Migrations | Version: dev
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

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


Comment:

In [changeset:"2dfc1066a0d31c7e443e1c7b8590b101a645bf2d" 2dfc106]:
{{{
#!CommitTicketReference repository=""
revision="2dfc1066a0d31c7e443e1c7b8590b101a645bf2d"
Fixed #25250 -- Clarified partially recorded state of squashed migrations
in showmigrations --list.
}}}

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

Reply all
Reply to author
Forward
0 new messages