- 🇺🇸United States vikasminocha
Re-rolling the patch #7 🐛 The revision user is incorrect after CRON ran. Needs work to work for branch 2.3.x.
- Status changed to RTBC
over 1 year ago 10:06pm 30 March 2024 - last update
over 1 year ago 24 pass, 6 fail - last update
over 1 year ago Composer require-dev failure The last submitted patch, 7: revision_author-3094322-7.patch, failed testing. View results →
- First commit to issue fork.
- last update
over 1 year ago 56 pass, 2 fail - last update
over 1 year ago 62 pass - 🇺🇸United States firewaller
The latest MR patch has been working for us for some time now.
- Status changed to Needs review
5 days ago 12:33am 29 July 2025 - 🇦🇺Australia dpi Perth, Australia
I didn't see @mohit_aghera added tests, thanks.
Thanks for that suggestion @mstrelan, looks good.
Just a minor nit I've added, otherwise this looks good.
-
dpi →
committed 68a54aa5 on 2.8.x authored by
mohit_aghera →
Issue #3094322 by mohit_aghera, yovince, mstrelan: 🐛 Incorrect revision...
-
dpi →
committed 68a54aa5 on 2.8.x authored by
mohit_aghera →
- 🇦🇺Australia acbramley
FYI this broke kernel tests for us on a module automating scheduled transitions in 2 ways:
1. User entity schema needed to be installed, it probably should have been anyway (ST also doesn't declare a dependency on the user module which should probably be fixed?)
2.$scheduledTransition->getAuthor()
can return NULL if there's no current user setup, which in turn throwsTypeError: Drupal\Core\Entity\RevisionableContentEntityBase::setRevisionUser(): Argument #1 ($account) must be of type Drupal\user\UserInterface, null given
- 🇦🇺Australia dpi Perth, Australia
Happy for a follow up, automated ST is a edge case and I can see why tests might not have caught it.
But I would have thought PHPStan would have caught it...
On entity schema, not much we can do about that. Adding a dep wont automatically install schema, etc. Its one of those things you have to deal with on your own if youre implementing kernel tests involving third party Drupal code.
- 🇦🇺Australia dpi Perth, Australia
But I would have thought PHPStan would have caught it...
PHPStan doesnt report on the issue to level 8. We are presently on level 9 + baselined strict.
167 Parameter #1 $account of method Drupal\Core\Entity\RevisionLogInterface::setRevisionUser()
expects Drupal\user\UserInterface, Drupal\user\UserInterface|null given.
🪪 argument.type