Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
0df7e6f4
Commit
0df7e6f4
authored
May 12, 2023
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Skip to call catalog if uid_list is empty
if uid is empty it returns whole catalog
parent
44c96349
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Organisation_getComputeNodeTrackingList.py
...hal_json_style/Organisation_getComputeNodeTrackingList.py
+8
-4
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Project_getComputeNodeTrackingList.py
...apos_hal_json_style/Project_getComputeNodeTrackingList.py
+8
-4
No files found.
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Organisation_getComputeNodeTrackingList.py
View file @
0df7e6f4
...
@@ -13,7 +13,11 @@ def filter_per_portal_type(document):
...
@@ -13,7 +13,11 @@ def filter_per_portal_type(document):
and
document
.
getValidationState
()
==
"validated"
:
and
document
.
getValidationState
()
==
"validated"
:
return
document
return
document
return
portal
.
portal_catalog
(
uid
=
[
i
.
uid
uid_list
=
[
i
.
uid
for
i
in
context
.
portal_simulation
.
getCurrentTrackingList
(
for
i
in
context
.
portal_simulation
.
getCurrentTrackingList
(
node_uid
=
context
.
getUid
(),
at_date
=
DateTime
())
node_uid
=
context
.
getUid
(),
at_date
=
DateTime
())
if
filter_per_portal_type
(
i
.
getObject
())]
if
filter_per_portal_type
(
i
.
getObject
())],
**
kw
)
if
not
uid_list
:
return
[]
return
portal
.
portal_catalog
(
uid
=
uid_list
,
**
kw
)
master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Project_getComputeNodeTrackingList.py
View file @
0df7e6f4
...
@@ -13,7 +13,11 @@ def filter_per_portal_type(document):
...
@@ -13,7 +13,11 @@ def filter_per_portal_type(document):
and
document
.
getValidationState
()
==
"validated"
:
and
document
.
getValidationState
()
==
"validated"
:
return
document
return
document
return
portal
.
portal_catalog
(
uid
=
[
i
.
uid
uid_list
=
[
i
.
uid
for
i
in
context
.
portal_simulation
.
getCurrentTrackingList
(
for
i
in
context
.
portal_simulation
.
getCurrentTrackingList
(
project_uid
=
context
.
getUid
(),
at_date
=
DateTime
())
project_uid
=
context
.
getUid
(),
at_date
=
DateTime
())
if
filter_per_portal_type
(
i
.
getObject
())]
if
filter_per_portal_type
(
i
.
getObject
())],
**
kw
)
if
not
uid_list
:
return
[]
return
portal
.
portal_catalog
(
uid
=
uid_list
,
**
kw
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment