edgi-govdata-archiving/web-monitoring-processing

Integrate scripts/annotations_import and scripts/ia_healthcheck into scripts/wm

Mr0grog opened this issue · 2 comments

This is a follow-on to #528. The main body of all our scripts now live in web_monitoring/cli/* and scripts/* just serves as entry-points to them. We should also consolidate all the various scripts into commands under wm (except the diffing server, which should stay in a separate universe under wm-diffing-server since it really is quite distinct).

We currently have:

  • wm import ia <url>
  • wm import ia-known-pages

For ia_healthcheck, I’m thinking we could add wm ia-healthcheck, but I’m also wondering if we should instead reorganize under a top-level ia command:

  • wm ia import
  • wm ia import-known-pages
  • wm ia healthcheck

For annotations_import, I think we should rename the import bit and keep that term reserved for importing pages & versions, so maybe have wm annotations create. Otherwise we could do wm import annotations, but that feels confusing alongside wm import <source> like we have today, and would be orphaned if we re-organized around wm ia instead as suggested above.

/cc @danielballan

Thinking I might drop docopt in favor of the built-in argparse while doing this.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in seven days if no further activity occurs. If it should not be closed, please comment! Thank you for your contributions.