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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
3b113a5a
Commit
3b113a5a
authored
Jan 19, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: manually filter Allocation Supply by Compute Node
parent
77cca929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Project_getSoftwareProductPredicateList.py
...s/slapos_cloud/Project_getSoftwareProductPredicateList.py
+7
-6
No files found.
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Project_getSoftwareProductPredicateList.py
View file @
3b113a5a
...
...
@@ -16,10 +16,7 @@ if software_product is not None:
if
destination_value
is
None
:
destination_value
=
portal
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
if
node_value
is
not
None
:
tested_base_category_list
.
append
(
'aggregate'
)
if
len
(
tested_base_category_list
)
==
6
:
if
len
(
tested_base_category_list
)
==
5
:
tested_base_category_list
=
None
if
predicate_portal_type
is
None
:
...
...
@@ -33,12 +30,16 @@ tmp_context = portal.portal_trash.newContent(
software_release_value
=
software_product_release
,
destination_value
=
destination_value
,
destination_project_value
=
project
,
aggregate_value
=
node_value
,
start_date
=
DateTime
()
)
# XXX aggregate category is not acquired by Cell from Supply (this is expected)
# maybe another base category should be used to filter with searchPredicateList?
if
node_value
is
not
None
:
node_relative_url
=
node_value
.
getRelativeUrl
()
return
[
x
.
getObject
()
for
x
in
domain_tool
.
searchPredicateList
(
tmp_context
,
portal_type
=
predicate_portal_type
,
tested_base_category_list
=
tested_base_category_list
)]
)
if
((
node_value
is
None
)
or
(
node_relative_url
in
x
.
getParentValue
().
getParentValue
().
getAggregateList
()))
]
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