Skip to content

Conversation

@cyiallou
Copy link
Contributor

Deleted code that has been moved to another repo
(frequenz-lib-notebooks).

Deleted code that has been moved to another repo
(`frequenz-lib-notebooks`).

Signed-off-by: cyiallou - Costas <[email protected]>
Copilot AI review requested due to automatic review settings July 22, 2025 21:59
@cyiallou cyiallou requested a review from a team as a code owner July 22, 2025 21:59
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests labels Jul 22, 2025
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 removes code that has been moved to another repository (frequenz-lib-notebooks). The changes involve deleting functionality related to fetching data and extracting state durations and alert records from the reporting module.

  • Removed test cases and test function for extract_state_durations functionality
  • Deleted state duration extraction functions and helper methods from the reporting module
  • Updated release notes to document the code removal

Reviewed Changes

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

File Description
tests/test_frequenz_reporting.py Removed comprehensive test cases and test function for state duration extraction
src/frequenz/reporting/_reporting.py Deleted state duration extraction functions and related helper methods
RELEASE_NOTES.md Updated to document the removal of moved functionality
Comments suppressed due to low confidence (7)

src/frequenz/reporting/_reporting.py:7

  • The import from itertools import groupby is no longer used after removing the state duration extraction functions and should be removed to avoid unused imports.
from datetime import datetime, timedelta

src/frequenz/reporting/_reporting.py:10

  • The import from frequenz.client.reporting._types import MetricSample is no longer used after removing the state duration extraction functions and should be removed to avoid unused imports.
from frequenz.client.reporting import ReportingApiClient

tests/test_frequenz_reporting.py:4

  • The import from datetime import datetime is no longer used after removing the state duration extraction tests and should be removed to avoid unused imports.
"""Tests for the frequenz.reporting package."""

tests/test_frequenz_reporting.py:5

  • The import from typing import Any is no longer used after removing the state duration extraction tests and should be removed to avoid unused imports.
import pytest

tests/test_frequenz_reporting.py:7

  • The import from frequenz.client.reporting._types import MetricSample is no longer used after removing the state duration extraction tests and should be removed to avoid unused imports.
from frequenz.reporting import delete_me

@cyiallou cyiallou added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jul 22, 2025
@cyiallou cyiallou requested a review from cwasicki July 22, 2025 22:01
@cyiallou
Copy link
Contributor Author

Follow up PR from #58 (comment)

@cyiallou cyiallou added this pull request to the merge queue Jul 23, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 4ab7289 Jul 23, 2025
5 of 6 checks passed
@cyiallou cyiallou deleted the task/cleanup branch July 23, 2025 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants