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 format sweep script by ensuring all operations within the context… #2216

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

dbernstein
Copy link
Contributor

@dbernstein dbernstein commented Dec 18, 2024

… manager are performed on the same session.

Description

This is a follow-up PR to #2181. #2181 fixed the bug at a particular but it revealed another similar issue with the database session associated with the object being different from the session associated with the context manager further down the execution path. I didn't see any other uses of Session.object_session() in this execution path so I thing this should fix this issue with the format sweep scripts.

Motivation and Context

https://ebce-lyrasis.atlassian.net/browse/PP-1956

How Has This Been Tested?

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@dbernstein dbernstein added the bug Something isn't working label Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.11%. Comparing base (ff63d23) to head (d21dae6).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2216   +/-   ##
=======================================
  Coverage   91.11%   91.11%           
=======================================
  Files         363      363           
  Lines       41274    41284   +10     
  Branches     8837     8838    +1     
=======================================
+ Hits        37606    37616   +10     
  Misses       2406     2406           
  Partials     1262     1262           

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

@dbernstein dbernstein force-pushed the fix-format-sweep-context-errors branch from 6b966e3 to d21dae6 Compare December 18, 2024 19:03
@dbernstein dbernstein merged commit bdf6b9e into main Dec 18, 2024
8 of 9 checks passed
@dbernstein dbernstein deleted the fix-format-sweep-context-errors branch December 18, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants