Single hubspot account - #3781
Open
cp-at-mit wants to merge 6 commits into
Open
Conversation
Removes UAI-specific HubSpot token handling so both UAI and non-UAI flows always use `MITOL_HUBSPOT_API_PRIVATE_TOKEN`. Updates deal/cart sync logic, task helper token checks, and error messaging accordingly, and revises tests to reflect the single-account behavior. Also removes the unused `UAI_MITOL_HUBSPOT_API_PRIVATE_TOKEN` setting.
Consolidates deal syncing onto a single token-based `sync_deal_with_hubspot` path and removes the legacy/duplicate targeted function and task variants. It also simplifies cart-add/deal sync call sites by dropping explicit `is_uai` arguments, updates helper/function names to remove `target_`-specific prefixes, and aligns tests with the new API/task behavior (including no longer force-syncing a deal from line-item sync when an order HubSpot ID is missing).
OpenAPI ChangesShow/hide ## Changes for v0.yaml:Unexpected changes? Ensure your branch is up-to-date with |
for more information, see https://pre-commit.ci
…txonline into single-hubspot-account
cp-at-mit
marked this pull request as ready for review
July 23, 2026 14:02
Member
|
Not sure how we would test this, but I think we also want to make sure that directing everything to one account doesn't leave us with overlapping or confusing contacts and deals in Hubspot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What are the relevant tickets?
NA
Description (What does it do?)
Removes all of the code that was interfacing with the hubspot account defined by
UAI_MITOL_HUBSPOT_API_PRIVATE_TOKEN. This hubspot account was previously receiving any user/course/enrollment/deal info associated with UAI courses and programs. This PR updates our hubspot code so that any course, regardless of whether it's a UAI course/program or not is synced with the hubspot account defined by MITOL_HUBSPOT_API_PRIVATE_TOKEN.How can this be tested?
Use a new user and enroll and pay for a new UAI course and program. Verify that your contact, products, deal, line items, etc are all created in a single Hubspot account linked to MITOL_HUBSPOT_API_PRIVATE_TOKEN