From d9fad170e3e3f5a0280c167fc807d418fe7cd812 Mon Sep 17 00:00:00 2001 From: bduran Date: Tue, 30 Aug 2022 16:53:34 -0700 Subject: [PATCH 1/2] feat: update fields in `activityTables` json to reflect new ag-grid definitions --- deployment/postgres-init-db/data/ui/views/example_0.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deployment/postgres-init-db/data/ui/views/example_0.json b/deployment/postgres-init-db/data/ui/views/example_0.json index 42d220d4bd..faf4e2790c 100644 --- a/deployment/postgres-init-db/data/ui/views/example_0.json +++ b/deployment/postgres-init-db/data/ui/views/example_0.json @@ -3,11 +3,12 @@ "activityTables": [ { "columnDefs": [ - { "field": "id", "name": "ID", "sortable": true }, - { "field": "type", "name": "Type", "sortable": true }, - { "field": "start_time", "name": "Start Time", "sortable": true }, - { "field": "duration", "name": "Duration", "sortable": true } + { "field": "id", "filter": "agTextColumnFilter", "headerName": "ID", "sortable": true, "resizable": true }, + { "field": "type", "filter": "agTextColumnFilter", "headerName": "Type", "sortable": true, "resizable": true }, + { "field": "start_time", "filter": "agTextColumnFilter", "headerName": "Start Time", "sortable": true, "resizable": true }, + { "field": "duration", "filter": "agTextColumnFilter", "headerName": "Duration", "sortable": true, "resizable": true } ], + "columnStates": [], "id": 0 } ], From 3365af33029a7f94aaafb11a764ef438e5e90f0f Mon Sep 17 00:00:00 2001 From: bduran Date: Tue, 30 Aug 2022 16:53:58 -0700 Subject: [PATCH 2/2] cleanup unused definitions in example json --- .../data/ui/views/example_1.json | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/deployment/postgres-init-db/data/ui/views/example_1.json b/deployment/postgres-init-db/data/ui/views/example_1.json index 122ad63036..9069ac1aa1 100644 --- a/deployment/postgres-init-db/data/ui/views/example_1.json +++ b/deployment/postgres-init-db/data/ui/views/example_1.json @@ -1,23 +1,7 @@ { "plan": { - "activityTables": [ - { - "columnDefs": [ - { "field": "id", "name": "ID", "sortable": true }, - { "field": "type", "name": "Type", "sortable": true }, - { "field": "start_time", "name": "Start Time", "sortable": true }, - { "field": "duration", "name": "Duration", "sortable": true } - ], - "id": 0 - } - ], - "iFrames": [ - { - "id": 0, - "src": "https://iss-sim.spacex.com/", - "title": "ISS-Docking-Simulator" - } - ], + "activityTables": [], + "iFrames": [], "layout": { "gridName": "View", "id": 0,