Skip to content

ZEPPELIN-181 Provide more Feedback on UI when Clicking the Cancel/Stop Button of a Pending/Running Paragraph#261

Closed
r-kamath wants to merge 4 commits into
apache:masterfrom
r-kamath:ZEPPELIN-181
Closed

ZEPPELIN-181 Provide more Feedback on UI when Clicking the Cancel/Stop Button of a Pending/Running Paragraph#261
r-kamath wants to merge 4 commits into
apache:masterfrom
r-kamath:ZEPPELIN-181

Conversation

@r-kamath
Copy link
Copy Markdown
Member

On branch ZEPPELIN-181
Changes to be committed:
modified: zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
modified: zeppelin-web/src/app/notebook/paragraph/paragraph.html

screenshot :

…p Button of a Pending/Running Paragraph

 Changes to be committed:
	modified:   zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
	modified:   zeppelin-web/src/app/notebook/paragraph/paragraph.html
@prabhjyotsingh
Copy link
Copy Markdown
Contributor

Tried on my local, LGTM.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps independent from this visual change, not everything is cancel-able from the interpreter? should there be a way to communicate that to the visual?

@corneadoug
Copy link
Copy Markdown
Contributor

I think this should be handled at the Websocket/Backend level.

For example, after sending the CANCEL_PARAGRAPH, you will receive the note with paragraph.status as 'ABORT' once it is finished.

While you did set the pagraph.status to 'CANCELING', other people visiting the note would see it as 'PENDING' instead of 'CANCELING'

…ncel/Stop Button of a Pending/Running Paragraph"

This reverts commit ff9748f.
@r-kamath
Copy link
Copy Markdown
Member Author

@corneadoug @felixcheung thanks for the feedback. trying to make some changes in the server side to have CANCELING status. will post my updates here

eranwitkon pushed a commit to eranwitkon/incubator-zeppelin that referenced this pull request Aug 31, 2015
…UpdatedInterpreterSettingRequest.

Updated InterpreterRestAPI to send new InterpreterOption(remote=true) as option to Interpreter factory.
Rebase with PR apache#261 to return new created settings for REST API
- cancel paragraph backend call returns status CANCELING
@r-kamath
Copy link
Copy Markdown
Member Author

@corneadoug let me know if the update is good. Currently the new status CANCELING is used only for cancelParagraph server call and in the UI.

@felixcheung @Leemoonsoo

perhaps independent from this visual change, not everything is cancel-able from the interpreter?

For a complete implementation this status should be used in Scheduler classes as well

@Leemoonsoo
Copy link
Copy Markdown
Member

It'll broadcast 'CANCELING' event to connected browsers that is seeing the notebook.
However, if browser refreshes, it'll not see 'CANCELING' status any more.

As you mentioned, for completeness, i think it's better insert CANCELING status into state transition in Scheduler class.

@djoelz
Copy link
Copy Markdown

djoelz commented Aug 31, 2015

and don't forget your unit tests :)

asfgit pushed a commit that referenced this pull request Sep 3, 2015
This PR remove the option part from the Interpreter setting REST API
 [x] Remove option from list settings
 [x] Remove option from Create settings and update settings
 [X] Update Create setting to return new created setting (jira 261) replacing pr # 258
Remove option from list setting is done by implementing a Exclusion strategy for the gson serialization.
Remove option from the Create\Update REST API is done by passing new InterpreterOption(remote=true) the the Factory and by omitting the InterpreterOption from the NewInterpreterSetting and UpdateInterpreterSetting classes.

REST API tests are managed in another
Update to the documentation will be done in a separate PR

Author: eranwitkon <goi.cto@gmail.com>

Closes #266 from eranwitkon/272 and squashes the following commits:

f196a76 [eranwitkon] Remove option setting from Interpreter web page
5ad5e99 [eranwitkon] Add Licensed to the Apache Software Foundation for the new JsonExclusionStrategy class
b1ff1aa [eranwitkon] Fix CI error
f2178f6 [eranwitkon] Remove InterpreterOption class from NewInterpreterSettingRequest and UpdatedInterpreterSettingRequest. Updated InterpreterRestAPI to send new InterpreterOption(remote=true) as option to Interpreter factory. Rebase with PR #261 to return new created settings for REST API
14e8809 [eranwitkon] Remove InterpreterOption class from NewInterpreterSettingRequest and UpdatedInterpreterSettingRequest. Updated InterpreterRestAPI to send new InterpreterOption(remote=true) as option to Interpreter factory.
b980069 [eranwitkon] Added exclusion strategy class for gson to exclude InterpreterOption from response. JsonResponse was updated accordingly to apply this strategy
@r-kamath
Copy link
Copy Markdown
Member Author

will reopen when the patch is ready

@r-kamath r-kamath closed this Sep 11, 2015
Leemoonsoo pushed a commit to Leemoonsoo/zeppelin that referenced this pull request Sep 17, 2015
This PR remove the option part from the Interpreter setting REST API
 [x] Remove option from list settings
 [x] Remove option from Create settings and update settings
 [X] Update Create setting to return new created setting (jira 261) replacing pr # 258
Remove option from list setting is done by implementing a Exclusion strategy for the gson serialization.
Remove option from the Create\Update REST API is done by passing new InterpreterOption(remote=true) the the Factory and by omitting the InterpreterOption from the NewInterpreterSetting and UpdateInterpreterSetting classes.

REST API tests are managed in another
Update to the documentation will be done in a separate PR

Author: eranwitkon <goi.cto@gmail.com>

Closes apache#266 from eranwitkon/272 and squashes the following commits:

f196a76 [eranwitkon] Remove option setting from Interpreter web page
5ad5e99 [eranwitkon] Add Licensed to the Apache Software Foundation for the new JsonExclusionStrategy class
b1ff1aa [eranwitkon] Fix CI error
f2178f6 [eranwitkon] Remove InterpreterOption class from NewInterpreterSettingRequest and UpdatedInterpreterSettingRequest. Updated InterpreterRestAPI to send new InterpreterOption(remote=true) as option to Interpreter factory. Rebase with PR apache#261 to return new created settings for REST API
14e8809 [eranwitkon] Remove InterpreterOption class from NewInterpreterSettingRequest and UpdatedInterpreterSettingRequest. Updated InterpreterRestAPI to send new InterpreterOption(remote=true) as option to Interpreter factory.
b980069 [eranwitkon] Added exclusion strategy class for gson to exclude InterpreterOption from response. JsonResponse was updated accordingly to apply this strategy

(cherry picked from commit 42d9271)
Signed-off-by: Lee moon soo <moon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants