Skip to content

Conversation

@danhalson
Copy link
Contributor

Status

What's changed?

  • Enables school duplicate checks, using fuzzy matching with two Posgres extensions; pg_trgm, fuzzystrmatch
    • This raises an error with an error code, to allow it be translated in the frontend
  • Seperates onboarding logic from verification and adds a new service
  • This is all wrapped behind a feature flag ENABLE_IMMEDIATE_SCHOOL_ONBOARDING
    • This will need enabling / disabling as required via terraform or locally to develop against this feature

Steps to perform after deploying to production

N/A

@cla-bot cla-bot bot added the cla-signed label Dec 19, 2025
@danhalson danhalson self-assigned this Dec 19, 2025

response
rescue School::DuplicateSchoolError => e
response[:error] = e.message
rescue StandardError => e
Sentry.capture_exception(e)
response[:error] = response[:school].errors
response[:error] = response[:school].errors.presence || [e.message]
rescue StandardError => e
Sentry.capture_exception(e)
response[:error] = response[:school].errors
response[:error] = response[:school].errors.presence || [e.message]
response
rescue School::DuplicateSchoolError => e
Sentry.capture_exception(e)
response[:error] = e.message
@danhalson danhalson marked this pull request as draft December 19, 2025 10:31
response
rescue School::DuplicateSchoolError => e
response[:error] = e.message
response[:error_type] = :duplication_error
rescue StandardError => e
Sentry.capture_exception(e)
response[:error] = response[:school].errors
response[:error] = response[:school].errors.presence || [e.message]
rescue StandardError => e
Sentry.capture_exception(e)
response[:error] = response[:school].errors
response[:error] = response[:school].errors.presence || [e.message]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants