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

Fix contacts whose current_session_uuid doesn't match a waiting session #5911

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Feb 26, 2025

One day we'll fix the code that can leave contacts in this state...

else:
contact.current_session_uuid = None
contact.current_flow = None
contact.save(update_fields=("current_session_uuid", "current_flow"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't fix these.. migration keeps looping on these contacts

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (224bfdc) to head (df7b744).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5911   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          505       505           
  Lines        25303     25329   +26     
=========================================
+ Hits         25303     25329   +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour merged commit 998b9af into main Feb 26, 2025
5 checks passed
@rowanseymour rowanseymour deleted the migration_fix branch February 26, 2025 20:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant