toladata / TolaActivity

Workflow, visualizations and data services for managing NGO projects and programs
11 stars 20 forks source link

Add some field validations in disaggregations #1094

Closed jefmoura closed 6 years ago

jefmoura commented 6 years ago

Purpose

We shouldn't allow the user to delete disaggregation types if there are disaggregation labels, otherwise, the object will lose the connection with the indicator and will a useless data. The same will happen with disaggregation values if we delete the labels. We'd lose the connection and the data won't have sense.

Approach

Added protect deletion to follow the rules:

Furter Info

Related ticket: https://github.com/Humanitec/ActivityAPI/issues/261