Skip to content

Add a Database Reco Counts report command - #2459

Merged
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/fix-one-open-issue
Aug 14, 2026
Merged

Add a Database Reco Counts report command#2459
adamtheturtle merged 1 commit into
mainfrom
adamtheturtle/fix-one-open-issue

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Add vws get-database-reco-counts-report, which requests a per-target recognition counts report for a month, waits for Vuforia to generate it, and writes the CSV to stdout or to a path given by --output.

The report is a table rather than a dataclass, so the command writes the raw CSV instead of dumping YAML as the sibling report commands do; it waits by default in the style of wait-for-target-processed, because the download 404s until the report is ready, and --no-wait opts out and shows the presigned URL instead. --month takes a YYYY-mm value and defaults to the current month, and --database-id is a new required option (with a VUFORIA_DATABASE_ID environment variable) because this endpoint needs it and no other does.

Ten new tests run against vws-python-mock and cover a successful report, a report which is not ready immediately, --output, --no-wait, the previous month, a malformed month, an out-of-range month, a mismatched database ID and a timeout; _error_handling.py gains messages for the new download and timeout errors, and the help regression files and a news fragment are updated.

Closes #2441. Closes #2442, which is a duplicate of #2441.

🤖 Generated with Claude Code

Add ``vws get-database-reco-counts-report``, which requests a per-target
recognition counts report for a month, waits for Vuforia to generate it,
and writes the CSV to stdout or to a path given by ``--output``.

The report is a table rather than a dataclass, so the command writes the
raw CSV instead of dumping YAML as the sibling report commands do.  It
waits for the report by default, in the style of
``wait-for-target-processed``, because the download 404s until Vuforia
has finished generating the report; ``--no-wait`` opts out and shows the
presigned URL instead.

``--month`` takes a ``YYYY-mm`` value and defaults to the current month.
``--database-id`` is needed by this endpoint and no other, so it is a new
required option with a ``VUFORIA_DATABASE_ID`` environment variable
alongside the credential options.

Closes #2441.
Closes #2442.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@adamtheturtle
adamtheturtle force-pushed the adamtheturtle/fix-one-open-issue branch from 6c09ac6 to 4d3297d Compare August 14, 2026 14:59
@adamtheturtle
adamtheturtle merged commit 73a45aa into main Aug 14, 2026
13 checks passed
@adamtheturtle
adamtheturtle deleted the adamtheturtle/fix-one-open-issue branch August 14, 2026 15:03
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

Successfully merging this pull request may close these issues.

Add a Database Reco Counts report command Add a Database Reco Counts report command

1 participant