flexmeasures icon indicating copy to clipboard operation
flexmeasures copied to clipboard

Default data source setting for computed data

Open nhoening opened this issue 1 year ago • 3 comments

The default data source, for data made by scripts, is now "Seita".

This is not what users want, of course. It should be "FlexMeasures" per default, and ideally a config setting, which can easily be set to the name of the Energy Service Company (ESCo) running FlexMeasures.

Issue #506 is of interest here, too. But their implementation should not interfere, I expect.

As for migrating existing data, I'm not sure we have a good solution. Usually, I'd expect existing users also to use their own company name as source. And for our own data, we'd like to keep "Seita", actually. I'd mention in the release notes that people might want to run an update statement, should they want to rename. Probably on the data source itself.

nhoening avatar Sep 21 '22 20:09 nhoening

Places with hard-coded "Seita" data source for scheduling:

  • flexmeasures/api/v1_3/implementations.py l. 147f
  • flexmeasures/api/v1_3/tests/test_api_v1_3.py l. 93
  • flexmeasures/api/v3_0/sensors.py l. 521
  • flexmeasures/api/v3_0/tests/test_sensor_schedules.py l. 71
  • flexmeasures/data/services/scheduling.py l. 148
  • flexmeasures/data/tests/test_scheduling_jobs.py l. 44
  • flexmeasures/data/tests/test_scheduling_jobs_fresh_db.py l. 41 & 61

That's probably all for that use case. Best way to start is to change what make_schedule (in services/scheduling.py) uses, then clean up what falls apart elsewhere.

The data source for forecasting scripts is also something with "Seita". For these, I suggest grepping the source code.

nhoening avatar Sep 21 '22 20:09 nhoening