Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tasks] Users can not see a task that is assigned to a Surveillance Officer, Surveillance Supervisor, or Admin Surveillance Supervisor #7874

Closed
adinaflorea9 opened this issue Feb 3, 2022 · 5 comments
Assignees
Labels
backend Affects the web backend bug An error or misbehavior of an existing feature (ticket type) major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) tasks

Comments

@adinaflorea9
Copy link

adinaflorea9 commented Feb 3, 2022

Bug Description

Users can not see a task (even if they created that specific task - i.e. if they have task_create user right; or they have create_entity user right and a task is created automatically with the entity) if the task is assigned to a Surveillance Officer, Surveillance Supervisor or Admin Surveillance Supervisor.

Steps to Reproduce

  1. Log in with one of the following users: Surveillance Officer, Case Officer, Hospital Informant, Community Officer, Community Informant, Contact Officer, Lab Officer;
  2. Create a task for an entity (eg. 'Case investigation task' for a case; or create a new case and a 'Case investigation task' is created automatically);
  3. In the task's 'Edit form' set the assignee to a Surveillance Officer, or Surveillance Supervisor, or Admin Surveillance Supervisor;
  4. Save the task.

Actual Behavior

Surveillance Officer, Case Officer: they can not see the task if it is assigned to a Surveillance Supervisor or Admin Surveillance Supervisor.

Hospital Informant, Community Officer, Community Informant, Contact Officer, Lab Officer: they can not see the task if it is assigned to a Surveillance Officer, Surveillance Supervisor or Admin Surveillance Supervisor.

Expected Behavior

Users should be able to see the tasks that are related to their jurisdiction.

Screenshots

GIF of the steps to reproduce and the behavior:
TaskSurvOff

System Details

  • Device: Windows 10
  • SORMAS version: 1.68.0-SNAPSHOT
  • Android version/Browser: Chrome
  • Server URL: local machine and test.sormas.netzlink.com
  • User Role: Surveillance Officer
@adinaflorea9 adinaflorea9 added the bug An error or misbehavior of an existing feature (ticket type) label Feb 3, 2022
@adinaflorea9 adinaflorea9 changed the title [Tasks] A Surveillance Officer can not see a task that is assigned to a Surveillance Officer/Admin Surveillance Officer [Tasks] A Surveillance Officer can not see a task that is assigned to a Surveillance Supervisor/Admin Surveillance Supervisor Feb 3, 2022
@MateStrysewske MateStrysewske added backend Affects the web backend major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) tasks labels Feb 4, 2022
@MateStrysewske MateStrysewske added this to Backlog in SORMAS Team 2 - DEV - Iteration Backlog via automation Feb 4, 2022
@bernardsilenou
Copy link

I think this may also apply to community officers or hospital informants, in case they can create a task.

  • Maybe the change can be that: the reporting user should always have full assess to the task associated to entities that they have full access to.

@adinaflorea9
Copy link
Author

Starting from @bernardsilenou 's comment, I have verified the behavior described in the ticket for other users as well.

The ticket's description has been edited accordingly.

@adinaflorea9 adinaflorea9 changed the title [Tasks] A Surveillance Officer can not see a task that is assigned to a Surveillance Supervisor/Admin Surveillance Supervisor [Tasks] Users can not see a task that is assigned to a Surveillance Officer, Surveillance Supervisor, or Admin Surveillance Supervisor Feb 9, 2022
@syntakker syntakker self-assigned this Feb 25, 2022
@syntakker syntakker moved this from Backlog to In Progress in SORMAS Team 2 - DEV - Iteration Backlog Feb 25, 2022
@StefanKock StefanKock added this to the Sprint 112 - 1.69.0 milestone Mar 2, 2022
@StefanKock
Copy link
Contributor

Needs to be checked, it might be a severe defect or some side effect.

@syntakker
Copy link
Contributor

Comments in the code indicate that this is the intended behaviour.

SORMAS Team 2 - DEV - Iteration Backlog automation moved this from In Progress to Testing Mar 7, 2022
@kwa20
Copy link

kwa20 commented Mar 9, 2022

@syntakker Can you tell me what the comments in the code say? This behaviour might need to be reviewed and possibly changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Affects the web backend bug An error or misbehavior of an existing feature (ticket type) major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) tasks
Projects
None yet
Development

No branches or pull requests

6 participants