anitab-org / anitab-org/mentorship-backend

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

未关闭
#866 8 条评论 0 个 reaction 已指派 1 人 已被 @decon-harsh 认领 在 GitHub 查看
Category: Coding Type: Bug
主要语言
Python
星标
200
派生
449
PR 合并指标
30 天内没有已合并 PR

描述

**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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。