[ZEPPELIN-2301] DON'T overwrite editor text when note is renamed, created, ...#2177
Conversation
|
@FRosner I updated GIF. What #2176 and #2177 is trying to prevent local change from overwritten. Overwriting occurs in many cases.
Here is another opinion about overwriting
|
|
Gotcha @1ambda, The gifs make it clear now, thanks! Not sure about the exact code changes as I'm not that familiar with the code base you're touching. Do you have any specific part I should dive into or can someone else also take a look? I agree with the priorities as well. If we combine it with save-on-lost-focus the time window is at least lower to get your changes overwritten. Just one more related question: I noticed that there is a save timer for notebooks in the code. I tried to figure out when it is triggered but I didn't succeed. What is it used for? When is it triggered? What's the difference between saveNote and saving of a paragraph? Thanks! |
|
@FRosner Anything would be greatly appreciated. For example trying this PR, suggestion for how to write test code for this, and so on. regarding to triggering auto-save, Zeppelin sends the |
|
@AhyoungRyu Could you help review? |
|
Thanks @1ambda. I'm quite busy at this moment so if someone else (e.g. @AhyoungRyu) can also take a look that would be greatly appreciated. |
|
Sure. I'll test it and get back you soon. |
|
Let me implement locking and realtime notification soon. I will close this PR. |
What is this PR for?
DON'T overwrite local text change in editor when note is renamed, created, and so on
Move up paragraphandMove down paragraphand other actions callingsaveNotewill reset local text change. But I will resolve it in different PRs.Implementation Details
We can't access to children's
$scopein angular. That's the reason whyparagraphTextis written as a (global) service.What type of PR is it?
[Bug Fix]
Todos
NONE
What is the Jira issue?
ZEPPELIN-2301
Related with
How should this be tested?
NOTEwebsocket messages should not overwrite local text change in editor.Screenshots (if appropriate)
After
Questions: