Add a Database Reco Counts report command - #2459
Merged
Merged
Conversation
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
force-pushed
the
adamtheturtle/fix-one-open-issue
branch
from
August 14, 2026 14:59
6c09ac6 to
4d3297d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-waitopts out and shows the presigned URL instead.--monthtakes aYYYY-mmvalue and defaults to the current month, and--database-idis a new required option (with aVUFORIA_DATABASE_IDenvironment variable) because this endpoint needs it and no other does.Ten new tests run against
vws-python-mockand 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.pygains 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