Skip to content
Snippets Groups Projects
Commit 6c72d5e3 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

better ingestq filter and restore previous functionality

parent 2b5f8d3a
No related branches found
No related tags found
1 merge request!336Ingestq filter
Pipeline #69099 passed
......@@ -210,7 +210,7 @@ ACTIVE_STATUSSES = ['staging','staged','processing','processed','validated','sto
STATUSSES_WITH_DATA = ['staged','fetching','fetched','processing','processed','validated','storing','stored','scrubbing','scrubbed','archiving','archived']
AGGREGATES = ['failed','active','total']
QUERY_LIMIT_MULTI_CHANGE = 5000
QUERY_LIMIT_MULTI_CHANGE = 10000
MAX_MONITORING_HISTORY_HOURS = 7 * 24
SERVICES_LATE_WARNING_SECONDS = 1800
......
......@@ -180,15 +180,10 @@ class QueryView(SingleTableMixin, FilterView):
def get_table_data(self):
# https://stackoverflow.com/questions/7763115/django-passing-data-between-views
count = self.object_list.count()
# nv4jan2024, removed the user setting for this.
# It was never used and potentially overcomplicates things elsewhere.
#try:
# limit = int(Configuration.objects.get(key='multi_change_limit').value)
#except:
# limit = settings.QUERY_LIMIT_MULTI_CHANGE
#nv:16jan2024, this would be scary, but perhaps needed
#how large is the list that can go on the session?
#query_list_of_ids = list(self.object_list.values_list('id'))
query_list_of_ids = list(self.object_list.values_list('id'))[:settings.QUERY_LIMIT_MULTI_CHANGE]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment