[Django] #22812: Reformat and restructure lookup API documentation

34 views
Skip to first unread message

Django

unread,
Jun 11, 2014, 1:43:21 PM6/11/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
--------------------------------------+----------------------------
Reporter: jorgecarleitao | Owner: jorgecarleitao
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+----------------------------
Currently the API documentation docs/ref/models/custom-lookups.txt has
some formatting issues, and mixes the howto with the API references, see
https://docs.djangoproject.com/en/dev/ref/models/custom-lookups/

Here I'm proposing to separate these two concepts:

1. Adding a new howto - docs/howto/custom-lookups.txt - for custom
lookups, which includes section
https://docs.djangoproject.com/en/dev/ref/models/custom-lookups/#a-simple-
lookup-example to section https://docs.djangoproject.com/en/dev/ref/models
/custom-lookups/#how-django-determines-the-lookups-and-transforms-which-
are-used with potential improvements.

2. Renaming "custom-lookups.txt" to "lookups.txt" in ref/models to be the
documentation of lookups API, with references for the public interfaces of
`RegisterLookupMixin`, `Lookup`, `Transform`.

Optionally, because the BuiltIn lookups are part of this new API, they
could be documented in 2., but this may not be possible due to backward
compatibility of documentation urls (devs?)

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

Django

unread,
Jun 14, 2014, 6:14:12 AM6/14/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao

Cleanup/optimization | Status: new
Component: Documentation | 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 EvilDMP):

* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0


Comment:

If the structure of the documentation needs to change then it needs to
change - we don't need to worry too much about URLs in such a case.

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

Django

unread,
Jun 14, 2014, 6:15:22 AM6/14/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao
Cleanup/optimization | Status: new
Component: Documentation | Version: master
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 EvilDMP):

* easy: 0 => 1


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

Django

unread,
Jun 14, 2014, 3:36:57 PM6/14/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao
Cleanup/optimization | Status: new
Component: Documentation | Version: master
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 jorgecarleitao):

* has_patch: 0 => 1


Comment:

Pull request here: https://github.com/django/django/pull/2807

At some point we need to discuss what more can be merged on
ref/models/lookups. E.g. could make sense to add the builtin lookups
there.

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

Django

unread,
Jun 19, 2014, 9:05:10 AM6/19/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao
Cleanup/optimization | Status: new
Component: Documentation | Version: master
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 timo):

* needs_better_patch: 0 => 1


Comment:

I think it would be better not to move the built-in lookups for the reason
you mentioned.

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

Django

unread,
Jul 8, 2014, 4:16:40 AM7/8/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao
Cleanup/optimization | Status: new
Component: Documentation | Version: master
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 jorgecarleitao):

* needs_better_patch: 1 => 0


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

Django

unread,
Jul 8, 2014, 8:13:28 PM7/8/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao
Cleanup/optimization | Status: closed
Component: Documentation | 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: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

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


Comment:

In [changeset:"8780849da06f866720284d2c61d0aae5890e92ae"]:
{{{
#!CommitTicketReference repository=""
revision="8780849da06f866720284d2c61d0aae5890e92ae"
Fixed #22812 -- Refactored lookup API documentation.

Thanks Anssi and Tim for reviews.
}}}

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

Django

unread,
Jul 8, 2014, 8:13:55 PM7/8/14
to django-...@googlegroups.com
#22812: Reformat and restructure lookup API documentation
-------------------------------------+-------------------------------------
Reporter: jorgecarleitao | Owner:
Type: | jorgecarleitao
Cleanup/optimization | Status: closed
Component: Documentation | 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: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"e548328851ee1e0d030ad3625c5e8a5315a12ed4"]:
{{{
#!CommitTicketReference repository=""
revision="e548328851ee1e0d030ad3625c5e8a5315a12ed4"
[1.7.x] Fixed #22812 -- Refactored lookup API documentation.

Thanks Anssi and Tim for reviews.

Backport of 8780849da0 from master
}}}

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

Reply all
Reply to author
Forward
0 new messages