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
Lu Xu
slapos.core
Commits
691c77ac
Commit
691c77ac
authored
Sep 22, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Fixup event start date
See merge request
nexedi/slapos.core!427
parents
2773290b
33b05bcd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudTicketSlapInterfaceWorkflow.py
...s/test.erp5.testSlapOSCloudTicketSlapInterfaceWorkflow.py
+4
-0
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_slap_interface_workflow/script_Ticket_requestEvent.py
...ket_slap_interface_workflow/script_Ticket_requestEvent.py
+1
-0
No files found.
master/bt5/slapos_crm/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudTicketSlapInterfaceWorkflow.py
View file @
691c77ac
...
@@ -136,6 +136,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin):
...
@@ -136,6 +136,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin):
self
.
assertEqual
(
event
.
getPortalType
(),
"Web Message"
)
self
.
assertEqual
(
event
.
getPortalType
(),
"Web Message"
)
self
.
assertEqual
(
event
.
getDestination
(),
self
.
assertEqual
(
event
.
getDestination
(),
self
.
support_request
.
getSource
())
self
.
support_request
.
getSource
())
self
.
assertNotEqual
(
event
.
getStartDate
(),
None
)
def
test_SupportRequest_notify_noParameter
(
self
):
def
test_SupportRequest_notify_noParameter
(
self
):
self
.
assertRaises
(
TypeError
,
self
.
support_request
.
notify
)
self
.
assertRaises
(
TypeError
,
self
.
support_request
.
notify
)
...
@@ -179,6 +181,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin):
...
@@ -179,6 +181,8 @@ class TestSlapOSCoreTicketSlapInterfaceWorkflow(SlapOSTestCaseMixin):
self
.
support_request
.
getDestinationDecision
())
self
.
support_request
.
getDestinationDecision
())
self
.
assertEqual
(
event
.
getDestination
(),
self
.
assertEqual
(
event
.
getDestination
(),
self
.
support_request
.
getSourceSection
())
self
.
support_request
.
getSourceSection
())
self
.
assertNotEqual
(
event
.
getStartDate
(),
None
)
# Retry now to see if doesn't create a new message
# Retry now to see if doesn't create a new message
self
.
support_request
.
notify
(
self
.
support_request
.
notify
(
...
...
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_slap_interface_workflow/script_Ticket_requestEvent.py
View file @
691c77ac
...
@@ -15,6 +15,7 @@ except KeyError:
...
@@ -15,6 +15,7 @@ except KeyError:
web_message
=
portal
.
event_module
.
newContent
(
web_message
=
portal
.
event_module
.
newContent
(
portal_type
=
"Web Message"
,
portal_type
=
"Web Message"
,
start_date
=
DateTime
(),
title
=
title
,
title
=
title
,
text_content
=
text_content
,
text_content
=
text_content
,
source
=
source
,
source
=
source
,
...
...
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