Skip to content

Conversation

@prabhjyotsingh
Copy link
Contributor

What is this PR for?

If for some reason (for example permission issue in file system) while saving interpreter setting, UI shows wrong value till the next restart.
IMO interpreter.json should be the source of truth, that should always be reflected on UI

What type of PR is it?

[Bug Fix]

Todos

  • - read from file-system after saving

What is the Jira issue?

How should this be tested?

Change file system permission of "interpreter.json", and make it readonly, then on interpreter setting page try and change any property and refresh the page, refer screenshot

Screenshots (if appropriate)

Before
fix-permission-before

After
fix-permission-after

Questions:

  • Does the licenses files need update? n/a
  • Is there breaking changes for older versions? n/a
  • Does this needs documentation? n/a

@randerzander
Copy link
Contributor

I believe the test failure is unrelated.

However, before merging this and implying support for the thin client, I ran into another issue with mangled JDBC properties in the URL: https://issues.apache.org/jira/browse/ZEPPELIN-1459

I think ZEPPELIN-1459 should be resolved before merging this doc update.

@prabhjyotsingh
Copy link
Contributor Author

@randerzander can you explain a bit more, how do you think this is related. As scope of this PR is only limited to interpreter property being saved (or fail to save) on file system.

Copy link
Member

@jongyoul jongyoul left a comment

Choose a reason for hiding this comment

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

LGTM

@prabhjyotsingh
Copy link
Contributor Author

Will merge this in both master and 0.6.

@asfgit asfgit closed this in 6a90cac Sep 22, 2016
asfgit pushed a commit that referenced this pull request Sep 22, 2016
### What is this PR for?
If for some reason (for example permission issue in file system) while saving interpreter setting, UI shows wrong value till the next restart.
IMO interpreter.json should be the source of truth, that should always be reflected on UI

### What type of PR is it?
[Bug Fix]

### Todos
* [x] - read from file-system after saving

### What is the Jira issue?
* [ZEPPELIN-1454](https://issues.apache.org/jira/browse/ZEPPELIN-1454)

### How should this be tested?
Change file system permission of "interpreter.json", and make it readonly, then on interpreter setting page try and change any property and refresh the page, refer screenshot

### Screenshots (if appropriate)
Before
![fix-permission-before](https://cloud.githubusercontent.com/assets/674497/18627830/ced6673a-7e7a-11e6-88a6-426e1d2d2582.gif)

After
![fix-permission-after](https://cloud.githubusercontent.com/assets/674497/18627831/ceda24f6-7e7a-11e6-880b-4a7d1f9be3d8.gif)

### Questions:
* Does the licenses files need update? n/a
* Is there breaking changes for older versions? n/a
* Does this needs documentation? n/a

Author: Prabhjyot Singh <[email protected]>

Closes #1437 from prabhjyotsingh/ZEPPELIN-1454 and squashes the following commits:

f94125c [Prabhjyot Singh] ZEPPELIN-1454: read from file-system after saving

(cherry picked from commit 6a90cac)
Signed-off-by: Prabhjyot Singh <[email protected]>
pedrozatta pushed a commit to pedrozatta/zeppelin that referenced this pull request Oct 27, 2016
### What is this PR for?
If for some reason (for example permission issue in file system) while saving interpreter setting, UI shows wrong value till the next restart.
IMO interpreter.json should be the source of truth, that should always be reflected on UI

### What type of PR is it?
[Bug Fix]

### Todos
* [x] - read from file-system after saving

### What is the Jira issue?
* [ZEPPELIN-1454](https://issues.apache.org/jira/browse/ZEPPELIN-1454)

### How should this be tested?
Change file system permission of "interpreter.json", and make it readonly, then on interpreter setting page try and change any property and refresh the page, refer screenshot

### Screenshots (if appropriate)
Before
![fix-permission-before](https://cloud.githubusercontent.com/assets/674497/18627830/ced6673a-7e7a-11e6-88a6-426e1d2d2582.gif)

After
![fix-permission-after](https://cloud.githubusercontent.com/assets/674497/18627831/ceda24f6-7e7a-11e6-880b-4a7d1f9be3d8.gif)

### Questions:
* Does the licenses files need update? n/a
* Is there breaking changes for older versions? n/a
* Does this needs documentation? n/a

Author: Prabhjyot Singh <[email protected]>

Closes apache#1437 from prabhjyotsingh/ZEPPELIN-1454 and squashes the following commits:

f94125c [Prabhjyot Singh] ZEPPELIN-1454: read from file-system after saving
@prabhjyotsingh prabhjyotsingh deleted the ZEPPELIN-1454 branch February 25, 2018 03:46
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.

3 participants