SolarArbiter / solarforecastarbiter-api

HTTP API and database schema for the Solar Forecast Arbiter
https://api.solarforecastarbiter.org
MIT License
10 stars 6 forks source link

Recompute reports #222

Closed lboeman closed 4 years ago

lboeman commented 4 years ago

Closes #220 Adds a GET endpoint at /reports/{report_id}/recompute that queues a compute report job. This utilizes the get_user_actions_on_object procedure to check for update permission on the report before queuing the compute, but lack of other permissions could still cause the recompute to fail.

lboeman commented 4 years ago

good after fixing tests. Looks like an update somewhere changed message formats

I'm trying to track this down, but tests actually pass locally. I'm not sure what the issue is there.

alorenzo175 commented 4 years ago

try a pip install -U -r requirements.txt and then test

lboeman commented 4 years ago

Was unable to actually replicate locally, but tests are passing in ci now.