SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Event groups created by Contact Supervisor are not visible after unlinking event

Open leventegal-she opened this issue 2 years ago • 3 comments

Bug Description

Steps to Reproduce

  1. Log in with a Contact Supervisor user;
  2. Navigate to the Events Directory and open an Event;
  3. Click on the 'Link Event Group' button'; -> 'Create new Event Group' pop-up opens;
  4. Fill in the 'Group name' field and Save;
  5. Unlink the newly created Event Group
  6. 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

leventegal-she avatar Apr 20 '22 08:04 leventegal-she

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:

  1. Leave it as-is
  2. Show event groups that are not linked to an event to all jurisdictions
  3. 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?

MartinWahnschaffe avatar Apr 27 '22 12:04 MartinWahnschaffe

For National User and Rest user the filtering what we have in place is disabled and the existent eventgroups will appear as suggestions: image

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. image

carina29 avatar Apr 27 '22 12:04 carina29

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.

StefanKock avatar May 11 '22 08:05 StefanKock