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 situation where trigger doesn't fire if state version matches run #218

Merged
merged 3 commits into from
Mar 17, 2021

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented Mar 17, 2021

Summary

This PR modifies the trigger that updates run objects to ensure that it fires when the run has a null version or a version equal to the state being inserted. This can very rarely happen when the run was inserted with a manually-supplied version immediately prior to the state being inserted with the same version. It doesn't happen in application code but users could trip over it without this protection.

Importance

Checklist

This PR:

  • adds new tests (if appropriate)
  • adds a change file in the changes/ directory (if appropriate)

@codecov-io
Copy link

Codecov Report

Merging #218 (5b77cb1) into master (236d660) will not change coverage.
The diff coverage is n/a.

@jlowin jlowin mentioned this pull request Mar 17, 2021
2 tasks
@cicdw cicdw merged commit 8a5d438 into master Mar 17, 2021
@cicdw cicdw deleted the details-trigger branch March 17, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants