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: Fix an issue where feedback that shared contact info was not sent #1909

Merged
merged 2 commits into from
Oct 15, 2024

Conversation

zusorio
Copy link
Member

@zusorio zusorio commented Oct 15, 2024

Feedback emails are sent in a background task to decrease response latency. Unfortunately, this means that the SQLAlchemy session is already closed and none of the fields of DatabaseUser can be resolved. This bug was not found because the error messages are swallowed by the background task. The bug is fixed by turning the DatabaseUser object into a normal User object before passing it to the background task.

Feedback emails are sent in a background task to decrease response latency. Unfortunately, this
means that the SQLAlchemy session is already closed and none of the fields of DatabaseUser can be
resolved. This bug was not found because the error messages are swallowed by the background task.
The bug is fixed by turning the DatabaseUser object into a normal User object before passing it to
the background task.
@zusorio zusorio requested a review from MoritzWeber0 as a code owner October 15, 2024 10:10
Copy link

github-actions bot commented Oct 15, 2024

API Changelog 4.8.1.dev3+g138106ca

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 84.69%. Comparing base (ce0f9de) to head (2ddf467).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
backend/capellacollab/feedback/util.py 40.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1909      +/-   ##
==========================================
- Coverage   84.72%   84.69%   -0.04%     
==========================================
  Files         206      206              
  Lines        6737     6741       +4     
  Branches      464      463       -1     
==========================================
+ Hits         5708     5709       +1     
- Misses        867      870       +3     
  Partials      162      162              

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

This comment has been minimized.

Copy link

sonarcloud bot commented Oct 15, 2024

Copy link

This report was generated by comparing 138106c with ce0f9de.
If you would like to check difference, please check here.

success

ArtifactName: reg

✨✨ That's perfect, there is no visual difference! ✨✨

item count
pass 342
change 0
new 0
delete 0

@MoritzWeber0 MoritzWeber0 merged commit ac738c4 into main Oct 15, 2024
29 of 30 checks passed
@MoritzWeber0 MoritzWeber0 deleted the shared-contact-feedback-fix branch October 15, 2024 11:47
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