From 82a9d720ae3ca8b0cc3daa4e68307da8c5849f10 Mon Sep 17 00:00:00 2001 From: Anagh Hegde Date: Thu, 4 Aug 2022 09:50:54 +0530 Subject: [PATCH] feat: Added unconfigured datasources to the template API response (#15606) Co-authored-by: Akash N --- app/client/src/api/TemplatesApi.ts | 7 ++++- .../src/pages/Templates/TemplateView.tsx | 2 ++ app/client/src/pages/Templates/index.tsx | 2 ++ app/client/src/sagas/TemplatesSagas.ts | 29 ++++++++++++----- .../ce/ApplicationTemplateControllerCE.java | 5 +-- .../ce/ApplicationTemplateServiceCE.java | 10 +++++- .../ce/ApplicationTemplateServiceCEImpl.java | 25 ++++++++------- .../server/services/ce/GitServiceCEImpl.java | 14 +-------- .../ce/ImportExportApplicationServiceCE.java | 2 ++ .../ImportExportApplicationServiceCEImpl.java | 31 +++++++++++-------- 10 files changed, 79 insertions(+), 48 deletions(-) diff --git a/app/client/src/api/TemplatesApi.ts b/app/client/src/api/TemplatesApi.ts index b146888d30..69f6d7019f 100644 --- a/app/client/src/api/TemplatesApi.ts +++ b/app/client/src/api/TemplatesApi.ts @@ -3,6 +3,7 @@ import Api from "api/Api"; import { ApiResponse } from "./ApiResponses"; import { WidgetType } from "constants/WidgetConstants"; import { ApplicationResponsePayload } from "./ApplicationApi"; +import { Datasource } from "entities/Datasource"; export interface Template { id: string; @@ -23,7 +24,11 @@ export type FilterKeys = "widgets" | "datasources"; export type FetchTemplateResponse = ApiResponse