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

chore: Fix mapSearch agency check for CEEB users #735

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

mikevespi
Copy link
Contributor

@mikevespi mikevespi commented Nov 4, 2024

Description

Complaints service's mapSearch function uses the local function _getAgencyByUser to determine a users agency. This function identifies a users agency through the office they are assigned to. CEEB users have no office assigned, thus _getAgencyByUser fails. To get around this, mapSearch now uses the hasCEEBRole variable already included to determine if _getAgencyByUser should be called, or "EPO" should be assigned (as is the case for CEEB users). Current implementation of tests do not address the problem, and there was an existing false positive in the tests for the complaints service. This will be addressed separately.

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Further comments


Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Complaints service's mapSearch function uses the local function _getAgencyByUser
to determine a users agency. This function identifies a users agency through
the office they are assigned to. CEEB users have no office assigned, thus
_getAgencyByUser fails. To get around this, mapSearch now uses the hasCEEBRole
variable already included to determine if _getAgencyByUser should be called, or
"EPO" should be assigned (as is the case for CEEB users). Current implementation
of tests do not address the problem, and there was an existing false positive in
the tests for the complaints service. This will be addressed separately.
Copy link

sonarqubecloud bot commented Nov 5, 2024

@afwilcox afwilcox merged commit ecb8706 into release/frilled-dogwinkle Nov 5, 2024
15 checks passed
@afwilcox afwilcox deleted the CE-1159-CEEB-missing-map-data branch November 5, 2024 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants