Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
a931bc93
Commit
a931bc93
authored
Jan 31, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more logs to the submit hander
parent
2b311e68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
messaging_extension_action_preview_bot.py
bots/messaging_extension_action_preview_bot.py
+4
-0
No files found.
bots/messaging_extension_action_preview_bot.py
View file @
a931bc93
...
...
@@ -259,14 +259,17 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
ack_objects
=
await
self
.
cosmos_client
.
get_acknowledge_items
(
mx
.
notification_id
)
log
.
info
(
f
"ack_objects: {ack_objects}"
)
if
len
(
ack_objects
)
>
0
:
return
log
.
info
(
"creating acknowledge item"
)
await
self
.
cosmos_client
.
create_acknowledge
(
mx
.
notification_id
,
account
)
notification
=
await
self
.
cosmos_client
.
get_notification
(
mx
.
notification_id
)
log
.
info
(
"updating card with the responsible user"
)
card
=
CardHelper
.
create_notification_card
(
notification
,
turn_context
.
activity
.
from_property
.
name
...
...
@@ -275,6 +278,7 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
message
=
Activity
(
id
=
turn_context
.
activity
.
reply_to_id
,
type
=
ActivityTypes
.
message
,
attachments
=
attachments
)
log
.
info
(
"updating the card"
)
await
turn_context
.
update_activity
(
message
)
except
ItemNotFound
:
# DO NOTHING, Notification not found!
...
...
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