We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AfterImport being triggered twice after every successful import with ChunkReading
<?php class TestImport implements ToModel, WithProgressBar, WithEvents, WithHeadingRow, WithChunkReading { // ... public function registerEvents(): array { return [ AfterImport::class => function (AfterImport $event) { echo "\n==DONE==\n"; }, ]; } }
Expected behavior: AfterImport event should be called once
Actual behavior: AfterImport event fired twice.
19501/20415 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░] 95% ==DONE== ==DONE== 20415/20415 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
#1944 (comment) #1944 (comment) #1944 (comment) #1944 (comment) #1944 (comment) #1944 (comment)
The text was updated successfully, but these errors were encountered:
Can you create a failing test for this and if you find the root cause, feel free to PR a fix!
Sorry, something went wrong.
c5494ba
Issue was that listeners got registered again on the AfterImportJob. This shouldn't happen if the job isn't queued. Fixed for next release.
sheets() is called twice for me (excel 3.1.31/ PHP 7.4.3 / laravel 6 ) Could this be the same bug?
No branches or pull requests
Prerequisites
Versions
Description
AfterImport being triggered twice after every successful import with ChunkReading
Steps to Reproduce
Expected behavior:
AfterImport event should be called once
Actual behavior:
AfterImport event fired twice.
#1944 (comment)
#1944 (comment)
#1944 (comment)
#1944 (comment)
#1944 (comment)
#1944 (comment)
Additional Information
The text was updated successfully, but these errors were encountered: