Uh oh!
There was an error while loading. Please reload this page.
Download Student Applications as PDF (background process) and Excel - #200
Download Student Applications as PDF (background process) and Excel#200betsyecastro wants to merge 29 commits into
Conversation
…nto bulk-export-student-apps-pdf
b05ac6f to
9b3f3deCompare8ba4fce to
dc5330dComparedc5330d to
a13215eCompare
shukla-m
left a comment
There was a problem hiding this comment.
Hi @betsyecastro, this works great! I tested both bulk PDF downloads (with and without filters) and individual PDF download and everything seems to work as expected. I added a few comments for minor changes. Let me know if you have any questions. Thanks.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Adds support in the profile-students view for downloading both individual and multiple student applications. The "Download" option allows downloading a single application, while "Download Student Applications" enables exporting filtered applications by filing status in Excel or PDF formats to address issue #187
The job that generates the PDF file in the background, receives a
PdfGeneratorService- an implementation of thePdfGenerationContractinterface to support multiple PDF generation methods Browsershot, AWS Lambda, and container-based).The queue connection has been changed from the sync driver, which executes jobs synchronously during the request, to the database driver, which queues jobs in the database. These jobs are then processed asynchronously by a queue worker.
Requirements:
CACHE_DRIVER=redisREDIS_PORT=6379QUEUE_CONNECTION=databasecomposer installphp artisan queue:workTo clean up temporary files:
php artisan files:clean-up-pdfs. This command removes timestamped folders in the tmp/reports directory that are older than the specified threshold (default: 2 hours). Options:•
--root=tmp/reportsRoot directory where timestamped folders are stored•
--hours=2Deletes folders older than the specified number of hours•
--disk=Filesystem disk to use (defaults to FILESYSTEM_DISK)Replaces PR #192.