Skip to content

Conversation

asajjad2
Copy link
Contributor

What are the relevant tickets?

#8295

Description (What does it do?)

HubSpot’s Python client changed the BasicApi.create signature to require simple_public_object_input_for_create. This caused user syncs to fail during registration/profile update in MITxOnline with BasicApi.create() missing 1 required positional argument: 'simple_public_object_input_for_create'.

This PR updates ol-django/src/hubspot_api/mitol/hubspot_api/api.py to use the correct v12 create call so single-object contact syncs succeed.

How can this be tested?

  1. Install this branch into your local MITxOnline setup (use uv build to generate a new ol-django-hubspot-api pacakge)
  2. User registration flow (single create path):
  • Register a new user via the app.
  • Verify no error in worker logs.
  • Confirm the user appears in HubSpot Contacts with expected properties.
  • Confirm users_user.hubspot_sync_datetime populated.
  1. Profile update flow (single update path):
  • Log in as an existing user.
  • Edit profile and save
  • Verify no error in logs and updated fields are reflected in HubSpot.

@asajjad2 asajjad2 marked this pull request as ready for review September 30, 2025 10:39
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