azavea / temperate

Climate app developed in partnership with ICLEI
Apache License 2.0
0 stars 0 forks source link

Action wizard "Risk" option causes duplicate key error if an Action for that Risk already exists #499

Closed rmartz closed 6 years ago

rmartz commented 6 years ago

Overview

Users may not be aware that they are only permitted one action for a risk, and attempt to change their Action's "Risk" to something pertinent. Currently this causes a duplicate key error, https://rollbar.com/Azavea/ClimateChange/items/113/. We should provide the user with friendly feedback.

Questions

jcahail commented 6 years ago

I think it would be simplest to not allow users to change the Risk for an Action after it's been created.

alexelash commented 6 years ago

We could remove the input here entirely as this is an issue, per @jcahail's comment.

KlaasH commented 6 years ago

Field removed in #580.