Skip to content

[ZEPPELIN-6307] Rename fieldname in NewNoteRequest class - #5055

Merged
ParkGyeongTae merged 1 commit into
apache:masterfrom
celinayk:ZEPPELIN-6307
Aug 30, 2025
Merged

[ZEPPELIN-6307] Rename fieldname in NewNoteRequest class#5055
ParkGyeongTae merged 1 commit into
apache:masterfrom
celinayk:ZEPPELIN-6307

Conversation

@celinayk

Copy link
Copy Markdown
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

@ParkGyeongTaeParkGyeongTae left a comment

Copy link
Copy Markdown
Member

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.

@ParkGyeongTaeParkGyeongTae self-assigned this Aug 30, 2025
@ParkGyeongTae
ParkGyeongTae merged commit d6ec974 into apache:masterAug 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 <gyeongtae@apache.org>
(cherry picked from commit d6ec974)
Signed-off-by: ParkGyeongTae <gyeongtae@apache.org>
@ParkGyeongTae

Copy link
Copy Markdown
Member

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 <gyeongtae@apache.org>
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 <gyeongtae@apache.org>
(cherry picked from commit 3a0e421)
Signed-off-by: ParkGyeongTae <gyeongtae@apache.org>
Sign up for freeto 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

@celinayk@ParkGyeongTae