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

sync_db_to_hubspot --lines create fails when courseware related to product is deleted. #1713

Open
collinpreston opened this issue Jun 28, 2023 · 0 comments

Comments

@collinpreston
Copy link
Contributor

Steps to Reproduce

  • Create a course or program.
  • Create a product related the course or program .
  • Create a course run enrollment for your user into the course, or a program enrollment into the program through Django Admin.
  • Delete the course or program.
  • Run ./manage.py create_order_from_course_run_enrollments
  • Run ./manage.py sync_db_to_hubspot --deals create
  • Run ./manage.py sync_db_to_hubspot --lines create

Expected Behavior

Lines are created in HubSpot.

Actual Behavior

Error is thrown and Lines are never synced with HubSpot

Stacktrace

https://mit-office-of-digital-learning.sentry.io/issues/4276444264/?environment=rc&project=5864687&query=is%3Aunresolved&referrer=issue-stream&stream_index=3

Addition info

I would not expect a course or program to ever be deleted after a product has been created which is associated with the courseware, but this is the current environment in RC. Refer to Product with ID=2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant