Skip to content

Commit

Permalink
Add workflowid to notebooksession and create proper migration from na…
Browse files Browse the repository at this point in the history
…me (#3731)
  • Loading branch information
dvince2 authored Jun 4, 2024
1 parent 5ab81ff commit 82de5d7
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,6 @@ watch(
if (props.notebookSession) {
await updateNotebookSession({
id: props.notebookSession.id,
name: props.notebookSession.name,
description: props.notebookSession.description,
data: { history: notebookItems.value }
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ onMounted(async () => {
// create a new notebook session log if it does not exist
const response = await createNotebookSession({
id: uuidv4(),
name: props.node.id,
description: '',
data: { history: [] }
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ onMounted(async () => {
// create a new notebook session log if it does not exist
const response = await createNotebookSession({
id: uuidv4(),
name: props.node.id,
description: '',
data: { history: [] }
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ onMounted(async () => {
// create a new notebook session log if it does not exist
const response = await createNotebookSession({
id: uuidv4(),
name: props.node.id,
description: '',
data: { history: [] }
});
Expand Down
2 changes: 0 additions & 2 deletions packages/client/hmi-client/src/services/notebook-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const getNotebookSessionById = async (notebook_id: string) => {
export const createNotebookSession = async (notebookSession: NotebookSession) => {
const response = await API.post(`/sessions`, {
id: notebookSession.id,
name: notebookSession.name,
description: notebookSession.description,
data: notebookSession.data
} as NotebookSession);
Expand All @@ -24,7 +23,6 @@ export const createNotebookSession = async (notebookSession: NotebookSession) =>
export const updateNotebookSession = async (notebookSession: NotebookSession) => {
const response = await API.put(`/sessions/${notebookSession.id}`, {
id: notebookSession.id,
name: notebookSession.name,
description: notebookSession.description,
data: notebookSession.data
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ public class NotebookSession extends TerariumAsset {
@Serial
private static final long serialVersionUID = 9176019416379347233L;

// TODO: https://github.com/DARPA-ASKEM/terarium/issues/3719
// private UUID workflowId;

@Type(JsonType.class)
@Column(columnDefinition = "json")
private JsonNode data;

@Override
public NotebookSession clone() {
NotebookSession session = new NotebookSession();
final NotebookSession session = new NotebookSession();
super.cloneSuperFields(session);
session.setData(data.deepCopy());
return session;
}
Expand Down

0 comments on commit 82de5d7

Please sign in to comment.