Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status page by source #1022

Open
wants to merge 91 commits into
base: main
Choose a base branch
from
Open

Status page by source #1022

wants to merge 91 commits into from

Conversation

nrozanov
Copy link
Contributor

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 #941


  • 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 other license that is incompatible with FlexMeasures

GustaafL added 30 commits December 19, 2023 17:14
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
nrozanov and others added 7 commits March 19, 2024 20:12
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
…uler types

Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
@Flix6x
Copy link
Contributor

Flix6x commented Mar 26, 2024

@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.)

@nhoening
Copy link
Contributor

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.

Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
@nhoening nhoening added this to the 0.21 milestone Mar 27, 2024
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Just a few comments, not sure I am done with the complete review, but I can't go on right now. Hope this helps you to continue.

documentation/changelog.rst Outdated Show resolved Hide resolved
flexmeasures/data/services/sensors.py Show resolved Hide resolved
flexmeasures/data/services/sensors.py Outdated Show resolved Hide resolved
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Let's discuss a bit offline, also.

flexmeasures/data/services/sensors.py Outdated Show resolved Hide resolved
flexmeasures/data/services/sensors.py Outdated Show resolved Hide resolved
flexmeasures/ui/crud/assets.py Outdated Show resolved Hide resolved
flexmeasures/data/services/sensors.py Show resolved Hide resolved
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
flexmeasures/data/services/sensors.py Outdated Show resolved Hide resolved
documentation/changelog.rst Outdated Show resolved Hide resolved
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
@Flix6x
Copy link
Contributor

Flix6x commented Apr 7, 2024

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.

… data

Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
Signed-off-by: Nikolai Rozanov <nickolay.rozanov@gmail.com>
@nrozanov nrozanov requested a review from Flix6x April 8, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants