🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(ui): deletion of traces led to refetching of deleted trace and logged warning (#2580)
Marc Klingendc19bee8e587
diff --git a/web/src/components/table/data-table-multi-select-actions/trace-table-multi-select-action.tsx b/web/src/components/table/data-table-multi-select-actions/trace-table-multi-select-action.tsxindex bf254b3a27..8b1d546ef9 100644--- a/web/src/components/table/data-table-multi-select-actions/trace-table-multi-select-action.tsx+++ b/web/src/components/table/data-table-multi-select-actions/trace-table-multi-select-action.tsx@@ -38,7 +38,7 @@ export function TraceTableMultiSelectAction({const mutDeleteTraces = api.traces.deleteMany.useMutation({onSuccess: () => {onDeleteSuccess();- void utils.traces.invalidate();+ void utils.traces.all.invalidate();},});diff --git a/web/src/components/table/use-cases/traces.tsx b/web/src/components/table/use-cases/traces.tsxindex 9a09b5b421..7ce1fbec05 100644--- a/web/src/components/table/use-cases/traces.tsx+++ b/web/src/components/table/use-cases/traces.tsx@@ -594,7 +594,7 @@ export default function TracesTable({itemId={traceId}projectId={projectId}scope="traces:delete"- invalidateFunc={() => void utils.traces.invalidate()}+ invalidateFunc={() => void utils.traces.all.invalidate()}type="trace"isTableAction={true}/>diff --git a/web/src/components/trace/index.tsx b/web/src/components/trace/index.tsxindex e1cab0510f..2e9f8aa942 100644--- a/web/src/components/trace/index.tsx+++ b/web/src/components/trace/index.tsx@@ -261,7 +261,7 @@ export function TracePage({ traceId }: { traceId: string }) {itemId={traceId}projectId={trace.data.projectId}scope="traces:delete"- invalidateFunc={() => void utils.traces.invalidate()}+ invalidateFunc={() => void utils.traces.all.invalidate()}type="trace"redirectUrl={`/project/${router.query.projectId as string}/traces`}/>