Copilot commented on code in PR #8910:
URL: https://github.com/apache/texera/pull/8910#discussion_r4252217002
##########
frontend/src/app/workspace/service/notebook-migration/migration-llm.ts:
##########
@@ -111,15 +111,66 @@ function toDerivedNotebook(cells: DerivedCell[]):
Notebook {
outputs: [],
execution_count: null,
})),
- metadata: {
- kernelspec: { display_name: "Python 3", language: "python", name:
"python3" },
- language_info: { name: "python" },
- },
+ metadata,
Review Comment:
`PROMPT_SETS` owns one mutable metadata object, and this returns that same
reference from every script/folder conversion. Mutating one returned notebook's
nested metadata will therefore change later conversion results; before this
refactor, each derived notebook received a fresh metadata object. Clone it when
constructing the notebook to preserve conversion isolation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]