-
-
Notifications
You must be signed in to change notification settings - Fork 161
Add delay information display for pending messages in MessengerBundle #2967
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
Conversation
Co-authored-by: dpfaffenbauer <[email protected]>
…nstants Co-authored-by: dpfaffenbauer <[email protected]>
Co-authored-by: dpfaffenbauer <[email protected]>
|
| return $stamp?->getId(); | ||
| } | ||
|
|
||
| private function getDelayInfo(Envelope $envelope): ?string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for this method @copilot can try to use
use Carbon\Carbon;
use Carbon\CarbonInterface;
$diff = Carbon::now()->subMilliseconds($delayMs);
return Carbon::now()->diffForHumans(other: $diff, syntax: CarbonInterface::DIFF_ABSOLUTE, parts: 2);There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D
@copilot listen to this man :)
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot. |
|
Co-authored-by: dpfaffenbauer <[email protected]>



Summary
This PR adds support for displaying delayed message information in the MessengerBundle admin interface, addressing the feature request where messages dispatched with
DelayStampwere not showing any indication of their delayed status.Changes
delayproperty toMessageDetailsclass to track message delay informationMessageRepositoryto extractDelayStampinformation from message envelopesdiffForHumansfor human-readable delay formatting with multiple parts (e.g., "1 day 2 hours")How it works
When messages are dispatched with a
DelayStamp, the delay duration is extracted from the envelope and displayed using Carbon'sdiffForHumansmethod (e.g., "1 day 2 hours"). Messages without a delay stamp will show an empty delay column, indicating they are available for immediate processing.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.