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
0
Merge Requests
0
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
Titouan Soulard
slapos.core
Commits
26f40b27
Commit
26f40b27
authored
Sep 15, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: update Base_getSupportRequestInProgress usage
parent
a255ce35
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputeNode_checkSoftwareInstallationState.py
..._monitoring/ComputeNode_checkSoftwareInstallationState.py
+4
-5
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputeNode_checkState.py
...tal_skins/slapos_crm_monitoring/ComputeNode_checkState.py
+6
-8
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/InstanceTree_createSupportRequestEvent.py
..._crm_monitoring/InstanceTree_createSupportRequestEvent.py
+2
-3
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputeNode_checkSoftwareInstallationState.py
View file @
26f40b27
from
DateTime
import
DateTime
portal
=
context
.
getPortalObject
()
if
context
.
getMonitorScope
()
==
"disabled"
or
\
if
(
context
.
getMonitorScope
()
==
"disabled"
)
or
\
portal
.
ERP5Site_isSupportRequestCreationClosed
():
return
return
software_installation_list
=
portal
.
portal_catalog
(
portal_type
=
'Software Installation'
,
...
...
@@ -48,9 +48,8 @@ for software_installation in software_installation_list:
if
should_notify
:
support_request
=
person
.
Base_getSupportRequestInProgress
(
title
=
ticket_title
,
aggregate
=
context
.
getRelativeUrl
())
support_request
=
context
.
Base_getSupportRequestInProgress
(
title
=
ticket_title
)
if
support_request
is
None
:
person
.
notify
(
support_request_title
=
ticket_title
,
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/ComputeNode_checkState.py
View file @
26f40b27
from
DateTime
import
DateTime
portal
=
context
.
getPortalObject
()
if
context
.
getMonitorScope
()
==
"disabled"
or
\
if
(
context
.
getMonitorScope
()
==
"disabled"
)
or
\
portal
.
ERP5Site_isSupportRequestCreationClosed
():
return
...
...
@@ -51,7 +51,7 @@ if not should_notify:
if
compute_partition_uid_list
:
instance_list
=
portal
.
portal_catalog
(
portal_type
=
'Software Instance'
,
default_aggregate
_uid
=
compute_partition_uid_list
)
aggregate_
_uid
=
compute_partition_uid_list
)
if
instance_list
:
should_notify
=
True
...
...
@@ -73,14 +73,12 @@ if not should_notify:
context
.
getTitle
(),
context
.
getReference
(),
last_contact
)
if
should_notify
:
support_request
=
person
.
Base_getSupportRequestInProgress
(
title
=
node_ticket_title
,
aggregate
=
context
.
getRelativeUrl
())
support_request
=
context
.
Base_getSupportRequestInProgress
(
title
=
node_ticket_title
)
if
support_request
is
None
:
support_request
=
person
.
Base_getSupportRequestInProgress
(
title
=
ticket_title
,
aggregate
=
context
.
getRelativeUrl
())
support_request
=
context
.
Base_getSupportRequestInProgress
(
title
=
ticket_title
)
if
support_request
is
None
:
person
.
notify
(
support_request_title
=
ticket_title
,
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/InstanceTree_createSupportRequestEvent.py
View file @
26f40b27
...
...
@@ -16,9 +16,8 @@ if error_message:
else
:
error_message
=
"No message!"
support_request
=
person
.
Base_getSupportRequestInProgress
(
title
=
ticket_title
,
aggregate
=
context
.
getRelativeUrl
())
support_request
=
context
.
Base_getSupportRequestInProgress
(
title
=
ticket_title
)
if
support_request
is
None
:
person
.
notify
(
support_request_title
=
ticket_title
,
...
...
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