Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
56378c97
Commit
56378c97
authored
1 year ago
by
Jörn Künsemöller
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2947
: add additonal filters
parent
69e932a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1341
Resolve TMSS-2947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py
+3
-1
3 additions, 1 deletion
...ckend/src/tmss/workflowapp/viewsets/schedulingunitflow.py
with
3 additions
and
1 deletion
SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py
+
3
−
1
View file @
56378c97
...
...
@@ -117,8 +117,10 @@ class SchedulingUnitTaskFilter(property_filters.PropertyFilterSet):
owner_username
=
filters
.
CharFilter
(
field_name
=
'
owner__username
'
,
lookup_expr
=
'
icontains
'
)
owner_username_isnull
=
filters
.
BooleanFilter
(
label
=
'
owner_username [isnull]
'
,
field_name
=
'
owner__username
'
,
lookup_expr
=
'
isnull
'
)
project_name
=
property_filters
.
PropertyCharFilter
(
field_name
=
'
project__name
'
,
lookup_expr
=
'
icontains
'
)
project_category
=
property_filters
.
PropertyMultipleChoiceFilter
(
label
=
'
project category [any]
'
,
field_name
=
'
project__category
'
,
choices
=
[(
c
.
value
,
c
.
value
)
for
c
in
ProjectCategory
.
Choices
])
project_category
=
property_filters
.
PropertyMultipleChoiceFilter
(
label
=
'
project category [any]
'
,
field_name
=
'
project__
project_
category
'
,
choices
=
[(
c
.
value
,
c
.
value
)
for
c
in
ProjectCategory
.
Choices
])
scheduling_unit_status
=
filters
.
MultipleChoiceFilter
(
label
=
'
scheduling unit status [any]
'
,
field_name
=
'
process__schedulingunitprocess__su__status
'
,
choices
=
[(
c
.
value
,
c
.
value
)
for
c
in
SchedulingUnitStatus
.
Choices
])
scheduling_unit_id
=
NumberInFilter
(
field_name
=
'
process__schedulingunitprocess__su__id
'
,
lookup_expr
=
'
in
'
)
scheduling_unit_name
=
filters
.
CharFilter
(
field_name
=
'
process__schedulingunitprocess__su__name
'
,
lookup_expr
=
'
icontains
'
)
def
filter_flow_task
(
self
,
queryset
,
name
,
values
):
ids
=
[]
...
...
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