Re: [Django] #31580: Union queryset should raise on distinct().

2020-05-13 Thread Django
#31580: Union queryset should raise on distinct().
-+-
 Reporter:  Sielc Technologies   |Owner:  Hasan
 Type:   |  Ramezani
  Cleanup/optimization   |   Status:  closed
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  fixed
 Keywords:  orm, distinct,   | Triage Stage:  Ready for
  annotate, union|  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by GitHub ):

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


Comment:

 In [changeset:"01a381cc17e6747e1d9e7b95a39e885029fd2a81" 01a381cc]:
 {{{
 #!CommitTicketReference repository=""
 revision="01a381cc17e6747e1d9e7b95a39e885029fd2a81"
 Fixed #31580 -- Added error messages on distinct() following union(),
 intersection(), and difference().
 }}}

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.12ade8e4713c8b246afd2e291e0d31e5%40djangoproject.com.


Re: [Django] #31580: Union queryset should raise on distinct().

2020-05-13 Thread Django
#31580: Union queryset should raise on distinct().
-+-
 Reporter:  Sielc Technologies   |Owner:  Hasan
 Type:   |  Ramezani
  Cleanup/optimization   |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  orm, distinct,   | Triage Stage:  Ready for
  annotate, union|  checkin
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by felixxm):

 * stage:  Accepted => Ready for checkin


Comment:

 [https://github.com/django/django/pull/12908 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.34ff65525fd0bcebf03104d2a3b0db88%40djangoproject.com.


Re: [Django] #31580: Union queryset should raise on distinct().

2020-05-13 Thread Django
#31580: Union queryset should raise on distinct().
-+-
 Reporter:  Sielc Technologies   |Owner:  Hasan
 Type:   |  Ramezani
  Cleanup/optimization   |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  orm, distinct,   | Triage Stage:  Accepted
  annotate, union|
Has patch:  1|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Hasan Ramezani):

 * has_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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.908a392a84d3251986c24aebf3a819e6%40djangoproject.com.


Re: [Django] #31580: Union queryset should raise on distinct().

2020-05-13 Thread Django
#31580: Union queryset should raise on distinct().
-+-
 Reporter:  Sielc Technologies   |Owner:  Hasan
 Type:   |  Ramezani
  Cleanup/optimization   |   Status:  assigned
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  orm, distinct,   | Triage Stage:  Accepted
  annotate, union|
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by Hasan Ramezani):

 * owner:  nobody => Hasan Ramezani
 * status:  new => assigned


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.921f01a3a81e534e665e7c7ee9561c7e%40djangoproject.com.


Re: [Django] #31580: Union queryset should raise on distinct(). (was: Expect to get SELECT DISTINCT ON after UNION of 2 annotated QuerySet)

2020-05-13 Thread Django
#31580: Union queryset should raise on distinct().
-+-
 Reporter:  Sielc Technologies   |Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Database layer   |  Version:  master
  (models, ORM)  |
 Severity:  Normal   |   Resolution:
 Keywords:  orm, distinct,   | Triage Stage:  Accepted
  annotate, union|
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  1|UI/UX:  0
-+-
Changes (by felixxm):

 * cc: Hasan Ramezani (added)
 * version:  3.0 => master
 * easy:  0 => 1
 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 `distinct()` is not supported but doesn't raise an error yet. As
 ​[https://docs.djangoproject.com/en/stable/ref/models/querysets/#union per
 the documentation], ''"only LIMIT, OFFSET, COUNT(*), ORDER BY, and
 specifying columns (i.e. slicing, count(), order_by(), and
 values()/values_list()) are allowed on the resulting QuerySet."''.

 Follow up to #27995.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.3ac605d4303229acc3c80caa8f7ee4a5%40djangoproject.com.