Skip to content

Adding an existing user to a group does not show an error #723

Description

@SanjaySiddarth

Describe the bug
When adding a user that is already in a group, there is no error/message shown

To Reproduce

  1. Create a group.
  2. Add a user to the group.
  3. Attempt to add the same user to the same group again.

Logs:

prisma:error

Invalid `prisma.groupUser.createMany()` invocation:

Unique constraint failed on the fields: (`groupId`,`userId`)

Expected behavior

Perhaps the UI should show a message that the user already exists in the group, and the error should be handled gracefully.

Screenshots

N/A

App version

v.2.1.5

Desktop (please complete the following information):

  • OS: Ubuntu Server
  • Browser: N/A
  • Version: N/A

Smartphone (please complete the following information):

N/A

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions