Currently in IRIDA Next, if you try to share a group (Group A) from Members -> Groups, the invite group modal lists the group (Group A) in the dropdown of available groups to select. This results in the group (Group A) being invited to group (Group A), an email being sent out to the maintainers and owners of Group A, but the group isn't listed in the Members -> Groups listing . We need to update this so that the dropdown does not display the current group within the options, and need to add checks to the back-end to make sure that a group cannot be invited to itself
Acceptance Criteria
Current group is no longer an option in drop down in the invite group modal
Update the back-end to not allow namespace group links where the namespace and group are the same
Add tests to ensure that a group cannot share to itself, emails are not sent out if a group tries to add a group to itself, and to ensure errors are thrown in the back-end
Summary
Currently in IRIDA Next, if you try to share a group (Group A) from
Members -> Groups
, the invite group modal lists the group (Group A) in the dropdown of available groups to select. This results in the group (Group A) being invited to group (Group A), an email being sent out to the maintainers and owners of Group A, but the group isn't listed in theMembers -> Groups
listing . We need to update this so that the dropdown does not display the current group within the options, and need to add checks to the back-end to make sure that a group cannot be invited to itselfAcceptance Criteria