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

Org: Avoids storing ORM objects in orm_cached properties #1520

Merged
merged 11 commits into from
Sep 13, 2024

Conversation

Daverball
Copy link
Member

@Daverball Daverball commented Sep 12, 2024

Commit message

Org: Avoids storing ORM objects in orm_cached properties

This should improve reliability and should introduce less flaky behavior caused by incorrect merges of objects into the session.

TYPE: Bugfix
LINK: OGC-1813

Checklist

  • I have performed a self-review of my code
  • I have tested my code thoroughly by hand
  • I have added tests for my changes/features

This should improve reliability and should introduce less flaky
behavior caused by incorrect merges of objects into the session.

TYPE: Bugfix
LINK: OGC-1813
Copy link

linear bot commented Sep 12, 2024

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 96.64634% with 11 lines in your changes missing coverage. Please review.

Project coverage is 89.49%. Comparing base (d64955e) to head (be0fe12).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/onegov/activity/models/period.py 96.12% 5 Missing ⚠️
src/onegov/org/request.py 92.45% 4 Missing ⚠️
src/onegov/api/token.py 50.00% 1 Missing ⚠️
src/onegov/core/orm/cache.py 98.41% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
src/onegov/activity/__init__.py 100.00% <ø> (ø)
src/onegov/activity/collections/activity.py 94.09% <ø> (ø)
src/onegov/activity/collections/volunteer.py 63.63% <100.00%> (ø)
src/onegov/activity/models/__init__.py 100.00% <100.00%> (ø)
src/onegov/activity/models/activity.py 98.90% <100.00%> (ø)
src/onegov/core/cache.py 95.45% <ø> (ø)
src/onegov/core/orm/__init__.py 97.10% <100.00%> (-1.45%) ⬇️
src/onegov/core/orm/utils.py 100.00% <100.00%> (ø)
src/onegov/feriennet/app.py 96.77% <100.00%> (+0.04%) ⬆️
src/onegov/feriennet/boardlets.py 86.09% <100.00%> (-0.45%) ⬇️
... and 24 more

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d64955e...be0fe12. Read the comment docs.

@Daverball Daverball merged commit f864532 into master Sep 13, 2024
14 checks passed
@Daverball Daverball deleted the ogc-1813-harden-orm-cached branch September 13, 2024 10:11
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.

1 participant