ZEPPELIN-181 Provide more Feedback on UI when Clicking the Cancel/Stop Button of a Pending/Running Paragraph#261
ZEPPELIN-181 Provide more Feedback on UI when Clicking the Cancel/Stop Button of a Pending/Running Paragraph#261r-kamath wants to merge 4 commits into
Conversation
…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
|
Tried on my local, LGTM. |
There was a problem hiding this comment.
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?
|
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.
|
@corneadoug @felixcheung thanks for the feedback. trying to make some changes in the server side to have CANCELING status. will post my updates here |
…into ZEPPELIN-181
…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
|
@corneadoug let me know if the update is good. Currently the new status
For a complete implementation this status should be used in Scheduler classes as well |
|
It'll broadcast 'CANCELING' event to connected browsers that is seeing the notebook. As you mentioned, for completeness, i think it's better insert |
|
and don't forget your unit tests :) |
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
|
will reopen when the patch is ready |
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>
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 :
