SORMAS-Project
SORMAS-Project copied to clipboard
Event groups created by Contact Supervisor are not visible after unlinking event
Bug Description
Steps to Reproduce
- Log in with a Contact Supervisor user;
- Navigate to the Events Directory and open an Event;
- Click on the 'Link Event Group' button'; -> 'Create new Event Group' pop-up opens;
- Fill in the 'Group name' field and Save;
- Unlink the newly created Event Group
- Click on the 'Link Event Group' button'; -> the Event Group created previously is not suggested any more, it is not even visible in the Event Groups directory
Expected Behavior
Screenshots
System Details
- Device: Mac
- SORMAS version: 1.71.0-SNAPSHOT (9239f6c)
- Android version/Browser: Chrome
- Server URL: local server
- User Role: Contact Supervisor
Additional Information
It looks like this bug exists for quite some time now. Overall it follows the pattern that we are using for other entities as-well: If you are working on NATIONAL level or are a REST user you will not have a limitation based on the jurisdiction.
The problem for the event groups is that if they are not linked to an event, they can't be associated to any jurisdiction.
We have three options here:
- Leave it as-is
- Show event groups that are not linked to an event to all jurisdictions
- Add a creationUser field to the event group so we can at least show it to the creating user -> won't work retrospectively
@kwa20 @ftavin @MateStrysewske What do you think?
For National User and Rest user the filtering what we have in place is disabled and the existent eventgroups will appear as suggestions:
For the other users with EVENTGROUP_LINK right the filtering will take place and the number of find events will be 0 so the Create new group pop-up will appear instead of the Pick or create event group pop-up with the Event group suggestions.
I don't see this happening or fixed in 1.72.0, and should probably converted to a change. Another option would also be to delete an event group when the last event is removed.