You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #990, we discuss adding most fields in flex-model and flex-context to the data model, in order to give users less API dev work and more power to review and change important settings in the FlexMeasures UI.
The first step should be the flex context fields for pricing, because they are straightforward: They already represent a sensor (e.g. a market) and nothing else, and they are one interesting setting for users to switch.
Also, the list of inflexible device sensors is interesting - which sensors within an asset (or outside of it? - I'd favor only suggesting a list of offspring) make sense to take into account?
In essence, these fields should be made into data model fields (or in the case of inflexible-device-sensors, an m:n relationship?):
consumption-price-sensor
production-price-sensor
inflexible-device-sensors
And for each, the scheduling logic should get updates:
These fields can be missing from the schema that comes in via the API
As fallback, new fields on the model (added here) are allowed.
The text was updated successfully, but these errors were encountered:
Add these fields to the asset data model. Inflexible sensors are a backward relationship, as the one-to-many relationship leads to a field on the sensor table!
Add property or function on asset class, which searches upwards on the asset tree for these fields
Adapt scheduling logic (/trigger endpoint and/or _scheduling_job()?) to accept that these fields might not come via API but can be looked up on model
Show fields on asset page
Enable choosing values (sensors) for these fields on the asset page
In #990, we discuss adding most fields in flex-model and flex-context to the data model, in order to give users less API dev work and more power to review and change important settings in the FlexMeasures UI.
The first step should be the flex context fields for pricing, because they are straightforward: They already represent a sensor (e.g. a market) and nothing else, and they are one interesting setting for users to switch.
Also, the list of inflexible device sensors is interesting - which sensors within an asset (or outside of it? - I'd favor only suggesting a list of offspring) make sense to take into account?
In essence, these fields should be made into data model fields (or in the case of
inflexible-device-sensors
, an m:n relationship?):consumption-price-sensor
production-price-sensor
inflexible-device-sensors
And for each, the scheduling logic should get updates:
The text was updated successfully, but these errors were encountered: