Skip to content

Conversation

@celinayk
Copy link
Contributor

What is this PR for?

This PR renames the field 'name' to 'notePath' in the NewNoteRequest class to better reflect its purpose. The field actually represents the note's path rather than just a name, making the code more semantically clear and addressing the TODO comment that requested this change.

What type of PR is it?

Refactoring

Todos

  • - Rename field 'name' to 'notePath' in NewNoteRequest class

What is the Jira issue?

ZEPPELIN-6307

How should this be tested?

Screenshots (if appropriate)

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

Copy link
Contributor

@ParkGyeongTae ParkGyeongTae left a comment

Choose a reason for hiding this comment

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

I think this change makes the variable name clearer.

@ParkGyeongTae ParkGyeongTae self-assigned this Aug 30, 2025
@ParkGyeongTae ParkGyeongTae merged commit d6ec974 into apache:master Aug 30, 2025
15 of 18 checks passed
ParkGyeongTae pushed a commit that referenced this pull request Aug 30, 2025
### What is this PR for?
This PR renames the field 'name' to 'notePath' in the NewNoteRequest class to better reflect its purpose. The field actually represents the note's path rather than just a name, making the code more semantically clear and addressing the TODO comment that requested this change.

### What type of PR is it?
Refactoring

### Todos
* [x] - Rename field 'name' to 'notePath' in NewNoteRequest class

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

### How should this be tested?

### Screenshots (if appropriate)

### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Closes #5055 from celinayk/ZEPPELIN-6307.

Signed-off-by: ParkGyeongTae <[email protected]>
(cherry picked from commit d6ec974)
Signed-off-by: ParkGyeongTae <[email protected]>
@ParkGyeongTae
Copy link
Contributor

Merged into master and branch-0.12

ParkGyeongTae pushed a commit that referenced this pull request Sep 4, 2025
### What is this PR for?
After a field name change in `NewNoteRequest`, several tests are failing.

```
Error: Failures:
Error: NotebookRestApiTest.testCreateNote:555->lambda$testCreateNote$17:557 expected: <test1> but was: <Untitled Note>
Error: ZeppelinRestApiTest.testCloneNote:440->lambda$testCloneNote$8:443 Compare note names ==> expected: <clone Note Name> but was: <Cloned Note_2M6SWJ8WV>
Error: ZeppelinRestApiTest.testNoteCreateWithName:159->testNoteCreate:235->lambda$testNoteCreate$2:245 compare note name ==> expected: <Test note name> but was: <Untitled Note>
Error: ZeppelinRestApiTest.testNoteCreateWithParagraphs:181 test note create method:
```
Related Issue: #5055 


### What type of PR is it?
Fixing broken tests

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

### How should this be tested?
- Check if tests success in `core-modules` job.
  - `NotebookRestApiTest.testCreateNote`
  - `ZeppelinRestApiTest.testCloneNote`
  - `ZeppelinRestApiTest.testNoteCreateWithName`
  - `ZeppelinRestApiTest.testNoteCreateWithParagraphs`

### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No


Closes #5066 from tbonelee/fix-tests.

Signed-off-by: ParkGyeongTae <[email protected]>
ParkGyeongTae pushed a commit that referenced this pull request Sep 4, 2025
### What is this PR for?
After a field name change in `NewNoteRequest`, several tests are failing.

```
Error: Failures:
Error: NotebookRestApiTest.testCreateNote:555->lambda$testCreateNote$17:557 expected: <test1> but was: <Untitled Note>
Error: ZeppelinRestApiTest.testCloneNote:440->lambda$testCloneNote$8:443 Compare note names ==> expected: <clone Note Name> but was: <Cloned Note_2M6SWJ8WV>
Error: ZeppelinRestApiTest.testNoteCreateWithName:159->testNoteCreate:235->lambda$testNoteCreate$2:245 compare note name ==> expected: <Test note name> but was: <Untitled Note>
Error: ZeppelinRestApiTest.testNoteCreateWithParagraphs:181 test note create method:
```
Related Issue: #5055

### What type of PR is it?
Fixing broken tests

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

### How should this be tested?
- Check if tests success in `core-modules` job.
  - `NotebookRestApiTest.testCreateNote`
  - `ZeppelinRestApiTest.testCloneNote`
  - `ZeppelinRestApiTest.testNoteCreateWithName`
  - `ZeppelinRestApiTest.testNoteCreateWithParagraphs`

### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Closes #5066 from tbonelee/fix-tests.

Signed-off-by: ParkGyeongTae <[email protected]>
(cherry picked from commit 3a0e421)
Signed-off-by: ParkGyeongTae <[email protected]>
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