Skip to content

[ZEPPELIN-2315] (bug) new note.json is overwritten by old note.json (master, branch-0.7)#2256

Closed
1ambda wants to merge 1 commit into
apache:masterfrom
1ambda:ZEPPELIN-2315/should-convert-old-notebook-only-once
Closed

[ZEPPELIN-2315] (bug) new note.json is overwritten by old note.json (master, branch-0.7)#2256
1ambda wants to merge 1 commit into
apache:masterfrom
1ambda:ZEPPELIN-2315/should-convert-old-notebook-only-once

Conversation

@1ambda
Copy link
Copy Markdown
Member

@1ambda 1ambda commented Apr 17, 2017

What is this PR for?

  • note.json is converted every time
  • as a result, changes in note.json is overwritten by old note.json

Occurs in 0.8.0-SNAPSHOT and branch-0.7

What type of PR is it?

[Bug Fix]

Todos

NONE

What is the Jira issue?

ZEPPELIN-2315

How should this be tested?

  1. create a note in 0.6.0 which including graph
  2. migrate it to 0.7.0+ (just copy dir)
  3. open in Zeppelin
  4. click other graph type rather than table (e.g scatter chart)
  5. restart
  6. should see the last change (graph) is persisted

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? - NO
  • Is there breaking changes for older versions? - NO
  • Does this needs documentation? - NO

@1ambda
Copy link
Copy Markdown
Member Author

1ambda commented Apr 17, 2017

@jongyoul Please help review this.

@1ambda
Copy link
Copy Markdown
Member Author

1ambda commented Apr 17, 2017

Do we need test for this?

@jongyoul
Copy link
Copy Markdown
Member

How about to remove old result after merged to new one?

@1ambda
Copy link
Copy Markdown
Member Author

1ambda commented Apr 17, 2017

Old version zeppelins will not render converted note.json. On the other hand, if we keep 'result', they can render last version of old format. Is it ok?

@jongyoul
Copy link
Copy Markdown
Member

Ok make sense. LGTM

asfgit pushed a commit that referenced this pull request Apr 18, 2017
…master, branch-0.7)

### What is this PR for?

- `note.json` is converted every time
- as a result, changes in `note.json` is overwritten by old `note.json`

Occurs in **0.8.0-SNAPSHOT** and **branch-0.7**

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

### Todos

NONE

### What is the Jira issue?

[ZEPPELIN-2315](https://issues.apache.org/jira/browse/ZEPPELIN-2315)

### How should this be tested?

1. create a note in 0.6.0 which including graph
2. migrate it to 0.7.0+ (just copy dir)
3. open in Zeppelin
4. click other graph type rather than table (e.g `scatter chart`)
5. restart
7. should see the last change (graph) is persisted

### Screenshots (if appropriate)

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

Author: 1ambda <1amb4a@gmail.com>

Closes #2256 from 1ambda/ZEPPELIN-2315/should-convert-old-notebook-only-once and squashes the following commits:

4e77c0a [1ambda] fix: Convert old notebook format only once

(cherry picked from commit 3366394)
Signed-off-by: Jongyoul Lee <jongyoul@apache.org>
@asfgit asfgit closed this in 3366394 Apr 18, 2017
tinkoff-dwh pushed a commit to tinkoff-dwh/zeppelin that referenced this pull request Apr 20, 2017
…master, branch-0.7)

### What is this PR for?

- `note.json` is converted every time
- as a result, changes in `note.json` is overwritten by old `note.json`

Occurs in **0.8.0-SNAPSHOT** and **branch-0.7**

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

### Todos

NONE

### What is the Jira issue?

[ZEPPELIN-2315](https://issues.apache.org/jira/browse/ZEPPELIN-2315)

### How should this be tested?

1. create a note in 0.6.0 which including graph
2. migrate it to 0.7.0+ (just copy dir)
3. open in Zeppelin
4. click other graph type rather than table (e.g `scatter chart`)
5. restart
7. should see the last change (graph) is persisted

### Screenshots (if appropriate)

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

Author: 1ambda <1amb4a@gmail.com>

Closes apache#2256 from 1ambda/ZEPPELIN-2315/should-convert-old-notebook-only-once and squashes the following commits:

4e77c0a [1ambda] fix: Convert old notebook format only once
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.

2 participants