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

Transaction rollback behaviour bug #173

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Conversation

dcyoung-dev
Copy link

While investigating an issue of missing data we started investigating the implementation of sending events while inside Rails transactions.

This PR reproduces a bug that may be contributing to some of the data issues in the Apply & Manage service.
The existing spec asserts that no events are sent if the transaction is rolled back, however the spec was passing due to allowlist_fields not being set.
After setting the allowlist_fields we see a test failure as the SendEvents job is called.

We have traced the origins of our data issue back to the introduction of #158

@asatwal asatwal force-pushed the main branch 2 times, most recently from 75d06fb to a4dcb2d Compare November 26, 2024 10:15
goodviber and others added 7 commits December 13, 2024 10:35
While investigating an issue of missing data we started investigating the implementation of sending events while inside Rails transactions.

This commit reproduces a bug that may be contributing to some of our data issues.
The existing spec assets that no events are send if the transaction is rolled back, however the spec was passing due to `allowlist_fields` not being set.
After setting the `allowlist_fields` we see a test failure as the `SendEvents` job is called.
@asatwal asatwal force-pushed the bug-rollback-behaviour branch from 05efa13 to f34c9af Compare December 13, 2024 10:47
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