-
Notifications
You must be signed in to change notification settings - Fork 22
[Chore] Notify via Email When codeflash --all Completes #529
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
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
codeflash/optimization/optimizer.py
Outdated
| logger.info("❌ No optimizations found.") | ||
| elif self.args.all: | ||
| logger.info("✨ All functions have been optimized! ✨") | ||
| response = send_completion_email() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Aren't we sending the mail with some details on optimization?
Or is it planned in TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is planned as a TODO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So Can you please add it as a comment for TODO here.
|
@HeshamHM28 can you fix the type error here, then we can merge this |
|
@Saga4 can you review? |
PR Type
Enhancement
Description
Add send_completion_email API function
Invoke email send on optimize --all completion
Add error handling with Sentry capturing
Log email send success and failure
Changes diagram
Changes walkthrough 📝
cfapi.py
Add send_completion_email API functioncodeflash/api/cfapi.py
send_completion_emailAPI functionownerandrepowithget_repo_owner_and_name/send-completion-emailendpointoptimizer.py
Trigger completion email after optimizationscodeflash/optimization/optimizer.py
send_completion_emailfromcfapi--alloptimization