geosolutions-it / gfdrr-det

Data Exploration Tool
https://waffle.io/geosolutions-it/gfdrr-det
GNU General Public License v3.0
3 stars 0 forks source link

Vulnerabilities API #114

Open giohappy opened 6 years ago

giohappy commented 6 years ago

REST APIs to list, filter and obtain details for vulnerability and fragility functions.

Filtering

Details for "vulnerability functions"

show vulnerability detail info, with the following fields:

(talic fields are dervied)

Details for "fragility functions"

(talic fields are dervied)

Details for "damage to loss functions"

ricardogsilva commented 6 years ago

@giohappy please take a look at the database record obtained from executing:

SELECT *
FROM vulnerabilities.ff_table
WHERE id=11;

Note how the par_names column is empty but the im_range column shows values. The other columns that we are using for showing the function parameters (med_par_value, ub_par_value, lb_par_value) are all empty. I'm not sure if this is a bug in the data or expected behavior.

ricardogsilva commented 6 years ago

Another question that is not clear for me:

giohappy commented 6 years ago

@ricardogsilva yes, ff_table entries are for the most part with empty params. I don't have the domain knowledge to know how to treat and show them. We will leave those fields empty, waiting for their feedbacks...

Correct, I recorded the source table but the field should be named only with the field name.