flexmeasures icon indicating copy to clipboard operation
flexmeasures copied to clipboard

Status page by source

Open nrozanov opened this issue 3 months ago • 3 comments

Description

  1. Split status by data source
  2. Change staleness calculation for Forecaster / Scheduler sources (staleness should be calculated as difference between now and max event start time)

Look & Feel

  1. "//status/" page should return source key as well
  2. UI status page should include source

How to test

Is tested in test_sensor_data_schema.py (test_get_status_multi_source) Can be tested the following way - add data from several sources to some sensor. Go to its status page and check that statuses are split by this source column + scheduler/forecaster statuses are calculated differently

Further Improvements

Related Items

Follow up for https://github.com/FlexMeasures/flexmeasures/pull/941


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

nrozanov avatar Mar 26 '24 12:03 nrozanov

@nrozanov if you edit this PR and set its base to 927-status-page, the diff should become a lot more to the point, making a review easier. (Once that base branch gets merged, and that branch will automatically get closed, this PR will get automatically rebased on main again.)

Flix6x avatar Mar 26 '24 16:03 Flix6x

Maybe that was based on my bad advice, forgot that the original branch is still open. I'm releasing now, so we can merge the other one in a bit.

nhoening avatar Mar 26 '24 16:03 nhoening

I encountered the issue again where the status page falsely reports that no data is available from a forecaster data source type (see bottom right below). There is data from this forecaster for 22 June 2023.

image

Likewise for scheduler data source types (data is available for 18 June 2023):

image

Maybe we can take a look together tomorrow.

Flix6x avatar Apr 07 '24 09:04 Flix6x