Skip to content

Show every source an automation saves under, and derive its type from a named source #2947

Todo

Description

@BelhsanHmida

Context

Since #2804, the AggregatorReporter saves each event under a source whose type follows its inputs: a sum of forecasts is saved as a forecast, under a forecaster-type source, and a sum of meter readings as a report. Everything is saved correctly, but what users see about these sources can mislead them.

1. The source description

A forecaster-type source of the aggregator is described as "FlexMeasures's AggregatorReporter forecaster", while a reporter-type one says "... model". The description should say what computed the data, whatever type the data is saved under.

2. An automation lists one source, but saves under up to three

An automation shows the single source it was set up with, while its runs can save under up to three, one per type (reporter, forecaster, scheduler). For example, two report automations computing the same sum:

  • one set up from the forecaster-type source, which lists that source;
  • one set up from a data generator and config, which got the reporter-type source and lists only that one, while its forecasts go to the forecaster-type source it doesn't list.

The automation's page (and the API) could list every source its runs saved under, or at least the sibling sources of the same data generator and config.

3. Derive an automation's type from its source

When a source is given, the automation's type could follow from what the source stores (a source that stores a reporter → reporting), refusing only an explicit mismatch. Then setting up a report automation from a forecaster-type sum no longer hits the "set the automation type to reporting" refusal at all.

That means dropping load_default="forecasting" for type in AutomationCreationSchema, and falling back to forecasting only when no source is given.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions