ai-cfia / ai-cfia/ailab-datastore

[fertiscan] As a dev, I want to receive a proper error message when deleting a non-existent inspection

Aberta
#253 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
3
Forks
0
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## Description

**Context**
When attempting to delete an inspection that was already deleted, the system returns a database error:

```
Inspector is not the creator of inspection
CONTEXT: PL/pgSQL function delete_inspection(uuid,uuid) line 11 at RAISE
```

**Problem Statement**
Instead of this database error, the system should return such error message as "Inspection not found."

## Acceptance Criteria

- Attempting to delete a non-existent inspection should return an "Inspection not found" error.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.