Michael Derynck
Michael Derynck
This seems to work ok when I test it locally but not in our production environment.
What's happening is the date isn't being parsed on android so it uses the fallback_text we are repeating the integer timestamp as the fallback_text. ``` def format_datetime_to_slack(timestamp, format="date_short"): return f""...
Docs: https://api.slack.com/reference/surfaces/formatting#date-formatting To recreate: https://app.slack.com/block-kit-builder/T01TZ502XCH#%7B%22blocks%22:%5B%7B%22type%22:%22section%22,%22text%22:%7B%22type%22:%22mrkdwn%22,%22text%22:%22%3C!date%5E1392734382%5E%7Bdate_short%7D%20%7Btime%7D%7CFail%20to%20parse%3E%22%7D%7D%5D%7D
Another spot for improvement here is switching teams triggers a reload/initialization. If possible switching teams should be more like navigating between tabs and not trigger a plugin reload.
I tested the most recent set of changes on Ubuntu and Android. All the messages displayed properly when displaying as notifications or mentions & reactions.
Current (Android Mentions & Reactions) - I think the slack client was updated so they appear blank instead of "Content cannot be displayed"  Current (Android Thread)  After (Android...
What do you think about an option to use `jq` instead of plain regex here?
This has already been fixed
Currently the hope is to eventually replace OnCall API keys with Grafana Service Account tokens which already support TTL and fine grained permissions.
See also https://github.com/grafana/oncall/issues/61