Conversation
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThe site screenshot queuing code in the Builds worker was moved from a location before the deployment auto-activation/ready path to a location after the deployment-ready/VCS handling path. Logging and error handling around the operation were left unchanged. The observable effect is that screenshots are now queued after deployments are marked ready (and after related Git/VCS actions) instead of before activation. Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@src/Appwrite/Platform/Modules/Functions/Workers/Builds.php`:
- Around line 1015-1024: The screenshot-queuing block currently runs for every
site deployment even when not activated; move the if ($resource->getCollection()
=== 'sites') { ...
$queueForScreenshots->setDeploymentId($deployment->getId())->setProject($project)->trigger();
Console::log('Site screenshot queued'); } block inside the existing if
($activateBuild) condition so screenshots are only queued for activated
deployments, and remove the trailing whitespace after the if
($resource->getCollection() === 'sites') line to fix the lint error.
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist