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

perf: remove extra refresh #789

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

giovanni-guidini
Copy link
Contributor

This re-does part of #776 (that was reverted)

It aims to reduce 1 DB operation by not refreshing immediately after changing a Session object.
And to make the code style more similar to what we use elsewhere (not accessing the tables directly unless necessary)

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

This re-does part of #776 (that was reverted)

It aims to reduce 1 DB operation by not refreshing immediately after changing a Session object.
And to make the code style more similar to what we use elsewhere (not accessing the tables directly unless necessary)
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (70406db) to head (89a804f).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36601    36600       -1     
==========================================
- Hits        35882    35881       -1     
  Misses        719      719              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.92% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.99% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
services/repository.py 96.74% <100.00%> (-0.02%) ⬇️

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36601    36600       -1     
==========================================
- Hits        35882    35881       -1     
  Misses        719      719              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.92% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.99% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
services/repository.py 96.74% <100.00%> (-0.02%) ⬇️

Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (70406db) to head (89a804f).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36601    36600       -1     
==========================================
- Hits        35882    35881       -1     
  Misses        719      719              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.92% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.99% <100.00%> (-0.01%) ⬇️
Files Coverage Δ
services/repository.py 96.74% <100.00%> (-0.02%) ⬇️

@codecov-qa
Copy link

codecov-qa bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.03%. Comparing base (70406db) to head (89a804f).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #789      +/-   ##
==========================================
- Coverage   98.03%   98.03%   -0.01%     
==========================================
  Files         442      442              
  Lines       36601    36600       -1     
==========================================
- Hits        35882    35881       -1     
  Misses        719      719              
Flag Coverage Δ
integration 98.03% <100.00%> (-0.01%) ⬇️
unit 98.03% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.92% <100.00%> (-0.01%) ⬇️
OutsideTasks 97.99% <100.00%> (-0.01%) ⬇️
Files with missing lines Coverage Δ
services/repository.py 96.74% <100.00%> (-0.02%) ⬇️

@giovanni-guidini giovanni-guidini added this pull request to the merge queue Oct 16, 2024
Merged via the queue into main with commit 7ec53d8 Oct 16, 2024
26 of 27 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/remove-extra-refresh branch October 16, 2024 08:35
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.

2 participants