Uh oh!
There was an error while loading. Please reload this page.
ZEPPELIN-269 : Adding Notifications Service for Zeppelin - #263
Conversation
felixcheung
commented
Aug 28, 2015
looks good... what is the guideline on when to show this notification? |
Madhuka
commented
Aug 29, 2015
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. |
corneadoug
commented
Aug 31, 2015
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.
|
Madhuka
commented
Aug 31, 2015
@corneadoug Thanks for the feedback I will update PR |
djoelz
commented
Aug 31, 2015
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? |
corneadoug
commented
Sep 1, 2015
@djoelz this could be useful. |
djoelz
commented
Sep 1, 2015
@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. |
corneadoug
commented
Sep 1, 2015
console = web browser dev tools console. |
259e48a to
35d7469CompareMadhuka
commented
Sep 1, 2015
@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. |
Madhuka
commented
Sep 1, 2015
@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. |
Madhuka
commented
Sep 1, 2015
@Leemoonsoo : Ready for Merge |
corneadoug
commented
Sep 1, 2015
I have more feedbacks/changes, especially to match @djoelz comments. |
corneadoug
commented
Sep 1, 2015
@Madhuka Can you update the PR description with new screenshot from my PR? |
Madhuka
commented
Sep 1, 2015
@corneadoug Thanks |
Madhuka
commented
Sep 1, 2015
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:
|
corneadoug
commented
Sep 1, 2015
Looks good to me (obviously) :) |
djoelz
commented
Sep 1, 2015
That looks great! Good job guys! |
Madhuka
commented
Sep 1, 2015
It is good to go for Merge. |
Leemoonsoo
commented
Sep 2, 2015
I wanted to mention that there were similar effort before. #224. Can someone tell me how i can use this feature? |
Madhuka
commented
Sep 2, 2015
@Leemoonsoo You can used notification service by calling. |
Leemoonsoo
commented
Sep 2, 2015
Thanks for usage. tested and working well. |
corneadoug
commented
Sep 2, 2015
#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>
Closesapache#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