Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
6c72d5e3
Commit
6c72d5e3
authored
1 year ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
better ingestq filter and restore previous functionality
parent
2b5f8d3a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!336
Ingestq filter
Pipeline
#69099
passed
1 year ago
Stage: test
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
atdb/atdb/settings/base.py
+1
-1
1 addition, 1 deletion
atdb/atdb/settings/base.py
atdb/taskdatabase/views.py
+3
-8
3 additions, 8 deletions
atdb/taskdatabase/views.py
with
4 additions
and
9 deletions
atdb/atdb/settings/base.py
+
1
−
1
View file @
6c72d5e3
...
...
@@ -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
=
5
000
QUERY_LIMIT_MULTI_CHANGE
=
10
000
MAX_MONITORING_HISTORY_HOURS
=
7
*
24
SERVICES_LATE_WARNING_SECONDS
=
1800
...
...
This diff is collapsed.
Click to expand it.
atdb/taskdatabase/views.py
+
3
−
8
View file @
6c72d5e3
...
...
@@ -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
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment