-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-269 : Adding Notifications Service for Zeppelin #263
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
|
looks good... what is the guideline on when to show this notification? |
|
zeppelin Notifications are designed to inform users about status of zeppelin.
Default message will be shown for 10000 ms (time is configurable) and after that the message starts fading out. If user noticed the notification, user can remove it by clicking on it. |
|
Just tested it out a bit. I also think the message time should be reduced to something like 6000ms, currently its too long. I think it could also be nice not to include any error call in this PR (just the service) and add error calls in another PR.
|
|
@corneadoug Thanks for the feedback I will update PR |
|
also what if I want to copy the error? If I click it disappears. Maybe a close X or something and the text is selectable? |
|
@djoelz this could be useful. |
|
@corneadoug think of a case where the user does not have access to the console. Think Zeppelin hosted as a website. Then users might run into issues that they want who ever is hosting the site to investigate. How would they send these errors? That's why I think being able to copy the text would be useful. |
|
console = web browser dev tools console. |
259e48a to
35d7469
Compare
|
@djoelz Current Zeppelin doesn't have facility to show error messages or system failures for the users on web user interface. So the notification service will enable this. Zeppelin developers could use this notification service for error handling. The answers corneadoug have given are correct. Thanks. |
|
@corneadoug Default message time is 6000ms.If notification message is needed to show for more duration than default time. It can be done as below. |
|
@Leemoonsoo : Ready for Merge |
|
I have more feedbacks/changes, especially to match @djoelz comments. |
|
@Madhuka Can you update the PR description with new screenshot from my PR? |
|
@corneadoug Thanks |
|
Moved to 'ngToast Directive' from 'angular-ui-notification'. It include below features
Notifications can be used by including ngToast service in the controller. It support four different level of notification:
|
|
Looks good to me (obviously) :) |
|
That looks great! Good job guys! |
|
It is good to go for Merge. |
|
I wanted to mention that there were similar effort before. #224. Can someone tell me how i can use this feature? |
|
@Leemoonsoo You can used notification service by calling. |
|
Thanks for usage. tested and working well. |
|
#224 was closed, and I'm not sure why. You can find most of the differences in this PR thread, main ones being:
This PR only brings the Notification Service, so that we separate adding the notifications in the zeppelin code from adding the Notification Service. On top of what @Madhuka said, you will also have to inject the service in your controller, for example: |
### Adding Notifications Service for Zeppelin
- [x] Notifications feature added
- [x] UI-Notifications component added
- [x] Zeppelin notifications can be configured
- [x] Different level of notification
* ngToast.danger('message')
* ngToast.warning('message')
* ngToast.info('message')
* ngToast.success('message')
## Screen shots

Author: madhuka <madhukaudantha@gmail.com>
Author: Damien Corneau <corneadoug@gmail.com>
Closes apache#263 from Madhuka/errormsg-services and squashes the following commits:
6d5cf4d [madhuka] Merge pull request #1 from corneadoug/change/errorMsgDirective
3ece1eb [Damien Corneau] configure and style ngToast
460d364 [Damien Corneau] Remove angular-ui-notification for ngToast
35d7469 [madhuka] fixing hover, delay time and cleaning error msg
9b131f2 [madhuka] using bower to update
a0baf57 [madhuka] Adding Error Msg and Notifications feature
(cherry picked from commit 706755a)
Signed-off-by: Lee moon soo <moon@apache.org>

Adding Notifications Service for Zeppelin
Screen shots