Skip to content

Warn when KPI date ranges contain missing days - #2824

Open
Vietpr wants to merge 4 commits into
FlexMeasures:mainfrom
Vietpr:fix/kpi-missing-days-warning
Open

Vietpr wants to merge 4 commits into
FlexMeasures:mainfrom
Vietpr:fix/kpi-missing-days-warning

Conversation

@Vietpr

@Vietpr Vietpr commented Nov 4, 2026 •

Copy link
Copy Markdown

Description

  • Report whether a selected calendar-day range has missing daily KPI results
  • Show one informational toast while keeping the existing KPI calculation unchanged
  • Added changelog item in documentation/changelog.rst

Look & Feel

When at least one daily KPI has missing results, the asset page shows: "Some selected days have no results. KPIs are calculated only from days where the project was run."

How to test

  • test_kpi_response_reports_whether_selected_days_are_missing
  • test_null_kpi_value_counts_as_a_missing_day
  • test_complete_kpi_range_across_dst_has_no_missing_days
  • test_missing_kpi_days_warning_is_shown_once_and_resets

Further Improvements

None.

Related Items

Closes #1954.


Sign-off

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or another license incompatible with FlexMeasures.

Signed-off-by: Vietpr <phamvietofficial@gmail.com>
Signed-off-by: Vietpr <phamvietofficial@gmail.com>
Signed-off-by: Vietpr <phamvietofficial@gmail.com>
@Vietpr
Vietpr force-pushed the fix/kpi-missing-days-warning branch from 03ba05a to 7e2f8aa Compare November 4, 2026 17:15
Signed-off-by: Vietpr <phamvietofficial@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KPI Averaging Ignores Missing Days (UI/UX Issue)

1 participant