-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Watcher: Make message.text in slack messages optional #30071
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
Comments
Let me know if anyone is working on this and if not, I can grab it. I'm new to this project so it will take me a little extra time to get to PR. |
there is currently noone working on this, working on a PR is much appreciated! |
Simplistic scan over the code solution:
Based on the SlackAccount.java code, a null message and/or null Attachements is tolerated via null checks. |
I am working on testing the solution above but I'm hitting so many dependency issues building the project in IntelliJ that I'm not making a lot of progress. I couldn't find a help page for this. Any pointers? |
@albendz You should be able to use the gradle integration in IntelliJ to get everything working. Run IntelliJ can take some time to builds its caches and refresh indices, etc but that should give you a working project. If you run into specific errors, please let us know. |
@tvernum Extremely obvious in retrospect. Thanks for the reminder. |
Is there a better place to ask setup questions than on this issue? I'm now working on installing Java 9 alongside Java 10 against Oracle recommendation due to the build errors I'm getting. |
We have a forum where you can ask questions. |
Thanks Tim, I've created this thread: https://discuss.elastic.co/t/java-9-dependency/135214 Also, if you could check my earlier comments on this regarding my proposed solution, I would appreciate the verification of my approach. |
Original comment by @spinscale:
From: https://discuss.elastic.co/t/make-message-text-not-required-for-slack-action/120939
The Slack action currently requires
message.text
to be present, though slack will gladly require a message without it, as a message can have an attachment which contains the text to be displayed. The current requirement formessage.text
means a message with attachment needs bothmessage.text
andmessage.attachments.text
, causing the message displayed in Slack to look slightly disjointed. Would be excellent to remove this requirement.The text was updated successfully, but these errors were encountered: