[Django] #25938: deduplicate GEOSBase and GDALBase

8 views
Skip to first unread message

Django

unread,
Dec 14, 2015, 12:59:13 PM12/14/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
--------------------------------------+--------------------
Reporter: sir-sigurd | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
`gis.gdal.base.GDALBase` and `gis.geos.base.GEOSBase` classes have almost
the same implementation, their subclasses uses the same pattern for
`__del__()` method, so all this logic should be factored out to a common
class.

P.S.: suggestions for the name of this new common class are welcome.

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

Django

unread,
Dec 14, 2015, 12:59:16 PM12/14/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by sir-sigurd):

* status: new => assigned
* owner: nobody => sir-sigurd
* needs_docs: => 0
* needs_tests: => 0
* needs_better_patch: => 0


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

Django

unread,
Dec 14, 2015, 6:22:00 PM12/14/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | 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 timgraham):

* stage: Unreviewed => Accepted


Comment:

Maybe a name like `CPointerBase`?

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

Django

unread,
Dec 15, 2015, 12:27:28 AM12/15/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | 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):

`CPointerBase` looks better than my `PtrBase`.

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

Django

unread,
Dec 15, 2015, 4:30:24 AM12/15/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | 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 sir-sigurd):

* has_patch: 0 => 1


Comment:

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

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

Django

unread,
Dec 17, 2015, 7:28:18 PM12/17/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | Owner: sir-
Type: | sigurd
Cleanup/optimization | Status: assigned
Component: GIS | Version: master
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 timgraham):

* stage: Accepted => Ready for checkin


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

Django

unread,
Dec 21, 2015, 10:12:24 AM12/21/15
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: sir-sigurd | 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: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* needs_better_patch: 0 => 1
* stage: Ready for checkin => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/25938#comment:6>

Django

unread,
Dec 6, 2016, 1:53:22 AM12/6/16
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
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 Sergey Fedoseev):

* needs_better_patch: 1 => 0


Comment:

[https://github.com/django/django/pull/7660 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/25938#comment:7>

Django

unread,
Dec 15, 2016, 5:00:35 PM12/15/16
to django-...@googlegroups.com
#25938: deduplicate GEOSBase and GDALBase
-------------------------------------+-------------------------------------
Reporter: Sergey Fedoseev | Owner: Sergey
Type: | Fedoseev
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 Tim Graham <timograham@…>):

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


Comment:

In [changeset:"b01ceae843c74062460fdf2f8e9fd3c5cc75ea45" b01ceae8]:
{{{
#!CommitTicketReference repository=""
revision="b01ceae843c74062460fdf2f8e9fd3c5cc75ea45"
Fixed #25938 -- Factored out CPointerBase base class for
GEOSBase/GDALBase.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25938#comment:8>

Reply all
Reply to author
Forward
0 new messages