Skip to content

Conversation

@flora-hofmann-frequenz
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings July 9, 2025 14:30
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 updates the client’s reporting layer to match an upstream API change by renaming timestamp and filter parameters.

  • Renamed sampled_at to sample_time in metrics and states iteration and aggregation
  • Updated PBTimeFilter calls to use start_time/end_time instead of start/end
  • Propagated field-name changes in both the iterator and aggregation client

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/frequenz/client/reporting/_types.py Renamed sampled_at accesses to sample_time in iteration and in AggregatedMetric.sample
src/frequenz/client/reporting/_client.py Updated two PBTimeFilter constructions to use start_time/end_time parameters
Comments suppressed due to low confidence (1)

src/frequenz/client/reporting/_types.py:95

  • Add or update unit tests to verify that the new sample_time field is correctly converted for all metric samples, ensuring backward compatibility of timestamp handling.
                ts = sample.sample_time.ToDatetime().replace(tzinfo=timezone.utc)

@github-actions github-actions bot added part:docs Affects the documentation part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) labels Jul 9, 2025
cwasicki
cwasicki previously approved these changes Jul 9, 2025
@flora-hofmann-frequenz flora-hofmann-frequenz added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 9, 2025
@flora-hofmann-frequenz flora-hofmann-frequenz added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 9, 2025
@flora-hofmann-frequenz flora-hofmann-frequenz added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 9, 2025
@flora-hofmann-frequenz flora-hofmann-frequenz added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 9, 2025
@flora-hofmann-frequenz
Copy link
Collaborator Author

Sorry, I need a re-review on this. Only picked up the protobuf dependency when it failed the merge queue...

@flora-hofmann-frequenz flora-hofmann-frequenz added this pull request to the merge queue Jul 10, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 40e6758 Jul 10, 2025
5 checks passed
@flora-hofmann-frequenz flora-hofmann-frequenz deleted the update_report_api branch July 10, 2025 10:50
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: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