Repository navigation
Conversation
PROTEA's sessions are built with autoflush=False, and create() added its created event after its last flush, so the route that answers with describe() in the same transaction read the log before the event reached it: exploration 1 was created on 2026-11-04 with its event in the database and none in the answer. create() now flushes after the event, as every other move already does, and a test runs on a session without autoflush.
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (83.92%) is below the target coverage (85.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #1119 +/- ##
========================================
Coverage 85.66% 85.66%
========================================
Files 472 472
Lines 37463 37464 +1
========================================
+ Hits 32091 32092 +1
Misses 5372 5372
🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Exploration 1 was created on 2026-11-04. Its
createdevent is in the database, but the answer to the POST that created it showed none.PROTEA's sessions are built with
autoflush=False.create()added its event after its last flush, sodescribe(), called in the same transaction by the route, read the log before the event reached it. Every other move already flushes after its event.What
create()flushes after adding thecreatedevent.describe()on a session built without autoflush, as the platform builds them. It fails without the flush.Checks
ruff