feat: Add publisher domain metrics - #100
Open
emmy-devop wants to merge 1 commit into
Open
Conversation
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.
Requested by @wagnercosta
What
https://api.asknews.dev/openapi.jsonon 2026-08-04.distributionmethods for publisher metric totals and daily timeseries.Contract delta
0.29.2 -> 0.29.2(DEV currently has 58 operations and 278 schemas).GET /v1/distribution/stats/metrics,GET /v1/distribution/stats/metrics_timeseries.DomainMetricsResponse,DomainMetricsDayItem,DomainMetricsTimeWindowResponse.Version
The source package remains
0.13.56; versions andCHANGELOG.mdare release-managed. Thisfeat:commit is expected to produce0.14.0when merged.How I tested
uv run --frozen pytest tests/api/test_distribution.py -q(6 passed)uv run --frozen pytest -q(74 passed)ruff check asknews_sdkruff format --checkon all changed Python filesmypy asknews_sdk/api/distribution.py asknews_sdk/dto/distribution.pygit diff --checkFull-repository mypy was also inspected and still reports three pre-existing errors in unrelated
dto/chat.pyandapi/wiki.pycode.Risk / rollback
Merging to
maintriggers release automation and publishes a newasknewsrelease to PyPI. These two operations are present in DEV but not yet in the production gateway contract, so merge timing should be coordinated with the API rollout. OAuth callers must request the existingdistributionscope explicitly; default scopes were intentionally left unchanged for compatibility. Roll back by reverting this commit.