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
40affc42
Commit
40affc42
authored
Jun 10, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: reindex with activate_kw the object modified by the alarms
parent
3c0ac6da
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
2 deletions
+8
-2
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/Alarm_validateSubmittedSubscriptionChangeRequest.py
...quest/Alarm_validateSubmittedSubscriptionChangeRequest.py
+1
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/Alarm_validateSubmittedSubscriptionRequest.py
...ion_request/Alarm_validateSubmittedSubscriptionRequest.py
+1
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionChangeRequest_validateIfSubmitted.py
..._request/SubscriptionChangeRequest_validateIfSubmitted.py
+2
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionChangeRequest_validateIfSubmitted.xml
...request/SubscriptionChangeRequest_validateIfSubmitted.xml
+1
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_validateIfSubmitted.py
...iption_request/SubscriptionRequest_validateIfSubmitted.py
+2
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_validateIfSubmitted.xml
...ption_request/SubscriptionRequest_validateIfSubmitted.xml
+1
-1
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/Alarm_validateSubmittedSubscriptionChangeRequest.py
View file @
40affc42
...
...
@@ -2,6 +2,7 @@ portal = context.getPortalObject()
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'SubscriptionChangeRequest_validateIfSubmitted'
,
method_kw
=
{
'activate_kw'
:
{
'tag'
:
tag
}},
# Project are created only from UI for now
portal_type
=
[
"Subscription Change Request"
],
simulation_state
=
'submitted'
,
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/Alarm_validateSubmittedSubscriptionRequest.py
View file @
40affc42
...
...
@@ -2,6 +2,7 @@ portal = context.getPortalObject()
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'SubscriptionRequest_validateIfSubmitted'
,
method_kw
=
{
'activate_kw'
:
{
'tag'
:
tag
}},
# Project are created only from UI for now
portal_type
=
[
"Subscription Request"
],
simulation_state
=
'submitted'
,
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionChangeRequest_validateIfSubmitted.py
View file @
40affc42
...
...
@@ -9,6 +9,8 @@ portal = context.getPortalObject()
assert
subscription_change_request
.
getPortalType
()
==
'Subscription Change Request'
assert
subscription_change_request
.
getSimulationState
()
==
'submitted'
subscription_change_request
.
reindexObject
(
activate_kw
=
activate_kw
)
def
invalidate
(
document
,
comment
):
context
.
validate
()
context
.
invalidate
(
comment
=
comment
)
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionChangeRequest_validateIfSubmitted.xml
View file @
40affc42
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
REQUEST=None
</string>
</value>
<value>
<string>
REQUEST=None
, activate_kw=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_validateIfSubmitted.py
View file @
40affc42
...
...
@@ -7,6 +7,8 @@ portal = context.getPortalObject()
assert
subscription_request
.
getPortalType
()
==
'Subscription Request'
assert
subscription_request
.
getSimulationState
()
==
'submitted'
subscription_request
.
reindexObject
(
activate_kw
=
activate_kw
)
def
markHistory
(
document
,
comment
):
portal_workflow
=
document
.
portal_workflow
last_workflow_item
=
portal_workflow
.
getInfoFor
(
ob
=
document
,
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_validateIfSubmitted.xml
View file @
40affc42
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
REQUEST=None
</string>
</value>
<value>
<string>
REQUEST=None
, activate_kw=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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