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

Only initialize RepeaterBook State ID if record has a RepeaterBook ID #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

singlethink
Copy link
Contributor

The previous code was overzealous and initialized all missing RepeaterBook State ID fields to Washington (53). This had the unintended consequence of initializing the field for all repeaters that are not in RepeaterBook (including those outside of Washington).

This change resets the state id for all repeaters w/o RepeterBook IDs to null and updates the initialization code to:

  • Prefer any existing RepeaterBook State ID

  • Only initialize the state id to Washington (53) if the record has a RepeaterBook ID.

Matthew Van Gundy added 2 commits November 13, 2024 14:06
The previous code was overzealous and initialized all missing
RepeaterBook State ID fields to Washington (53). This had the
unintended consequence of initializing the field for all repeaters
that are not in RepeaterBook (including those outside of Washington).

This change resets the state id for all repeaters w/o RepeterBook IDs
to null and updates the initialization code to:

- Prefer any existing RepeaterBook State ID

- Only initialize the state id to Washington (53) if the record has a
  RepeaterBook ID.
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.

1 participant