Re: Paragraph content is reset

2021-07-03 Thread Jeff Zhang
I am not a front-end expert, but it seems you are right that this is a bug.


Vladimir Prus  于2021年6月30日周三 上午4:00写道:

> Hi,
>
> lots of colleagues (myself included) are observing the following annoying
> behaviour:
> - you are busy typing fancy Spark code in a notebook
> - all of sudden, recently written code disappears and cursor jumps to the
> start of the paragraph
>
> The cursor jump suggests that paragraph text is unintentionally updated,
> and looking at console logs suggests that maybe, UI sends "commit
> paragraph" to the server, receives new paragraph, and updates the text in
> UI to an earlier version. So, I looked at the code in
> paragraph.controller.js and see this
>
> if ($scope.dirtyText === newPara.text) {  // when local update is the same 
> from remote, clear local update
>   $scope.paragraph.text = newPara.text;
>   $scope.dirtyText = undefined;
>   $scope.originalText = angular.copy(newPara.text);
> } else { // if there're local update, keep it.
>   $scope.paragraph.text = newPara.text;
> }
>
>
> It seems there's the intention to preserve local changes, but then the
> last line still assigns newPara.text to paragraph. Is this just a thinko
> and the last line is a bug, and must be basically removed (so keep current
> paragraph.text and dirtyText). Or am I misunderstanding all this?
>
>
> --
> Vladimir Prus
> http://vladimirprus.com
>


-- 
Best Regards

Jeff Zhang


Re: Change User Logging

2021-07-03 Thread Jeff Zhang
Take a look at file ZEPPELIN_HOME/conf/log4j.properties


Joshua Conlin  于2021年6月29日周二 下午11:24写道:

> Hello,
>
> I'd like to make some changes in my fork to user logging.  I see that the
> {user}-{host}.out share a log4j config with the main logs, but I believe I
> need to make some lower level (appender?) changes, specific to only to
> those user logs.  Could someone give me a pointer in the source to where I
> can find the user specific logging?  I"d appreciate any info you could
> provide.  Thanks again!
>
> Josh
>


-- 
Best Regards

Jeff Zhang


Re: Paragraph content is reset

2021-07-03 Thread Joshua Ochsankehl
This is the same issue I reported here.
https://issues.apache.org/jira/projects/ZEPPELIN/issues/ZEPPELIN-4439?filter=allopenissues

Definitely still a problem.


On Sat, Jul 3, 2021 at 6:37 AM Jeff Zhang  wrote:

> I am not a front-end expert, but it seems you are right that this is a
> bug.
>
>
> Vladimir Prus  于2021年6月30日周三 上午4:00写道:
>
>> Hi,
>>
>> lots of colleagues (myself included) are observing the following annoying
>> behaviour:
>> - you are busy typing fancy Spark code in a notebook
>> - all of sudden, recently written code disappears and cursor jumps to the
>> start of the paragraph
>>
>> The cursor jump suggests that paragraph text is unintentionally updated,
>> and looking at console logs suggests that maybe, UI sends "commit
>> paragraph" to the server, receives new paragraph, and updates the text in
>> UI to an earlier version. So, I looked at the code in
>> paragraph.controller.js and see this
>>
>> if ($scope.dirtyText === newPara.text) {  // when local update is the same 
>> from remote, clear local update
>>   $scope.paragraph.text = newPara.text;
>>   $scope.dirtyText = undefined;
>>   $scope.originalText = angular.copy(newPara.text);
>> } else { // if there're local update, keep it.
>>   $scope.paragraph.text = newPara.text;
>> }
>>
>>
>> It seems there's the intention to preserve local changes, but then the
>> last line still assigns newPara.text to paragraph. Is this just a thinko
>> and the last line is a bug, and must be basically removed (so keep current
>> paragraph.text and dirtyText). Or am I misunderstanding all this?
>>
>>
>> --
>> Vladimir Prus
>> http://vladimirprus.com
>>
>
>
> --
> Best Regards
>
> Jeff Zhang
>


Zeppelin how to restrict few SQL keywords

2021-07-03 Thread Great Info
I am using a zeppelin to run some SQL queries over JDBC interpreter, I want
to restrict few  SQL keywords.
I removed few keywords(insert, update etc) from files
'jdbc/ansi.sql.keywords' and 'jdbc/postgresql-native-driver-sql.keywords'
but still queries with these keywords work.

is there a way to restrict?

Thanks,
Cod