bugout-dev / humbug

Get usage metrics and crash reports for your API, library, or command line tool.
Apache License 2.0
38 stars 6 forks source link

Two fixes to the humbug.bash script #93

Closed benjyw closed 2 years ago

benjyw commented 2 years ago

Changes

  1. Order the query results, to ensure that pagination works.
  2. Left-pad the filenames with zeros, so that their lexicographic sort order (as returned by ls) is also their pagination order.

How to test these changes?

I ran BUGOUT_ACCESS_TOKEN=XXX BUGOUT_JOURNAL_ID=YYY ./scripts/humbug.bash and observed the filenames being written, and that the content contained consistently ordered data.

Related issues