Skip to content

Instantly share code, notes, and snippets.

@slaporte
Last active November 9, 2018 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaporte/dc5b3847a51b0e40efe8fede41195f76 to your computer and use it in GitHub Desktop.
Save slaporte/dc5b3847a51b0e40efe8fede41195f76 to your computer and use it in GitHub Desktop.

Verifying your imports in Montage

Did you import a list of files into Montage, but do not see the right number of entries in the round? Your source list may have had some improper files names, typos, or moved/deleted files. Here is what you can do:

  • If you need to confirm the import worked at all, look at the Audit Logs (if you have permission) by visiting https://tools.wmflabs.org/montage/v1/logs/audit?round_id=<ROUND ID>&limit=100
  • Get the list of round entries in your browser at https://tools.wmflabs.org/montage/v1/admin/round/<ROUND ID>/entries or download a CSV of the round entries at https://tools.wmflabs.org/montage/v1/admin/round/<ROUND ID>/entries/download
  • Compare your source list against the round entries, using a tool like this.
    • Are any of the filenames malformed in the source list?
    • Have any of the files moved? Been deleted?
    • Do you mistakenly include a full URL?
    • Did you include the wrong file?
  • Import the missing files: You can make a new gist of the missing file names and import them into the (paused) round via admin tools: tools/admin.py --round <ROUND ID> --import_gist <SOURCE LIST>

Related TODOs/feature ideas:

  • Add front-end support to importing new entries into ongoing round (#46) (Backend support is already ready and live)
  • Automatically detect/resolve redirects (#97)
  • Automatically detect deleted files (#30)
  • Automatically detect/resolve full Wikimedia Commons URLs upon import, common unique typos (spaces at the beginning or ends of files), URL encoding issues
  • Add admin panel to compare current round entries against a given source list, for troubleshooting
  • Warn admins and log when files on source list are not successfully imported
  • Make entry list easier for admins to view/download
  • Give coordinators permission to view their campaign/round audit logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment