There are a few bugs on sentry that could be solved with some small changes
1.
invalid input syntax for type uuid: "[]" LINE 3: WHERE forecasts.site_uuid IN ('[]') AND forecasts.timestamp_... ^
this can be could be solved by passing back no data, when no sites have been requested
2.
/sites/pv_actual?site_uuids=[]&UI HTTP/1.1
Should also return not data if list is like this
3.
remove assert len(sites) > 0 if there are no sites, just return no data with 204
There are a few bugs on sentry that could be solved with some small changes
1.
invalid input syntax for type uuid: "[]" LINE 3: WHERE forecasts.site_uuid IN ('[]') AND forecasts.timestamp_... ^
this can be could be solved by passing back no data, when no sites have been requested2.
/sites/pv_actual?site_uuids=[]&UI HTTP/1.1
Should also return not data if list is like this
3. remove
assert len(sites) > 0
if there are no sites, just return no data with 204