[Django] #31645: Models have changes red alert message should say which apps/models

22 views
Skip to first unread message

Django

unread,
May 30, 2020, 3:59:51 PM5/30/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
-------------------------------------------+------------------------
Reporter: John Vandenberg | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
When running 'migrate', the message appearing when there are missing
migrations should say which app/model it detected has missing migrations.

The message is currently:

Your models have changes that are not yet reflected in a migration, and
so won't be applied.
Run 'manage.py makemigrations' to make new migrations, and then re-run
'manage.py migrate' to apply them.

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

Django

unread,
May 31, 2020, 9:00:52 AM5/31/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
---------------------------------+------------------------------------

Reporter: John Vandenberg | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.0
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 Keryn Knight):

* cc: Keryn Knight (added)
* stage: Unreviewed => Accepted


Comment:

Tentatively marking this as accepted (if it's not too invasive to surface)
because there's prior acceptance for similar in #25855.

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

Django

unread,
Jun 2, 2020, 4:07:17 PM6/2/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------

Reporter: John Vandenberg | Owner: nobody
Type: Cleanup/optimization | 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
--------------------------------------+------------------------------------

Comment (by Chinmoy):

Hey I'm a beginner in opensource and would like to work on this issue. May
I claim the ticket ?

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

Django

unread,
Jun 2, 2020, 4:12:46 PM6/2/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------

Reporter: John Vandenberg | Owner: nobody
Type: Cleanup/optimization | 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
--------------------------------------+------------------------------------

Comment (by felixxm):

Feel-free.

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

Django

unread,
Jun 3, 2020, 2:38:12 AM6/3/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned

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 Chinmoy):

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


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

Django

unread,
Jun 3, 2020, 2:45:43 AM6/3/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
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
--------------------------------------+------------------------------------

Comment (by Chinmoy):

What would be an appropriate message here? Will simply printing out the
**changes** dict work?

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

Django

unread,
Jun 3, 2020, 8:44:28 AM6/3/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
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
--------------------------------------+------------------------------------

Comment (by Chinmoy):

I think a message similar to that given by **makemigrations --dry-run**
would be good enough?

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

Django

unread,
Jun 3, 2020, 9:27:25 AM6/3/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
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 Chinmoy):

* Attachment "mod_out.png" added.

Test output of pending migrations

Django

unread,
Jun 4, 2020, 4:14:12 PM6/4/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
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
--------------------------------------+------------------------------------

Comment (by Chinmoy):

Will any tests be necessary for this? If yes, what should it test?

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

Django

unread,
Jun 5, 2020, 1:35:37 PM6/5/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
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
--------------------------------------+------------------------------------

Comment (by Chinmoy):

Submitted a patch [https://github.com/django/django/pull/13027]

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

Django

unread,
Jun 6, 2020, 7:39:11 AM6/6/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
Component: Migrations | 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 Chinmoy):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31645#comment:10>

Django

unread,
Jun 6, 2020, 7:41:25 AM6/6/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
Component: Migrations | 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
--------------------------------------+------------------------------------

Comment (by Chinmoy):

Patch waiting for review. Can someone please review it?

--
Ticket URL: <https://code.djangoproject.com/ticket/31645#comment:11>

Django

unread,
Jun 8, 2020, 4:19:45 AM6/8/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
--------------------------------------+------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: Cleanup/optimization | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1

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

* needs_better_patch: 0 => 1
* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/31645#comment:12>

Django

unread,
Jun 12, 2020, 3:12:03 AM6/12/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
-------------------------------------+-------------------------------------

Reporter: John Vandenberg | Owner: Chinmoy
Type: | Status: assigned
Cleanup/optimization |

Component: Migrations | Version: master
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 felixxm):

* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/31645#comment:13>

Django

unread,
Jun 12, 2020, 4:27:42 AM6/12/20
to django-...@googlegroups.com
#31645: Models have changes red alert message should say which apps/models
-------------------------------------+-------------------------------------
Reporter: John Vandenberg | Owner: Chinmoy
Type: | Status: closed

Cleanup/optimization |
Component: Migrations | Version: master
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:"2928019e0ccd8e9c7d3a3fba7722a7af87018e5d" 2928019e]:
{{{
#!CommitTicketReference repository=""
revision="2928019e0ccd8e9c7d3a3fba7722a7af87018e5d"
Fixed #31645 -- Enhanced the migration warning for migrate commmand.

Added the list of apps with changes not reflected in migrations.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/31645#comment:14>

Reply all
Reply to author
Forward
0 new messages