Skip to content

v2.1.2

  • v2.1.2
  • bd578ff
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
  • Choose a tag to compare

  • v2.1.2
  • bd578ff
  • Choose a tag to compare

  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
@lucyking140 lucyking140 tagged this 02 Oct 21:08
- Adds a `clientlib-python` header to the newer `datacommons_client`
client library
- This does not include the older `datacommons` client because it makes
calls to the V1 API, which will be deprecated soon.
- These are used in Mixer's usage logs
- The header accepts an optional `surface_header_value` tag in the
observation endpoints so that other DC surfaces that make calls to the
client library (MCP server, DataGemma, etc.) can be tracked.
- Theoretically, others could also pass in other values for this tag if
they make calls directly to the python client library. Like with custom
DCs, I plan to accept that this might happen in rare cases because these
usage logs will be aggregated over many queries.

Tests:
- Checked with local mixer that the metadata is correctly updated in the
`clientlib-python` case and when we pass in `metadata_source`
- Modified current test suite to include this header in the expected
response.
Assets 2
Loading