Teja Srivastasa created ZEPPELIN-667:
----------------------------------------

             Summary: Get Note to be Ajax call Instead of web socket 
                 Key: ZEPPELIN-667
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-667
             Project: Zeppelin
          Issue Type: Improvement
            Reporter: Teja Srivastasa


The ability of getting a note on websocket should be replaced with a 
promisified ajax call.

By Design context any entity that gets initialized should happen through API
and any real time exchange of data happens through WS.
Getting note is request for initialization which can happen over API but for 
real-time collaboration we cannot use api that is when we use websockets.

The advantage of making it a promisified callback is:
1. The UI content that we can write in the paragraph becomes more cleaner by 
giving the developer the exact instance of the rendered page where the scope 
variables are not undefined, that is. As of now if we try to use the scope 
bounded variables using native javascript there is most likely scenario where 
the value on scope is "undefined" .
2. For slower internet connections an interceptor can be given so that we can 
display custom progress status till the note object comes 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to