Skip to content

Conversation

@cyiallou
Copy link
Contributor

  • Includes various naming updates that come with the new reporting client version.
  • Replaced deprecated MetricSample imports.
  • Updated tests to use string-based component IDs and numeric state values due to MetricSample now being stronly typed.

- Includes various naming updates that come with the new reporting
  client version.
- Replaced deprecated `MetricSample` imports.
- Updated tests to use string-based component IDs and numeric state
  values due to `MetricSample` now being stronly typed.

Signed-off-by: cyiallou - Costas <[email protected]>
Copilot AI review requested due to automatic review settings June 25, 2025 12:01
@cyiallou cyiallou requested a review from a team as a code owner June 25, 2025 12:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR supports secret-based signing for requests to the reporting client by updating naming conventions and type usages.

  • Migrates MetricSample imports from the deprecated module and updates usage accordingly.
  • Converts component_id values in tests from numeric to string and updates state value types from string to numeric.
  • Updates API calls in the reporting module to reflect new parameter names (start_time/end_time) and method names.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tests/test_frequenz_reporting.py Updated tests to reflect new MetricSample type conversions and value changes.
src/frequenz/reporting/_reporting.py Updated MetricSample import and replaced deprecated API calls with new ones.
pyproject.toml Updated dependency version for frequenz-client-reporting.
RELEASE_NOTES.md Revised release notes to document the updated dependency version.

@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Jun 25, 2025
Copy link

@stefan-brus-frequenz stefan-brus-frequenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyiallou cyiallou added this pull request to the merge queue Jun 25, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 2596106 Jun 25, 2025
5 checks passed
@cyiallou cyiallou deleted the task/update-reporting-client branch June 25, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants