-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional features and functionality:
based on issue inasafe/inasafe-realtime#35 Celery: - Limit prefetch multiplier explicitly to 1 (avoid hanging worker) Earthquake: - Add MMI Output FileField - Add download button for MMI Output zip - Auto zoom to first earthquake in the table Flood: - Fix signals to recalculate total affected population and flooded RW - Add Data Source Field, since it needs to support PetaBencana - Add code branching to handle old hazard data and new PetaBencana - Add download button for Hazard File and Impact Layers - Change download button icon to follow Earthquake pattern - Auto zoom to first flood in the table Ash: - Add Impact Files FileField - Add download button for Impact Files zip - Change download button icon to follow Earthquake pattern - Auto zoom to first ash event in the table
- Loading branch information
Showing
24 changed files
with
563 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
django_project/realtime/migrations/0026_auto_20170209_1905.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('realtime', '0025_auto_20170206_2046'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='ash', | ||
name='impact_files', | ||
field=models.FileField(help_text=b'Impact files processed zipped', upload_to=b'ash/impact_files/%Y/%m/%d', null=True, verbose_name=b'Impact Files', blank=True), | ||
preserve_default=True, | ||
), | ||
migrations.AddField( | ||
model_name='earthquake', | ||
name='mmi_output', | ||
field=models.FileField(help_text=b'MMI related file, layers, and data, zipped.', upload_to=b'earthquake/mmi_output', null=True, verbose_name=b'MMI related file zipped', blank=True), | ||
preserve_default=True, | ||
), | ||
migrations.AlterField( | ||
model_name='ash', | ||
name='eruption_height', | ||
field=models.IntegerField(default=0, verbose_name=b'Eruption height in metres'), | ||
preserve_default=True, | ||
), | ||
] |
20 changes: 20 additions & 0 deletions
20
django_project/realtime/migrations/0027_flood_data_source.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
from __future__ import unicode_literals | ||
|
||
from django.db import models, migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('realtime', '0026_auto_20170209_1905'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='flood', | ||
name='data_source', | ||
field=models.CharField(default=None, max_length=255, blank=True, help_text=b'The source of the hazard data used for analysis', null=True, verbose_name=b'The source of hazard data'), | ||
preserve_default=True, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.