- in the base implementation, most classes are defined in __init__.py; in
actual backends, most classes are in base.py;
- in the base implementation, BaseDatabaseCreation and
BaseDatabaseSchemaEditor have their own modules while other classes are
defined in __init__.py;
- the postgresql backend has an operations.py, other backends don't.
It would be easier to make cross-backend changes if the code was organized
consistently.
Considering the size of the classes involved, I think we should put each
class it its own module.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:1>
* status: new => assigned
* owner: nobody => gchp
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:2>
Comment (by timo):
We should do this late in the 1.8 release cycle when there is less of a
chance we'll need to backport bug fixes to 1.7.x as reorganizing a lot of
code like this will make backporting more painful.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:3>
Comment (by gchp):
That sounds sensible. I'll put it on hold until closer to the release
date. Is the timeline for 1.8 online anywhere? A quick search didn't
reveal it.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:4>
Comment (by timo):
No, we're at least a month behind on the 1.7 release, so that needs to be
finished first.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:5>
* keywords: => 1.8-alpha
Comment:
I'm tagging this ticket 1.8-alpha so we can try to make this change close
to that date (currently scheduled for January 12) before we fork
stable/1.8.x.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:6>
Comment (by berkerpeksag):
gchp, are you planning to work on this? I can review your patch or take a
look at this before 1.8 alpha.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:7>
Comment (by gchp):
Hey berkerpeksag,
I'm not sure if I'll get time, I don't want to say I will in case I don't.
Feel free to assign it to yourself if you like!
Cheers
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:8>
Comment (by timgraham):
There are still a couple large patches that touch these classes that may
make it into 1.8 (in particular,
[https://github.com/django/django/pull/3669 PR 3669]), so let's hold off a
bit longer on this -- I'm thinking after the "feature freeze" on Monday,
but before we cut the branch and issue an alpha release.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:9>
* owner: gchp => timgraham
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:10>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/3899 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:11>
* stage: Accepted => Ready for checkin
Comment:
Considering this is essentially code moving and the test suite is happy,
I'd consider this RFC.
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:12>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"28308078f397d1de36fd0da417ac7da2544ba12d"]:
{{{
#!CommitTicketReference repository=""
revision="28308078f397d1de36fd0da417ac7da2544ba12d"
Fixed #22603 -- Reorganized classes in django.db.backends.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22603#comment:13>