#18930: Website docs builder should clean to get rid of old docs
-------------------------------------+-------------------------------------
     Reporter:  ubernostrum          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Djangoproject.com    |                  Version:  1.4
  Web site                           |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by aaugustin):

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


Comment:

 I wiped the Document table as well as the xapian index in production.

 Then I did a single rebuild of the docs, and I tried adding a unique index
 on (version, path).

 It failed because of duplicates, which appear to be pages that have been
 converted into directories at some point (ie. topics/auth.txt =>
 topics/auth/index.txt).

 {{{
 >>> from docs.models import *
 >>> from django.db.models import *
 >>> sorted(Document.objects.values_list('release',
 
'path').annotate(count=Count('pk')).filter(count__gt=1).values_list('release__version',
 'path', 'count'))
 [(u'1.5', u'topics/auth', 2),
  (u'1.5', u'topics/testing', 2),
  (u'dev', u'ref/class-based-views', 2),
  (u'dev', u'ref/contrib/gis/install', 2),
  (u'dev', u'topics/auth', 2),
  (u'dev', u'topics/class-based-views', 2),
  (u'dev', u'topics/testing', 2)]
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18930#comment:2>
Django <https://code.djangoproject.com/>
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to