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

Clearing the 'Responsible Contact Officer' on contact pages

Open adinaflorea9 opened this issue 3 years ago • 0 comments

Problem Description

The value from the field 'Responsible Contact Officer' is currently not cleared in a consistent way, depending on the jurisdiction associated with the contact.

I: The value from the field 'Responsible Contact Officer' when the contact has its own Responsible Jurisdiction (and no Source Case):

  1. For a contact, set the 'Responsible Region' and 'Responsible District';
  2. From the dropdown 'Responsible contact Officer' select one of the officers listed (the dropdown is filled in with Contact Officers that have the jurisdiction as the contact);
  3. Change the 'Responsible Region' and 'Responsible District' of the contact; => the value from the field 'Responsible Contact Officer' is cleared.

II: The value from the field 'Responsible Contact Officer' when the contact has the responsible jurisdiction 'imported' from the associated Source Case:

  1. Create a contact that does not have its own Responsible Jurisdiction, but has a Source Case;
  2. From the dropdown 'Responsible Contact Officer' select one of the officers listed (the dropdown is filled in with Contact Officers that the same jurisdiction as the Source Case);
  3. Change the 'Responsible Region' and 'Responsible District' of the Source Case;
  4. Navigate back to the contact from step1; => the value from the field 'Responsible Contact Officer' remains the same (as set in step 2).

III: The value from the field 'Responsible Contact Officer' when the contact has both its own jurisdiction and an associated Source Case:

  1. Create a contact that has both its own 'Responsible Region' and 'Responsible District', and a Source Case with other values for the 'Responsible Region' and 'Responsible District';
  2. On the contact's page, from the dropdown 'Responsible Contact Officer' select one of the officers listed (the dropdown is filled with Contact Officers that have the same jurisdiction as the contact, not the Source Case);
  3. Change the 'Responsible Region' and 'Responsible District' of the contact; => the value from the field 'Responsible Contact Officer' is cleared.

Proposed Change

The behavior regarding the clearing of the value from the 'Responsible Contact Officer' field should be consistent when the jurisdiction associated with the contact is changed.

Acceptance Criteria

Implementation Details

Additional Information

Behavior was initially signaled in the comments from ticket: #9859. @kwa20 and @MateStrysewske perhaps you would be able to take a look over the issue and specify which behavior is desired.

adinaflorea9 avatar Jul 29 '22 11:07 adinaflorea9