anitab-org / anitab-org/mentorship-backend

bug: A user is able to send multiple relation requests to the same member

Aberta
#866 8 comentários 0 reações 1 responsável Reivindicada por @decon-harsh Ver no GitHub
Category: Coding Type: Bug
Linguagem predominante
Python
Estrelas
200
Forks
449
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**Describe the bug**
A user is able to send multiple relation requests to the same member. Ideally, if a request has already been sent to a member, the backend should return that as a message for a duplicate request to the same member.

**To Reproduce**
Steps to reproduce the behavior:

1. Use send request API on the same user multiple times
2. See all of them succeeding (and also in sent relation requests)

**Expected behavior**
Ideally, if a request has already been sent to a member, the backend should return that as a message for a duplicate request to the same member.

**Screenshots**
Received multiple requests from the same user. Accepted one of them, and then cancelled. Old requests still stay. The complete UX flow can probably be fixed by doing a check for already sent requests and not allowing duplicate requests.
image

**Smartphone (please complete the following information):**
- Device: iPhone
- OS: iOS 13.6
- Discovered using Mentorship iOS app

Guia de contribuição

Abrir o guia de contribuição

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.