google-code-export / sandy-disaster-recovery

Automatically exported from code.google.com/p/sandy-disaster-recovery
2 stars 2 forks source link

Patch for /trunk/sandy-disaster-recovery/event_db.py #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when deleting a site, delete_handler now calls 
event_db.ReduceNumberOfSitesFromEvent(event_id).

This lowers the num_sites property by 1, giving us a more accurate 
representation of the sites we are handling.

Original issue reported on code.google.com by andy.n.g...@gmail.com on 11 Jan 2013 at 12:05

Attachments:

GoogleCodeExporter commented 9 years ago
Please don't check this in. num_sites is a hack to generate case numbers, this 
will result in duplicate case numbers. Also, any modifications to an Event need 
to use a transactional write.

Original comment by rostovp...@gmail.com on 11 Jan 2013 at 5:44

GoogleCodeExporter commented 9 years ago
Ok to both

Original comment by andy.n.g...@gmail.com on 12 Jan 2013 at 1:06