Adiciona consumo de fila para envio de emails ao publicar pareceres#31
Merged
ronnyjohnti merged 3 commits intomainfrom Jul 7, 2025
Merged
Adiciona consumo de fila para envio de emails ao publicar pareceres#31ronnyjohnti merged 3 commits intomainfrom
ronnyjohnti merged 3 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a RabbitMQ consumer to send notification emails when opinions are published.
- Adds an AMQP service and console command to consume the
opinions_publishedqueue and dispatch emails - Implements a
PublishedOpinionsMailable and Blade template for the email content - Updates Docker supervisor, config/app, and example/testing env files to wire up the new queue
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| resources/views/emails/published-opinions.blade.php | New email template for "PublishedOpinions" |
| docker/php-fpm/supervisord.conf | Supervisor program entry to run the new RabbitMQ consumer |
| docker/php-fpm/99-xdebug.ini | Switched Xdebug mode to coverage |
| config/app.php | Registered opinions_published queue and added exchanges config key |
| composer.json | Moved and deduplicated the ext-pdo requirement |
| app/Services/AmqpService.php | Introduced AmqpService for queue declaration and consumption |
| app/Mail/PublishedOpinions.php | Created the PublishedOpinions Mailable |
| app/Console/Commands/ConsumePublishedOpinions.php | Added command to consume messages and send notification emails |
| .env.testing | Set testing values for RabbitMQ exchange and queue |
| .env.example | Changed default DB to pgsql and added new RabbitMQ variables |
073adf5 to
40def67
Compare
Junior-Shyko
approved these changes
Jul 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ Descrição do propósito desse Pull Request
🧭 Referência a Issue
❓ O que foi feito para atingir isso?
🏃♀️ Tipo de mudança
Marque as opções relevantes:
🕵️ Como foi testado?
Checklist: ✔️
Observação: