Re: [Django] #28479: Document that transactions do not revert model state

2017-09-04 Thread Django
#28479: Document that transactions do not revert model state
-+-
 Reporter:  Todor Velichkov  |Owner:  Jonatas
 Type:   |  CD
  Cleanup/optimization   |   Status:  closed
Component:  Documentation|  Version:  1.11
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"02210393097b0183ad2a462dbdfb900e450327eb" 0221039]:
 {{{
 #!CommitTicketReference repository=""
 revision="02210393097b0183ad2a462dbdfb900e450327eb"
 [1.11.x] Fixed #28479 -- Doc'd that transaction rollback doesn't revert
 model state.

 Backport of c9b22707b0703db6c6ddaebdd00e2cd33d182e40 from master
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.cadd2ef190776a29affbc841043fe824%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28479: Document that transactions do not revert model state

2017-09-04 Thread Django
#28479: Document that transactions do not revert model state
-+-
 Reporter:  Todor Velichkov  |Owner:  Jonatas
 Type:   |  CD
  Cleanup/optimization   |   Status:  closed
Component:  Documentation|  Version:  1.11
 Severity:  Normal   |   Resolution:  fixed
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"c9b22707b0703db6c6ddaebdd00e2cd33d182e40" c9b22707]:
 {{{
 #!CommitTicketReference repository=""
 revision="c9b22707b0703db6c6ddaebdd00e2cd33d182e40"
 Fixed #28479 -- Doc'd that transaction rollback doesn't revert model
 state.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.3630fd8d5708331c31647e675970740f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28479: Document that transactions do not revert model state

2017-08-09 Thread Django
#28479: Document that transactions do not revert model state
-+-
 Reporter:  Todor Velichkov  |Owner:  Jonatas
 Type:   |  CD
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  1.11
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Tim Graham):

 * needs_better_patch:  0 => 1


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.888c36e5b725ef1f41b17c8ba01400fa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28479: Document that transactions do not revert model state

2017-08-09 Thread Django
#28479: Document that transactions do not revert model state
-+-
 Reporter:  Todor Velichkov  |Owner:  Jonatas
 Type:   |  CD
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  1.11
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Jonatas CD):

 * has_patch:  0 => 1


Comment:

 Here is the [https://github.com/django/django/pull/8873 PR].

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.1f4d896d18be38fd5a0c8e18d5e4d8b4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28479: Document that transactions do not revert model state

2017-08-09 Thread Django
#28479: Document that transactions do not revert model state
-+-
 Reporter:  Todor Velichkov  |Owner:  Jonatas
 Type:   |  CD
  Cleanup/optimization   |   Status:  assigned
Component:  Documentation|  Version:  1.11
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Jonatas CD):

 * status:  new => assigned
 * owner:  nobody => Jonatas CD


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.ea8691067e22b9f5d5d5c3bae25e2fa3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #28479: Document that transactions do not revert model state (was: Document that transactions do not revert model State.)

2017-08-08 Thread Django
#28479: Document that transactions do not revert model state
--+
 Reporter:  Todor Velichkov   |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Documentation |  Version:  1.11
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  1 |UI/UX:  0
--+
Changes (by Tim Graham):

 * stage:  Unreviewed => Accepted


Comment:

 The document to update is probably docs/topics/db/transactions.txt.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/072.0e86bfe16c4f0917ccb52c8eb3675a5c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #28479: Document that transactions do not revert model State.

2017-08-08 Thread Django
#28479: Document that transactions do not revert model State.
+
   Reporter:  Todor Velichkov   |  Owner:  nobody
   Type:  Cleanup/optimization  | Status:  new
  Component:  Documentation |Version:  1.11
   Severity:  Normal|   Keywords:
   Triage Stage:  Unreviewed|  Has patch:  0
Needs documentation:  0 |Needs tests:  0
Patch needs improvement:  0 |  Easy pickings:  1
  UI/UX:  0 |
+
 I know this may be obvious, but I think its worth mentioning in the
 documentation that when a transaction rollback happen your model/s state
 will not be reverted, thus the underlying model instance/s may end up in
 an inconsistent state if not manually reverted.

 A simple toy example:

 {{{
 from django.db import IntegrityError, transaction
 from django.contrib.auth.models import User

 def update_user(pk, username):
 user = User.objects.get(pk=pk)
 try:
 with transaction.atomic():
 user.username = username
 user.is_active = False
 user.save()
 return user
 except IntegrityError:
 return user
 }}}

 since `username` is an unique field if an IntegrityError happen and the
 transaction got reverted, the user which we return will have an
 inconsistent state (if not manually reverted).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/057.cc1d3358cd1d86e7c659f15c3343832f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.