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

Cleaning up School Infos validation and dedup processing #58533

Merged
merged 6 commits into from May 21, 2024

Conversation

hannahbergam
Copy link
Contributor

@hannahbergam hannahbergam commented May 10, 2024

We used to send a honeybadger error if a user was trying to submit data that didn't align with our school database data. This usually meant they were selecting a school type (i.e. private, charter, public) that mismatched their accurate school type. Unfortunately, the old search didn't filter the search results on that input, so these mismatches were entirely possible.

In the new search, the zip code will just return the schools without asking for a school type at all, so it's no longer relevant. And for the old search, we want to override the info with school data anyway (which means the Honeybadger event is no longer necessary).

Bethany and I looked at this together and started working on it a few weeks ago, with her draft work in this pr: https://github.com/code-dot-org/code-dot-org/pull/58259/files.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@hannahbergam hannahbergam requested a review from a team May 20, 2024 17:27
Copy link
Contributor

@bethanyaconnor bethanyaconnor left a comment

Choose a reason for hiding this comment

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

One rambling thinking-out-loud comment that ended in a nit but otherwise this looks great! Thanks for this clean up!

@hannahbergam hannahbergam merged commit c0cc3aa into staging May 21, 2024
2 checks passed
@hannahbergam hannahbergam deleted the hbergam/cleanup-validation-call branch May 21, 2024 17:35
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.

None yet

2 participants