Skip to content

Adjust Licensee Serializer to handle "unknown" in currentHomeJurisdiction json response #1006

@ChiefStief

Description

@ChiefStief

Notes

  • Currently, the Staff view of the licensingDetail page and the licensee list will have Unknown for home state and adressess for users who have not registered in the system and chosen a home state.
  • We need to look specifically for "unknown" rather than falsey here and construct our existing fallbacks around this.
  • Also add bestLicense() to run bestHomeStateLicense() and if nothing then for most recent active non homeStateLicense then most recent non home state license if the user has not selected a home state license
  • Probably need to adjust the address serialization to only ever use the bestLicense's associated address as there are no longer top level address fields returned in the licensee object

Design

Questions

  1. Does falling back to licenseJurisdiction as a first step make sense if currentHomeJurisdiction is unknown?

Assumptions

  1. Assumption text...

Estimate: ?? hrs

  • Item 1: ?? hrs
  • TODO

Tasks

  • TODO

  • Cross browser device testing
  • Confirm yarn build is error & warning free
  • Confirm yarn serve is error & warning free
  • Confirm yarn test:unit:all is error & warning free
  • Confirm yarn test:e2e is error & warning free
  • QA Notes added
  • PR opened with labels / reviewers / assignee / linked-issue

Implementation Notes

QA Notes

  • TODO

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

CSG Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions