Opened 9 years ago

Closed 9 years ago

#24899 closed Cleanup/optimization (fixed)

Split up migrations autodetector._detect_changes into separate functions

Reported by: Markus Holtermann Owned by: Steadman
Component: Migrations Version: dev
Severity: Normal Keywords: afraid-to-commit
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The migration autodetector is one important part of Django's migration framework. The "magic" happens in its method _detect_changes() which spans more than 200 lines of code. Although the method already has some structure, it would be great to move the different steps that are performed in there into separate methods.

Attachments (1)

0001-Fixes-24899.patch (9.0 KB ) - added by Steadman 9 years ago.
Proposed patch (passing all migration tests)

Download all attachments as: .zip

Change History (6)

comment:1 by Tim Graham, 9 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Steadman, 9 years ago

Owner: changed from nobody to Steadman
Status: newassigned

by Steadman, 9 years ago

Attachment: 0001-Fixes-24899.patch added

Proposed patch (passing all migration tests)

comment:3 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

Markus, please confirm PR is what you had in mind.

comment:4 by Markus Holtermann, 9 years ago

Yes, that's exactly what I had in mind. Thank you.

comment:5 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In ed63df3:

Fixed #24899 -- Split migrations autodetector._detect_changes() method

Note: See TracTickets for help on using tickets.
Back to Top