techmatters / terraso-backend

A Django project that powers the backend of Terraso platform.
GNU Affero General Public License v3.0
21 stars 4 forks source link

feat: refactor soil id endpoints to return more specific error messages #1345

Closed shrouxm closed 2 months ago

shrouxm commented 2 months ago

Description

Refactors the soil ID algorithm endpoints to always return successfully but provide a specific reason if no results are returned. For now we will not be more granular than saying either "data unavailable" or "algorithm failed", since that would require refactoring the actual algorithm to return more useful output.'

Related to https://github.com/techmatters/terraso-product/issues/895