How HubSpot Integration Logging for Inspections Works
Source: autosoft-workshop/app/controllers/inspections_controller.rb
- Creating a new inspection logs the event to HubSpot, but updating an existing inspection does not — only creation events are tracked
- HubSpot logging only fires if the company has a hubspot_contact_id configured — companies without HubSpot integration are silently skipped
- Motor Labour integration uses separate production and staging environments — superusers are routed to the staging environment even when running in production
Support scenarios
- "The inspection creation didn't appear in HubSpot" → check that the company has a hubspot_contact_id set; without it, no events are sent
- "Inspection updates aren't showing in HubSpot" → only new inspection creation is logged to HubSpot; updates are not tracked
- "Motor Labour is pointing to the wrong environment" → superuser accounts are always routed to staging even in production; this is by design for testing safety