[Django] #37045: Deprecate and rename django.db.transaction.savepoint

5 views
Skip to first unread message

Django

unread,
4:54 AM (17 hours ago) 4:54 AM
to django-...@googlegroups.com
#37045: Deprecate and rename django.db.transaction.savepoint
-------------------------------------+-------------------------------------
Reporter: Lily | Type: New
| feature
Status: new | Component: Database
| layer (models, ORM)
Version: | 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
-------------------------------------+-------------------------------------
I proposed this in https://github.com/django/new-features/issues/138 and
it is now accepted.

Rename `savepoint` to `savepoint_create` and add a new `savepoint`
function as a deprecated alias or wrapper for `savepoint_create`. Once the
deprecation period has ended remove `savepoint`. This will free the name
for use for a higher-level `savepoint` context manager.
--
Ticket URL: <https://code.djangoproject.com/ticket/37045>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
4:54 AM (17 hours ago) 4:54 AM
to django-...@googlegroups.com
#37045: Deprecate and rename django.db.transaction.savepoint
-------------------------------------+-------------------------------------
Reporter: Lily | Owner: (none)
Type: New feature | Status: new
Component: Database layer | Version:
(models, ORM) |
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 Lily):

* stage: Unreviewed => Accepted

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

Django

unread,
4:54 AM (17 hours ago) 4:54 AM
to django-...@googlegroups.com
#37045: Deprecate and rename django.db.transaction.savepoint
-------------------------------------+-------------------------------------
Reporter: Lily | Owner: Samuel
| Searles-Bryant
Type: New feature | Status: assigned
Component: Database layer | Version:
(models, ORM) |
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 Samuel Searles-Bryant):

* owner: (none) => Samuel Searles-Bryant
* status: new => assigned

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

Django

unread,
5:43 AM (16 hours ago) 5:43 AM
to django-...@googlegroups.com
#37045: Deprecate and rename django.db.transaction.savepoint
-------------------------------------+-------------------------------------
Reporter: Lily | Owner: Samuel
| Searles-Bryant
Type: New feature | Status: assigned
Component: Database layer | Version:
(models, ORM) |
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 Samuel Searles-Bryant):

`BaseDatabaseWrapper` also has a `savepoint` method (and a private
`_savepoint`). We ''could'' also rename those, but that's not necessary.
--
Ticket URL: <https://code.djangoproject.com/ticket/37045#comment:3>

Django

unread,
6:22 AM (16 hours ago) 6:22 AM
to django-...@googlegroups.com
#37045: Deprecate and rename django.db.transaction.savepoint
-------------------------------------+-------------------------------------
Reporter: Lily | Owner: Samuel
| Searles-Bryant
Type: New feature | Status: assigned
Component: Database layer | Version:
(models, ORM) |
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 Samuel Searles-Bryant):

* has_patch: 0 => 1

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

Django

unread,
10:07 AM (12 hours ago) 10:07 AM
to django-...@googlegroups.com
#37045: Deprecate and rename django.db.transaction.savepoint
-------------------------------------+-------------------------------------
Reporter: Lily | Owner: Samuel
| Searles-Bryant
Type: New feature | Status: assigned
Component: Database layer | Version:
(models, ORM) |
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 Lily):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/37045#comment:5>
Reply all
Reply to author
Forward
0 new messages