flexion / ef-cms

An Electronic Filing / Case Management System.
23 stars 10 forks source link

BUG: IRS practitioner sees incorrect service preference when address is sealed #7920

Closed klohman closed 3 years ago

klohman commented 3 years ago

Describe the Bug When a petitioner address is sealed, the petitioner's service indicator is displaying as "Paper" for IRS attorneys (associated and not associated) and the petitioner when the petitioner actually has electronic service. Internal users still see "Electronic" as service preference.

Business Impact/Reason for Severity

In which environment did you see this bug? migration

Who were you logged in as? irsPractitioner4@example.com docketclerk1@example.com

What were you doing when you discovered this bug? (Using the application, demoing, smoke tests, testing other functionality, etc.) PO testing 7807

To Reproduce Steps to reproduce the behavior:

  1. Login as docket clerk
  2. Go to case with petitioner with electronic service
  3. Seal address
  4. Login as irs practitioner
  5. Go to case ( from step 2)
  6. View petitioner contact info

Expected Behavior Service preference should not change when address is sealed. IRS practitioner should see accurate service preference for petitioner's with electronic service and sealed address.

Actual Behavior the petitioner's service indicator is displaying as "Paper" for IRS attorneys (associated and not associated) when the petitioner actually has electronic service. Internal users still see "Electronic" as service preference.

Screenshots IRS practitioner views "Paper" service Screen Shot 2021-03-03 at 11.04.43 AM.png

Docket clerk sees electronic service Screen Shot 2021-03-03 at 11.05.10 AM.png

Desktop (please complete the following information):

Smartphone (please complete the following information):

Cause of Bug, If Known

Process for Logging a Bug:

Severity Definition:

Definition of Done (Updated 2-23-21)

Product Owner

UX

Engineering

klohman commented 3 years ago

Similar bug - https://github.com/flexion/ef-cms/issues/7717

matthopson commented 3 years ago

@klohman Just a note for reference. The main issue was when a contactPrimary had a service preference set, it wasn't being conveyed to non-associated users, so the fallbacks would kick in (the logic that determines the service preference). So for a paper case (without representation) and a sealed address, it would default to paper, EVEN IF the contactPrimary.serviceIndicator was set to Electronic because we limit what fields are available to the user on a sealed address. The fix was to ensure the serviceIndicator field was added in the allowed fields that come through the case filter for sealed addresses. We wrote some integration tests that run through various scenarios where a service preference might be changed and viewed by various users to ensure expectations are always consistent.