Past due
Milestone
expired on Jul 15, 2016
Sync
At some point in time, a celery task will need to write results of the scraper to blocpower's utilityservice. This task will take the data provided by a scraper as input and return nothing. Testing will be covered by integration testing, so there are no unit tests for this milestone.
The overall workflow will look like this:
- Update the account.
- For each meter:
- For each meterid of the meter:
- If the meterid exists on blocpower:
- Update the meter.
- Update the meter_id's id.
- If the meterid exists on blocpower:
- If the meter does not have an id:
- Create the meter on blocpower.
- Update the meter_id for each of the line items and meter ids.
- For each meterid:
- If the meterid does not have an id property:
- Create the meter id on blocpower.
- If the meterid does not have an id property:
- For each lineitem that takes place after the last time the account was scraped:
- Create the line item on blocpower.
- For each meterid of the meter:
- Set the account state and last scraped datetime on blocpower.
All issues for this milestone are closed. You may close this milestone now.