datatracker icon indicating copy to clipboard operation
datatracker copied to clipboard

add-old-drafts-from-archive script is outdated

Open jennifer-richards opened this issue 2 years ago • 1 comments

Describe the issue

The bin/add-old-drafts-from-archive.py script is outdated and not compatible with Python 3 - it still uses the Python 2 print statement at least. This should be updated if it's still in use. In addition to bringing it forward to Python 3 syntax, it'll need to be updated to use timezone-aware datetimes.

Code of Conduct

jennifer-richards avatar Sep 20 '22 19:09 jennifer-richards

It has not been run since the py3 transition, clearly, but it is a utility that we need to maintain - it should probably be moved to be a management command, and it needs review and updating to match current expectations:

  • It should look for and use xml for parsing authors, etc. when available.
  • It should be looking in the archive, not the repository. (We have some cleanup to do around redundant names of paths into those two things).

In the short term, it would be good to commit a change that would stub out the content of this in case someone tried to run it without looking.

rjsparks avatar Sep 21 '22 14:09 rjsparks