-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat(ui): delete objects from the ui #3261
Conversation
weave-js/src/components/PagePanelComponents/Home/Browse3/pages/CallPage/ObjectViewer.tsx
Outdated
Show resolved
Hide resolved
weave-js/src/components/PagePanelComponents/Home/Browse3/pages/wfReactInterface/utilities.ts
Outdated
Show resolved
Hide resolved
req: TraceObjDeleteReq | ||
): Promise<void | {detail: string}> { | ||
const res = super.objectDelete(req).then(r => { | ||
if (r && 'detail' in r) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why throw only if there are details?
@@ -25,7 +25,7 @@ export type EvaluationComparisonSummary = { | |||
|
|||
// Models are the Weave Objects used to define the model logic and properties. | |||
models: { | |||
[modelRef: string]: ModelObj; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
models can now be deleted!
const evaluationCall = props.state.summary.evaluationCalls[props.callId]; | ||
const modelObj = props.state.summary.models[evaluationCall.modelRef]; | ||
const objRef = useMemo( | ||
() => parseRef(modelObj.ref) as WeaveObjectRef, | ||
[modelObj.ref] | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tssweeney does this make sense? I think we actually never needed modelObj
because we are only using it for its ref? Which I think is =
to evaluationCall.modelRef
but could be wrong...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks correct!
Description
WB-22373
This pr adds support for handling deleted objects in the UI. Specifically:
strikedthroughTesting
Rendering a compare-eval page with a deleted model:
