-
Notifications
You must be signed in to change notification settings - Fork 35
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
B-21608 alaska update search counseling office query #14329
Open
MInthavongsay
wants to merge
10
commits into
main
Choose a base branch
from
B-21608-Alaska-Update-search-counseling-office-query
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
B-21608 alaska update search counseling office query #14329
MInthavongsay
wants to merge
10
commits into
main
from
B-21608-Alaska-Update-search-counseling-office-query
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…dle OCONUS AK locations
…1608-Alaska-Update-search-counseling-office-query
… offices and add fields for distance calculation
…t back to previous state. Need to table this and figure out how to prevent re_oconus_rate_areas from indirectly getting truncated.
MInthavongsay
requested review from
antgmann,
r-mettler,
ajlusk and
CoryKleinjanCACI
December 4, 2024 19:44
antgmann
approved these changes
Dec 4, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Matches the combined manual commits of both linked PRs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
B-21608
INT PR
INT PR v2
Summary
This PR addresses the search counseling office issue when AK duty locations were migrated into the system from B-21481 where counseling office dropdown was not being populated when an AK duty location is selected.
NOTE: This PR does not address NSRA15 associated duty locations that were migrated. Side effect is that if a known NSRA15 location is selected, the search counseling offices FAILS and the dropdown does not get populated. A BL for this particular issue has been created to resolve this issue.
v2:
this article explains more about the approach used.
Verification Steps for the Author
These are to be checked by the author.
Verification Steps for Reviewers
These are to be checked by a reviewer.
Setup to Run the Code
How to test
GOOD-AK-data-1731517877769.csv . Click selection and verify Counseling Office dropdown gets populated. NOTE: there is an existing UI bug where if there is a search error, the dropdown will not clear the dropdown but will retain the dropdown state from the last successful search. This means that even if it fails, you might see a FALSE positive. Verify logs for every search! A duty location's counseling office is retrieved using its associative GBLOC for that address. Unlike the CONUS duty locations, AK locations will have another layer of business logic to determine what GLOC to use based on the ZONE the address location is assigned to. There are 5 known Zones --> Zone 1 to 5. Here are the business rules per Zone:
NSRA15-duty-locations-data-1731515178779.csv
Zone 2 affiliated duty locations are the ones to pay attention to! Use TRDM file as reference to determine Zone affiliation.
(CUI) TRDM AK Duty Locations.xlsx
select name from transportation_offices where gbloc = 'MBFL';
I've added DEBUG logging to help testing
Successful Duty Location Request:
2024-11-13T20:43:12.062Z DEBUG transportation_office/transportation_office_fetcher.go:285 Found specific department match -- serviceMember.Affiliation: AIR_FORCE, DutyLocaton: Fairbanks, AK 99710, GBLOC: MBFL, departmentIndicator: AIR_AND_SPACE_FORCE, RateAreaName: Alaska (Zone) II, dutyLocation.Address.ID: 33f9674d-0243-4c7e-9759-ca7f2c52f46a {"git_branch": "INT-B-21608-Alaska-Update-search-counseling-office-query", "git_commit": "f74a7071ad25b499d7cd6568ac804f95fd603a7d", "host": "milmovelocal:3000", "milmove_trace_id": "8307b5be-ebce-4eb9-ba6b-a8645dc0e981", "session_id": "CXpIw9j3BnGlEVbeDbUagOeObAUN57pAxc-TxWmZM40"}
Pay attention to GBLOC, departmentIndicator, RateAreaName information in the log output. It should match the business logic requirements for the Zone.
unsuccessful/NSRA15 Duty Location Request:
2024-11-13T20:46:05.985Z ERROR internalapi/transportation_offices.go:79 Error searching for Counseling Offices: {"git_branch": "INT-B-21608-Alaska-Update-search-counseling-office-query", "git_commit": "f74a7071ad25b499d7cd6568ac804f95fd603a7d", "host": "milmovelocal:3000", "milmove_trace_id": "7ed5738e-d8d5-4516-8ccb-a3884e6e3c2d", "session_id": "CXpIw9j3BnGlEVbeDbUagOeObAUN57pAxc-TxWmZM40", "error": "ImplementationError: Error: Cannot determine GBLOC -- serviceMember.Affiliation: AIR_FORCE, DutyLocaton: Adak, AK 99546, departmentIndicator: AIR_AND_SPACE_FORCE, dutyLocation.Address.ID: 78051891-ee44-4a61-9dab-4c1fd0344a76"}
GBLOC Office Mappings:
MBFL:
JPPSO - ANC JB Elmendorf- Richardson (MBFL)
PPPO Eielson AFB
PPPO JBER Travel Center- Elmendorf
PPPO JBER Travel Center- Richardson
JEAT:
JPPSO - North West (JEAT) - USA
PPPO Fort Leavenworth - USA
PPPO Fort Sill - USA
PPPO McChord Field - USA
PPPO Fort Greely
PPPO Fort Wainwright
PPPO Fort Leonard Wood - USA
PPPO NAVSUP FLC PS Everett - USN
PPPO NAVSUP FLC PS Whidbey Island - USN
PPPO JB Lewis-McChord (Fort Lewis) - USA
PPPO NAVSUP FLC Puget Sound - USN
PPPO Base Seattle - USCG
PPPO Fort Riley - USA
MAPS:
PPPO BSU Kodiak
MAPK:
PPPO Base Ketchikan
Backend