[Django] #25629: Some GIS functions don't check the number of arguments

18 views
Skip to first unread message

Django

unread,
Oct 28, 2015, 4:39:25 PM10/28/15
to django-...@googlegroups.com
#25629: Some GIS functions don't check the number of arguments
------------------------------------------------+------------------------
Reporter: claudep | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
GIS functions using their parent (GeoFunc) default `__init__` don't check
that the number of passed arguments is correct (e.g. Area). This should be
improved, because currently, the result is a ProgrammingError when hitting
the backend instead of a TypeError.

--
Ticket URL: <https://code.djangoproject.com/ticket/25629>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Oct 28, 2015, 9:39:10 PM10/28/15
to django-...@googlegroups.com
#25629: Some GIS functions don't check the number of arguments
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
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 sir-sigurd):

* owner: nobody => sir-sigurd
* status: new => assigned


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

Django

unread,
Oct 29, 2015, 12:10:10 AM10/29/15
to django-...@googlegroups.com
#25629: Some GIS functions don't check the number of arguments
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
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 sir-sigurd):

PR -- https://github.com/django/django/pull/5499

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

Django

unread,
Oct 29, 2015, 3:43:52 AM10/29/15
to django-...@googlegroups.com
#25629: Some GIS functions don't check the number of arguments
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
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 claudep):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/25629#comment:3>

Django

unread,
Nov 2, 2015, 2:10:41 PM11/2/15
to django-...@googlegroups.com
#25629: Some GIS functions don't check the number of arguments
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
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
-------------------------------------+-------------------------------------

Comment (by Claude Paroz <claude@…>):

In [changeset:"0a26121797b5e0aa07ada07fe1577a79d3853c40" 0a26121]:
{{{
#!CommitTicketReference repository=""
revision="0a26121797b5e0aa07ada07fe1577a79d3853c40"
Refs #25629 -- Added `arity` class attribute to `Func` expressions
}}}

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

Django

unread,
Nov 3, 2015, 2:21:53 AM11/3/15
to django-...@googlegroups.com
#25629: Some GIS functions don't check the number of arguments
-------------------------------------+-------------------------------------
Reporter: claudep | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: closed
Component: GIS | Version: master
Severity: Normal | Resolution: fixed
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 Claude Paroz <claude@…>):

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


Comment:

In [changeset:"a449b7ef99efdbb5edc8b4aacc89eb6020145dd3" a449b7ef]:
{{{
#!CommitTicketReference repository=""
revision="a449b7ef99efdbb5edc8b4aacc89eb6020145dd3"
Fixed #25629 -- Added checks of the number of arguments for GeoDjango DB
functions.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25629#comment:5>

Reply all
Reply to author
Forward
0 new messages