Skip to content

Conversation

Glinte
Copy link
Contributor

@Glinte Glinte commented Sep 28, 2025

Description

This fixes #552 by moving the guard condition up. One test has been modified but honestly I'm less certain about the test change than the code change lol.

@Glinte Glinte requested review from a team as code owners September 28, 2025 13:40
@Glinte Glinte changed the title Fix lazy attributes getting accessed on repository update method fix: Lazy attributes getting accessed on repository update method Sep 28, 2025
@Glinte Glinte force-pushed the fix-lazy-repo-update branch from 21a7e8d to 6ce7291 Compare September 28, 2025 13:45
@Glinte Glinte changed the title fix: Lazy attributes getting accessed on repository update method fix: lazy attributes getting accessed on repository update method Sep 28, 2025
@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.34%. Comparing base (00815a4) to head (4165925).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #553   +/-   ##
=======================================
  Coverage   79.34%   79.34%           
=======================================
  Files          87       87           
  Lines        6260     6260           
  Branches      782      782           
=======================================
  Hits         4967     4967           
  Misses       1045     1045           
  Partials      248      248           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@cofin cofin left a comment

Choose a reason for hiding this comment

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

Thank you! The fix looks good.

@cofin cofin merged commit a737b63 into litestar-org:main Oct 8, 2025
16 checks passed
Copy link

github-actions bot commented Oct 8, 2025

Documentation preview will be available shortly at https://litestar-org.github.io/advanced-alchemy-docs-preview/553

@Glinte Glinte deleted the fix-lazy-repo-update branch October 8, 2025 23:30
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.

Bug: Still errors in SQLAlchemyRepository update method with lazy

3 participants