Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reporting and investigating related to cdh web 4.0 content and functionality #443

Open
4 of 6 tasks
rlskoeser opened this issue Jul 23, 2024 · 3 comments
Open
4 of 6 tasks
Assignees

Comments

@rlskoeser
Copy link
Contributor

rlskoeser commented Jul 23, 2024

  • report on attachments
  • report on migrated content blocks
  • find duplicated accounts (user/profile)
  • generate list of blog post redirects
  • tag management - where? uppercase/lowercase?
  • crawl site and report 404s etc
@rlskoeser
Copy link
Contributor Author

Couldn't figure out how to identify non-empty attachment blocks purely by query, so I wrote a little script to generate a report. Saving the script as a private gist in case we need to reference/re-run.

Going to start adding reported data as tabs in a google spreadsheet

@rlskoeser
Copy link
Contributor Author

Used django queryset to identify duplicate Person objects (only checking last name, possibly collapsing); added report to spreadsheet.

from cdhweb.people.models import Person
from django.db.models import Count
import csv
outfile = open('duplicate_persons.csv', 'w')
c = csv.DictWriter(outfile, fieldnames=['first_name', 'last_name', 'count'])
c.writeheader()
for p in Person.objects.order_by('last_name').values('first_name', 'last_name').annotate(count=Count('last_name')).filter(count__gt=1):
    c.writerow(p)

outfile.close()```

@rlskoeser
Copy link
Contributor Author

Adapted my attachment check to look for pages with the old 'migrated' content block; saved script as a github gist; added another tab to the spreadsheet

@rlskoeser rlskoeser self-assigned this Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant