Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Graph not updating when cases deleted [PT-187361598] #37

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/hooks/use-codap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"action": "get",
"resource": "dataContextList"
}).catch((reason) => {
console.log("unable to get data context list because " + reason);

Check warning on line 146 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 146 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
});
if (tListResult?.success) {
tFoundValue = tListResult.values.find((iValue: any) => {
Expand Down Expand Up @@ -174,10 +174,10 @@
]
}
}).catch((reason) => {
console.log("unable to create output dataset because " + reason);

Check warning on line 177 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 177 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
});
if (!(tCreateResult?.success)) {
console.log("unable to create output dataset");

Check warning on line 180 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 180 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
return;
}
// setOutputDatasetID(tCreateResult.values.id);
Expand All @@ -189,7 +189,7 @@
"action": "get",
"resource": "componentList"
}).catch((reason) => {
console.log("unable to get component list because " + reason);

Check warning on line 192 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 192 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
});
if (tListResult?.success) {
tFoundValue = tListResult.values.find((iValue: any) => {
Expand All @@ -208,10 +208,10 @@
position: "top"
}
}).catch((reason) => {
console.log("unable to create case table because " + reason);

Check warning on line 211 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 211 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
});
if (!(tCreateResult?.success)) {
console.log("unable to create case table");

Check warning on line 214 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 214 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
}
}
}, []);
Expand All @@ -229,7 +229,7 @@
resource: `dataContext[${OutputDatasetName}].item`,
values: requests
}).catch((reason) => {
console.log("unable to create items because " + reason);

Check warning on line 232 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / Build

Unexpected console statement

Check warning on line 232 in src/hooks/use-codap.ts

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
});

incrementSequenceNumber();
Expand All @@ -242,6 +242,7 @@
codapInterface.on("notify", "*", "createCases", handleCasesChanged);
codapInterface.on("notify", "*", "updateCases", handleCasesChanged);
codapInterface.on("notify", "*", "dependentCases", handleCasesChanged);
codapInterface.on("notify", "*", "deleteCases", handleCasesChanged);

if (!initialized) {
setInitialized(true);
Expand Down
Loading