Fix localhost domain issue in economically unviable refund emails #89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/localhost-domain-in-refund-emails"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Updated economically unviable refund email notifications to use
create_shop_context_request() instead of passing env_request directly
or creating DummyRequest objects. This ensures emails are sent from
the proper shop domain instead of localhost.
Fixed in:
Note: Duplicate payment processing was already correct.
Summary by CodeRabbit
Walkthrough
Introduces a ShopContextRequestWrapper and create_shop_context_request to construct a shop-scoped request for email generation. Updates refund/duplicate/exception email flows to use the wrapper, ensuring domain/host/app context is derived from the shop. Adds guards to send emails only when invoice and user context exist.
Changes
make_post_sell/lib/crypto_watcher/__init__.pySequence Diagram(s)
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
Poem
📜 Recent review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free
📥 Commits
Reviewing files that changed from the base of the PR and between
b0dc15b06aand94c6b65cd2.📒 Files selected for processing (1)
make_post_sell/lib/crypto_watcher/__init__.py(3 hunks)Comment
@coderabbitai helpto get the list of available commands and usage tips.changed the description
mentioned in commit
973f82ba59