Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Notifier] [Bridge] Fix missed messageId for SendMessage object in slack notifier#40955
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Notifier] [Bridge] Fix missed messageId for SendMessage object in slack notifier#40955
Uh oh!
There was an error while loading.Please reload this page.
Conversation
3fae769 to374788dCompare| returnnewSentMessage($message, (string)$this); | ||
| $sentMessage =newSentMessage($message, (string)$this); | ||
| $sentMessage->setMessageId($result['ts']); |
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.
Shall we check if the key exists in the array?
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.
We already check for "ok" status. I had looked to another transports/bridges, they did not have even this checks.
Which behavior do you expect, if by some unknown reason slack return response with ok status, but with no messageid specified?
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.
Yes, but ok let's keep it
src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Notifier/Bridge/Slack/Tests/SlackTransportTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
OskarStark commentedApr 27, 2021
I would consider this a feature, it is working without the ID and must wait for |
374788d to838f36bCompareWaylandAce commentedApr 27, 2021
I though to put this change as usual to 5.x branch, but checked "Maintenance" page (https://symfony.com/doc/current/contributing/code/maintenance.html) and it's sounds like it matches the rules. |
fabpot left a comment
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'm fine merging it in 5.2.
nicolas-grekas commentedMay 7, 2021
Thank you@WaylandAce. |
There are missed messageId property for SendMessage object in slack notifier.
Regarding slack's documentation:https://api.slack.com/messaging/sending#publishing