Skip to content

docs: mention word/character count stats in locale report description - #1295

Merged
Sven Dunemann (forelabs) merged 2 commits into
mainfrom
agent/STRINGS-3520-d07d56
Sep 24, 2026
Merged

Sven Dunemann (forelabs) merged 2 commits into
mainfrom
agent/STRINGS-3520-d07d56

Conversation

@junior-ai-bot

@junior-ai-bot junior-ai-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Updated the summary and description for GET /projects/{project_id}/report/locales in paths/reports/locales/index.yaml to explicitly mention that the endpoint returns word count, character count, and translation completion statistics per locale — and, via the existing tag query parameter, per job.

Why

An Atlas agent session tried 10 distinct search queries (e.g. "word count", "job word count statistics") against the Strings OpenAPI index and concluded the API doesn't expose word counts for jobs, then fell back to a manual workaround. In reality, GET /projects/{project_id}/report/locales already returns source_word_count, word_count, word_count_unverified, and word_count_missing per schemas/locale_report.yaml, and can be scoped to a single job via its job tag (e.g. job-5816D203) using the existing tag parameter. The endpoint's spec text just never mentioned any of "word", "count", "statistics", or "translation", so term-based search scored it 0 against every plausible query.

This change adds those terms to the summary/description so the endpoint is discoverable by both human API consumers and term-based search, without changing any request/response schema.

Test plan

  • python3 -c "import yaml; yaml.safe_load(open('paths/reports/locales/index.yaml'))" — valid YAML
  • npx swagger-cli validate main.yaml — main.yaml is valid
  • No functional/schema changes — no additional tests applicable (docs-only change)

STRINGS-3520

Co-Authored-By: junior-dev

🤖 Generated with Claude Code

…scription

GET /projects/{project_id}/report/locales returns per-locale (and,
via the tag parameter, per-job) word/character count and translation
statistics, but the summary/description never mentioned these fields,
making the endpoint unsearchable for queries like "job word count".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

No changes to report, but the specs are different.
Run 'oasdiff diff' to see structural differences.

The compare-output CI check diffs the checked-in doc/compiled.json
against a freshly bundled main.yaml. The previous commit updated the
summary/description text in paths/reports/locales/index.yaml but did
not regenerate the bundle, so the check failed. Regenerate it via
`npx swagger-cli bundle -t json -w 300 main.yaml`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@junior-ai-bot junior-ai-bot Bot changed the title STRINGS-3520 - mention word/character count stats in locale report description docs: mention word/character count stats in locale report description Sep 24, 2026
@forelabs
Sven Dunemann (forelabs) merged commit 423f1cb into main Sep 24, 2026
14 checks passed
@forelabs
Sven Dunemann (forelabs) deleted the agent/STRINGS-3520-d07d56 branch September 24, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant