-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[10.x] Fix "after commit" callbacks not running on nested transactions using RefreshDatabase
or DatabaseMigrations
#48523
Commits on Sep 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1f10b5e - Browse repository at this point
Copy the full SHA 1f10b5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9538d6 - Browse repository at this point
Copy the full SHA d9538d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6de881 - Browse repository at this point
Copy the full SHA e6de881View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06adc98 - Browse repository at this point
Copy the full SHA 06adc98View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf2764b - Browse repository at this point
Copy the full SHA bf2764bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 451fd8b - Browse repository at this point
Copy the full SHA 451fd8bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f49260e - Browse repository at this point
Copy the full SHA f49260eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a7a2fa2 - Browse repository at this point
Copy the full SHA a7a2fa2View commit details -
Update src/Illuminate/Database/DatabaseTransactionsManager.php
Co-authored-by: Mior Muhammad Zaki <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e3df8b1 - Browse repository at this point
Copy the full SHA e3df8b1View commit details
Commits on Sep 21, 2023
-
Changes the way the after commit callbacks are executed
to avoid remembering which transactions to ignore Before, we were remembering the test transaction so we could ignore it when deciding to run the after commit callbacks or not. We're still handling the after commit callbacks like that but now instead of remembering which transactions to ignore, we're always calling the DatabaseTransactionManager::commit method. The difference is that now we're passing the current transaction level to it. The method will decide to call the callbacks or not based on that level and whether or not this is on in test mode. When in tests, instead of setting the current transaction to be remembered so it could be ignored, we're now only setting the DatabaseTransactionManager to test mode. When in test mode, it will execute the callbacks when the transactions count reaches 1 (remember that the test runs in a transaction, so that's the "root" level). Otherwise, it runs the callbacks when the transactions level is on level 0 (like in production). There's also a change in the DatabaseTransactionManager::addCallback method. It now also checks if it's in test mode. When not in test mode, it only adds the callback to the execution queue if there's an open transaction. Otherwise, the callback is executed right away. When in test mode, the number of transactions has to be greater than one for it to be added to the callbacks queue.
Configuration menu - View commit details
-
Copy full SHA for f5aacf5 - Browse repository at this point
Copy the full SHA f5aacf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d7b8ee - Browse repository at this point
Copy the full SHA 1d7b8eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65c75ae - Browse repository at this point
Copy the full SHA 65c75aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2037453 - Browse repository at this point
Copy the full SHA 2037453View commit details -
Configuration menu - View commit details
-
Copy full SHA for c7c7f3a - Browse repository at this point
Copy the full SHA c7c7f3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d8f1fa - Browse repository at this point
Copy the full SHA 0d8f1faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 393a69c - Browse repository at this point
Copy the full SHA 393a69cView commit details -
Configuration menu - View commit details
-
Copy full SHA for d3dcb03 - Browse repository at this point
Copy the full SHA d3dcb03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68ed29a - Browse repository at this point
Copy the full SHA 68ed29aView commit details
Commits on Sep 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5825929 - Browse repository at this point
Copy the full SHA 5825929View commit details -
Configuration menu - View commit details
-
Copy full SHA for c660879 - Browse repository at this point
Copy the full SHA c660879View commit details -
Configuration menu - View commit details
-
Copy full SHA for e111e70 - Browse repository at this point
Copy the full SHA e111e70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 239e6ec - Browse repository at this point
Copy the full SHA 239e6ecView commit details
Commits on Sep 25, 2023
-
Tests observer using afterCommit
Signed-off-by: Mior Muhammad Zaki <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3510970 - Browse repository at this point
Copy the full SHA 3510970View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bb02ae - Browse repository at this point
Copy the full SHA 7bb02aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6799bde - Browse repository at this point
Copy the full SHA 6799bdeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc6900 - Browse repository at this point
Copy the full SHA 9cc6900View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad9b10c - Browse repository at this point
Copy the full SHA ad9b10cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a0232b - Browse repository at this point
Copy the full SHA 4a0232bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36f1d21 - Browse repository at this point
Copy the full SHA 36f1d21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f3a943 - Browse repository at this point
Copy the full SHA 2f3a943View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e8bcf4 - Browse repository at this point
Copy the full SHA 1e8bcf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f245912 - Browse repository at this point
Copy the full SHA f245912View commit details -
Configuration menu - View commit details
-
Copy full SHA for be843ef - Browse repository at this point
Copy the full SHA be843efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6519d0d - Browse repository at this point
Copy the full SHA 6519d0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2a079b - Browse repository at this point
Copy the full SHA e2a079bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21c6548 - Browse repository at this point
Copy the full SHA 21c6548View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5863f0c - Browse repository at this point
Copy the full SHA 5863f0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7571318 - Browse repository at this point
Copy the full SHA 7571318View commit details -
Configuration menu - View commit details
-
Copy full SHA for a8882f5 - Browse repository at this point
Copy the full SHA a8882f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4ec4a2 - Browse repository at this point
Copy the full SHA d4ec4a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e9eae3 - Browse repository at this point
Copy the full SHA 8e9eae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2266a2 - Browse repository at this point
Copy the full SHA d2266a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9968ad2 - Browse repository at this point
Copy the full SHA 9968ad2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3c3951 - Browse repository at this point
Copy the full SHA b3c3951View commit details -
Configuration menu - View commit details
-
Copy full SHA for d13db21 - Browse repository at this point
Copy the full SHA d13db21View commit details -
Configuration menu - View commit details
-
Copy full SHA for e599333 - Browse repository at this point
Copy the full SHA e599333View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c99f62 - Browse repository at this point
Copy the full SHA 7c99f62View commit details -
Configuration menu - View commit details
-
Copy full SHA for c645396 - Browse repository at this point
Copy the full SHA c645396View commit details -
Merge branch 'fix-create-or-first-transaction-callbacks' into 48466-r…
…edux Signed-off-by: Mior Muhammad Zaki <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1decbf - Browse repository at this point
Copy the full SHA b1decbfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f93300 - Browse repository at this point
Copy the full SHA 4f93300View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e93349 - Browse repository at this point
Copy the full SHA 1e93349View commit details -
Configuration menu - View commit details
-
Copy full SHA for 082f4f5 - Browse repository at this point
Copy the full SHA 082f4f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9514f3b - Browse repository at this point
Copy the full SHA 9514f3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5877c2 - Browse repository at this point
Copy the full SHA f5877c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ff509f - Browse repository at this point
Copy the full SHA 8ff509fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55e7044 - Browse repository at this point
Copy the full SHA 55e7044View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9474b23 - Browse repository at this point
Copy the full SHA 9474b23View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7aa391 - Browse repository at this point
Copy the full SHA a7aa391View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9ccf6c - Browse repository at this point
Copy the full SHA f9ccf6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 410bb9c - Browse repository at this point
Copy the full SHA 410bb9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ae7684 - Browse repository at this point
Copy the full SHA 1ae7684View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc9a4d5 - Browse repository at this point
Copy the full SHA bc9a4d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c503a3 - Browse repository at this point
Copy the full SHA 8c503a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for f81cab0 - Browse repository at this point
Copy the full SHA f81cab0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9a3a21e - Browse repository at this point
Copy the full SHA 9a3a21eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8beb730 - Browse repository at this point
Copy the full SHA 8beb730View commit details -
Configuration menu - View commit details
-
Copy full SHA for 541af7b - Browse repository at this point
Copy the full SHA 541af7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9aa3c32 - Browse repository at this point
Copy the full SHA 9aa3c32View commit details -
Configuration menu - View commit details
-
Copy full SHA for c107aec - Browse repository at this point
Copy the full SHA c107aecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 565c579 - Browse repository at this point
Copy the full SHA 565c579View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0542d0e - Browse repository at this point
Copy the full SHA 0542d0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95dfe34 - Browse repository at this point
Copy the full SHA 95dfe34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34f3933 - Browse repository at this point
Copy the full SHA 34f3933View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dd9c57 - Browse repository at this point
Copy the full SHA 7dd9c57View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcedae8 - Browse repository at this point
Copy the full SHA bcedae8View commit details
Commits on Sep 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c291c3a - Browse repository at this point
Copy the full SHA c291c3aView commit details -
Update src/Illuminate/Foundation/Testing/DatabaseTransactionsManager.php
Co-authored-by: Tony Messias <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 681154c - Browse repository at this point
Copy the full SHA 681154cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa66e08 - Browse repository at this point
Copy the full SHA fa66e08View commit details -
Configuration menu - View commit details
-
Copy full SHA for a519fde - Browse repository at this point
Copy the full SHA a519fdeView commit details