From e748ad658aac81ae51dafe237250cf71ab2e43e9 Mon Sep 17 00:00:00 2001 From: Jacob Nesbitt Date: Thu, 24 Oct 2024 10:55:54 -0400 Subject: [PATCH] refactor: Remove unused dataset endpoint --- uvdat/core/rest/dataset.py | 6 ------ web/src/api/rest.ts | 4 ---- 2 files changed, 10 deletions(-) diff --git a/uvdat/core/rest/dataset.py b/uvdat/core/rest/dataset.py index e4989e4b..3f5b8f63 100644 --- a/uvdat/core/rest/dataset.py +++ b/uvdat/core/rest/dataset.py @@ -56,12 +56,6 @@ def map_layers(self, request, **kwargs): # Return response with rendered data return Response(serializer.data, status=200) - @action(detail=True, methods=['get']) - def convert(self, request, **kwargs): - dataset = self.get_object() - dataset.spawn_conversion_task() - return HttpResponse(status=200) - @action(detail=True, methods=['get']) def network(self, request, **kwargs): dataset = self.get_object() diff --git a/web/src/api/rest.ts b/web/src/api/rest.ts index d4593bbc..d8925e75 100644 --- a/web/src/api/rest.ts +++ b/web/src/api/rest.ts @@ -90,10 +90,6 @@ export async function getDatasetLayers( return layers.toSorted((a, b) => a.index - b.index); } -export async function convertDataset(datasetId: number): Promise { - return (await apiClient.get(`datasets/${datasetId}/convert`)).data; -} - export async function getDatasetNetwork(datasetId: number): Promise { return (await apiClient.get(`datasets/${datasetId}/network`)).data; }