Adding group members without any emails shows the success message that a groups member has been added. It should show an error message regarding the empty email field.
Similar issue occurs while adding collaborators.
I would like to self assign this issue. :slightly_smiling_face:
I would like the message to show the following details.
For checking if the email given is an email, right now, the system doesn't parse the email strings to check if the string is actually an email. You will need to implement this.
We can use validates :email, format: { with: URI::MailTo::EMAIL_REGEXP } in the required models to check the emails.
We can use
validates :email, format: { with: URI::MailTo::EMAIL_REGEXP }in the required models to check the emails.
This is good, but we might not want to create a PendingInvitation record in the first place if the email ID is incorrect.