Skip to content

Commit e07e88d

Browse files
authored
[DOP-25646] add sql query field to UI (#49)
1 parent 60068d5 commit e07e88d

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

src/components/operation/OperationRaShow.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
IOStatisticsField,
1616
StatusRaField,
1717
} from "@/components/base";
18+
import { Box } from "@mui/material";
1819
import OperationRaLineage from "./OperationRaLineage";
1920
import { OperationDetailedResponseV1 } from "@/dataProvider/types";
2021

@@ -88,6 +89,11 @@ const OperationRaShow = (): ReactElement => {
8889
</Stack>
8990
</Labeled>
9091

92+
<Labeled label="resources.operations.sections.sql_query">
93+
<Stack direction="row" spacing={3}>
94+
<TextField source="data.sql_query" component="pre" />
95+
</Stack>
96+
</Labeled>
9197
<FunctionField
9298
render={(record: OperationDetailedResponseV1) => {
9399
return record.statistics.inputs.total_datasets +

src/dataProvider/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ interface OperationResponseV1 extends RaRecord {
125125
position: string | null;
126126
group: string | null;
127127
description: string | null;
128+
sql_query: string | null;
128129
status: StatusResponseV1;
129130
started_at: string | null;
130131
ended_at: string | null;

src/i18n/en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const customEnglishMessages: TranslationMessages = {
213213
name: "Name",
214214
group: "Group",
215215
description: "Description",
216+
sql_query: "SQL query",
216217
origin: "Origin",
217218
status: "Status",
218219
started_at: "Started at",
@@ -232,6 +233,7 @@ const customEnglishMessages: TranslationMessages = {
232233
position: "Position",
233234
group: "Group",
234235
description: "Description",
236+
sql_query: "SQL query",
235237
started: "Started",
236238
ended: "Ended",
237239
when: "When",

src/i18n/ru.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ const customRussianMessages: TranslationMessages = {
212212
name: "Название",
213213
group: "Группа",
214214
description: "Описание",
215+
sql_query: "SQL запрос",
215216
origin: "Источник",
216217
status: "Статус",
217218
started_at: "Запущена",
@@ -231,6 +232,7 @@ const customRussianMessages: TranslationMessages = {
231232
position: "№ п/п",
232233
group: "Группа",
233234
description: "Описание",
235+
sql_query: "SQL запрос",
234236
started: "Запущена",
235237
ended: "Остановлена",
236238
when: "Когда",

0 commit comments

Comments
 (0)