-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Show notifier on page load, if notifier params are in query string #7636
Conversation
Some questions I have about the code in this PR:
|
Can this use markdown in |
From my testing, if |
What do you think about removing the value from the query string (using |
I imagine you mean right after the notification has been triggered. Yeah, I think that is a good idea. It should work for licensing as well. |
jenkins, test it |
@@ -44,3 +45,5 @@ chrome | |||
moment.tz.setDefault(tz); | |||
} | |||
}); | |||
|
|||
modules.get('kibana').run(Notifier.run); |
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 like this approach much better, but I think Notifier.run
should probably be Notifier.pullMessagesFromUrl
or something
LGTM |
Show notifier on page load, if notifier params are in query string Former-commit-id: 4f2cd1f
An application may want to redirect to Kibana and show a toast notification post-redirect. This PR enables this functionality.
Specifically, if the Kibana app finds a query string parameter named
notif_msg
, it will create a Notifier with the value of that parameter as its message. Optionally, two additional query string parameters may be passed:notif_lvl
for notification level (error, warning, etc.). Default = info.notif_loc
for notification location. Default = no location is set.