You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bee update-db discards the messages returned by hook_update_N #494
When a hook_update_N() returns a message string — the normal way an update reports what it did — bee update-db throws it away. The update runs, but the message never reaches the user.
Backdrop's own web updater surfaces these: update_finished() collects each hook's return value into $_SESSION['update_results'], and the results page prints them. The argument here is simply that bee update-db should match its sibling in core.
(Drush does the same, but that's a Drupal convention Backdrop hasn't necessarily adopted — so weight that as you like; the consistency case is with Backdrop's own web updater.)
Today the only way for an update to be heard under bee is to call bee_message() directly, which forces the module to special-case bee.
Steps to reproduce
Add an update hook that returns a string:
functionmymodule_update_1000() {
return'Did the thing.';
}
Run bee update-db and apply it.
The update runs, but Did the thing. is never shown.
Expected
bee update-db shows each update's returned message, the way the web updater does.
Implementation
I'll open two PRs against this issue as alternatives, so you can pick the approach you prefer:
Simple — after update_batch() finishes, print the messages it collected. Small; prints everything at the end.
Streaming — run each update inline and print its message the moment it finishes (live per-update output). More code, but shows progress and results as they happen.
@douggreen - thanks for raising this. I like the idea of the streaming one as feedback as you go is a way I've been doing more and more (since I introduced the bee_instant_message method).
I've had a quick skim through but will try and find time soon to do some thorough testing and a more thorough review.
If you can update the PR description so the first line says: Fixes #494
that will properly link the PR to the issue
Activity
yorkshire-pudding commentedon Aug 20, 2026
@douggreen - thanks for raising this. I like the idea of the streaming one as feedback as you go is a way I've been doing more and more (since I introduced the
bee_instant_messagemethod).I've had a quick skim through but will try and find time soon to do some thorough testing and a more thorough review.
If you can update the PR description so the first line says:
Fixes #494that will properly link the PR to the issue