From 1447d191c7d05fe14fb3bf1048e400c64eba378a Mon Sep 17 00:00:00 2001 From: Kiran Dawadi Date: Tue, 7 Jan 2025 17:23:58 -0600 Subject: [PATCH 01/10] Add 'Reindexing Curator' column (non-functioning) --- .../static/js/collection_list.js | 14 ++++-- .../sde_collections/collection_list.html | 45 +++++++++++++++++-- 2 files changed, 53 insertions(+), 6 deletions(-) diff --git a/sde_indexing_helper/static/js/collection_list.js b/sde_indexing_helper/static/js/collection_list.js index 7500bad1..660e1299 100644 --- a/sde_indexing_helper/static/js/collection_list.js +++ b/sde_indexing_helper/static/js/collection_list.js @@ -204,27 +204,35 @@ let table = $("#collection_table").DataTable({ ], }); -$("#collection-dropdown-4").on("change", function () { +$("#workflow-status-selector").on("change", function () { table .columns(COLUMNS.WORKFLOW_STATUS_RAW) .search(this.value ? "^" + this.value + "$" : "", true, false) .draw(); }); -$("#collection-dropdown-5").on("change", function () { +$("#curator-selector").on("change", function () { table .columns(COLUMNS.CURATOR_ID) .search(this.value ? "^" + this.value + "$" : "", true, false) .draw(); }); -$("#collection-dropdown-6").on("change", function () { +$("#reindexing-status-selector").on("change", function () { table .columns(COLUMNS.REINDEXING_STATUS_RAW) .search(this.value ? "^" + this.value + "$" : "", true, false) .draw(); }); +// Need to change this to reflect REINDEXING CURATOR CHANGE +$("#reindexing-curator-selector").on("change", function () { + table + .columns(COLUMNS.CURATOR_ID) + .search(this.value ? "^" + this.value + "$" : "", true, false) + .draw(); +}); + $("#nameFilter").on("keyup", function () { table.columns(COLUMNS.NAME).search(this.value).draw(); }); diff --git a/sde_indexing_helper/templates/sde_collections/collection_list.html b/sde_indexing_helper/templates/sde_collections/collection_list.html index beae81d1..ed899e63 100644 --- a/sde_indexing_helper/templates/sde_collections/collection_list.html +++ b/sde_indexing_helper/templates/sde_collections/collection_list.html @@ -28,6 +28,7 @@

Welcome back!

Curator Connector Type Reindexing Status + Reindexing Curator @@ -66,7 +67,7 @@

Welcome back!

- {% for choice in workflow_status_choices %} {% for curator in curators %} {% for choice in reindexing_status_choices %}