diff --git a/front/workflows.php b/front/workflows.php
index 633590a0..5395d9a8 100755
--- a/front/workflows.php
+++ b/front/workflows.php
@@ -6,9 +6,11 @@
-
+
-
+
+
+
diff --git a/server/api_server/graphql_endpoint.py b/server/api_server/graphql_endpoint.py
index a7e86aac..b401874f 100755
--- a/server/api_server/graphql_endpoint.py
+++ b/server/api_server/graphql_endpoint.py
@@ -131,6 +131,7 @@ class Query(ObjectType):
devGUID=devGUID,
changedColumn=changedColumn,
changedBy=changedBy,
+ search=paging["search"]
)
else:
groups = h.get_all_grouped_history(
@@ -145,6 +146,7 @@ class Query(ObjectType):
total = h.get_total_group_count(
changedColumn=changedColumn,
changedBy=changedBy,
+ search=paging["search"]
)
return DeviceHistoryResult(
diff --git a/server/models/device_history_instance.py b/server/models/device_history_instance.py
index 5adbce3b..9547ffff 100644
--- a/server/models/device_history_instance.py
+++ b/server/models/device_history_instance.py
@@ -115,12 +115,12 @@ class DevicesHistoryInstance:
"changedColumn": [r["changedColumn"] for r in col_rows],
}
- def get_total_group_count(self, devGUID=None, changedColumn=None, changedBy=None):
+ def get_total_group_count(self, devGUID=None, changedColumn=None, changedBy=None, search=None):
"""
Return the total number of distinct change-event groups matching the
given filters. Used by the frontend to calculate total pages.
"""
- clauses, params = self._build_clauses(devGUID, changedColumn, changedBy)
+ clauses, params = self._build_clauses(devGUID, changedColumn, changedBy, search)
where = f"WHERE {' AND '.join(clauses)}" if clauses else ""
rows = self._fetchall(