Running the command results in `No conflicts detected to merge.` however.
`0002_initial_models` is not actually a leaf node, but `0003_initial_data`
depends on it.
`0003_initial_data` however is removed, since it replaces
`0XXX_merge_20170628_1435`, which is not applied yet and therefore also
does not show up in `showmigrations`?!
(it gets removed in
https://github.com/django/django/blob/a6756195c1a11eee10c16c96fe95d52e22e1d9ba/django/db/migrations/graph.py#L252)
I think `0003_initial_data` should still show up in `showmigrations`, but
with some indication that it replaces other migrations.
That would happen in case it wasn't removed as a leaf node in
https://github.com/django/django/blob/a6756195c1a11eee10c16c96fe95d52e22e1d9ba/django/core/management/commands/showmigrations.py#L82-L83.
--
Ticket URL: <https://code.djangoproject.com/ticket/28351>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Tim Graham):
Can you provide more explicit steps to reproduce the problematic
situation?
--
Ticket URL: <https://code.djangoproject.com/ticket/28351#comment:1>
Comment (by Daniel Hahler):
Not currently.
I think a fix might be to move over the `replaces` from the node that gets
replaced, and/or only to replace up to the parent that got applied in
https://github.com/django/django/blob/a6756195c1a11eee10c16c96fe95d52e22e1d9ba/django/db/migrations/graph.py#L243-L245.
--
Ticket URL: <https://code.djangoproject.com/ticket/28351#comment:2>
* stage: Unreviewed => Accepted
Comment:
Tentatively accepting. Might be difficult to proceed without steps to
reproduce unless you plan to offer a patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/28351#comment:3>
* status: new => assigned
* owner: nobody => Windson yang
--
Ticket URL: <https://code.djangoproject.com/ticket/28351#comment:4>
Comment (by Windson yang):
I need more details to fix this bug.
--
Ticket URL: <https://code.djangoproject.com/ticket/28351#comment:5>
* status: assigned => closed
* resolution: => needsinfo
--
Ticket URL: <https://code.djangoproject.com/ticket/28351#comment:6>