Gizra / negawatt-server

negawatt data server
http://negawatt-dev.gizra.com
5 stars 1 forks source link

Fix meters' titles #726

Open shahardo opened 9 years ago

shahardo commented 9 years ago

Today IEC meter title is the contract-id and meter-serial. Should be:

  1. If there is a description to the meter, use description for title.
  2. If there is an address to the meter, use the address.
  3. If none available, use the contract and meter ids as today.
    • [x] Fix scraper when creating meters.
    • [ ] Run update script on the DB to update existing meters.
    • [x] Fix RESTful, to identify meter according to contract and meter ID, and not by title.
niryariv commented 9 years ago

@shahardo which milestone?

shahardo commented 9 years ago

The next one - 0.6.3?

niryariv commented 9 years ago

I think you'd want the address even when you do have description, no?

shahardo commented 9 years ago

No. It'll be too long for chart title

bitamar commented 9 years ago

We'll need to run drush update-meter-titles on the live once.

shahardo commented 9 years ago

Should run update script on live database