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

feat: rollback_transaction() also cancels external fulfillments #258

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

pwnage101
Copy link
Contributor

This is needed for cases where an external fulfillment has been created, but the subsequent platform fulfillment fails (e.g. due to transient networking issues). Before this PR, the external fulfillment would not get rolled back, resulting in an "orphaned" fulfillment that allows learners to effectively redeem content for free. After this PR, that loophole is fixed.

ENT-8866

@pwnage101 pwnage101 force-pushed the pwnage101/ENT-8866 branch 2 times, most recently from 1a7bf1b to 48d9467 Compare June 25, 2024 20:24
@pwnage101 pwnage101 marked this pull request as ready for review June 25, 2024 20:25
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-8866 branch 3 times, most recently from f673e84 to 5a19dde Compare June 25, 2024 22:10
Copy link
Contributor

@iloveagent57 iloveagent57 left a comment

Choose a reason for hiding this comment

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

Very good, one logging suggestion.

enterprise_subsidy/apps/subsidy/models.py Outdated Show resolved Hide resolved
This is needed for cases where an external fulfillment has been created,
but the subsequent platform fulfillment fails (e.g. due to transient
networking issues).  Before this PR, the external fulfillment would not
get rolled back, resulting in an "orphaned" fulfillment that allows
learners to effectively redeem content for free.  After this PR, that
loophole is fixed.

ENT-8866
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-8866 branch from 5a19dde to 3de6780 Compare June 26, 2024 19:58
@pwnage101 pwnage101 merged commit 2288649 into main Jun 26, 2024
7 checks passed
@pwnage101 pwnage101 deleted the pwnage101/ENT-8866 branch June 26, 2024 20:03
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.

2 participants