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

Add BranchCodesMap alarms #27

Merged
merged 5 commits into from
Nov 13, 2024
Merged

Add BranchCodesMap alarms #27

merged 5 commits into from
Nov 13, 2024

Conversation

aaronfriedman6
Copy link
Contributor

The location_hours table uses the Drupal branch id while most other tables use the Sierra branch id. In order to translate from one to the other we use the branch_codes_map table, which is maintained by hand. These new alarms test that all the Drupal ids in location_hours also exist in branch_codes_map and that all the Sierra codes in branch_codes_map also exist in location_hours. Also that each Sierra code maps to a single Drupal id (the reverse is not true, as sometimes there are old Sierra codes that are actually the same branch -- e.g. my and lp are both LPA).

Also renamed LocationVisits to GranularLocationVisits to avoid confusion with the daily_location_visits table.

Copy link
Contributor

@fatimarahman fatimarahman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comments, it looks good to me!

@aaronfriedman6 aaronfriedman6 merged commit bde6756 into main Nov 13, 2024
2 checks passed
@aaronfriedman6 aaronfriedman6 deleted the loc-visits-alarms branch November 13, 2024 16:43
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