Closed dhananjaysathe closed 1 year ago
@dhananjaysathe did you map the executive report document template to the incident type(s)? Does the document for the executive report get created in the Google share folder you created?
yes i did that as described in the bug report """ Setting up template and incident types:
for "default" incident type i created a new created a new "default" executive template -> with weblink "https://docs.google.com/document/d/1dab6k14p5ageo5B_d1YlB_zS9hMGHDMXy9RUbIZous4/edit" that i got from the examples;
NOTE : default here is just a name i chose , and also marked the incident type name "defaut" -> default as required in the ui
"""
Does the document for the executive report get created in the Google share folder you created? The error tells me something is going wrong when the document is getting created.
Hey @mvilanova thanks for your response. sorry i wasnt clear earlier, folder/files are NOT created :(
That's what I was afraid of. Make sure the settings in your Google Drive Plugin - Storage Management
and Google Docs Plugin - Document Management
are correct.
Hello @mvilanova i added the configuration for document too , no dice I have the following enabled now
Slack Plugin - Conversation Management
Slack Plugin - Contact Information Resolver
Google Drive Plugin - Storage Management
Dispatch Plugin - Ticket Management
Dispatch Plugin - Participant Resolver
Google Docs Plugin - Document Management
Dispatch Plugin - Basic Authentication Provider
also enabled document resolver, not sure that that does
Please review that the configuration settings for the Google related plugins are correct. That's likely the issue. If you see any other errors feel free to share them here.
Here is rough visually repeating what i set as configuration , may be easier to follow https://ibb.co/vk44S72
i pasted the entire contents of private key including /n etc from the json i got from google
Config looks ok. The plugins are enabled correct? The checkbox in the screenshot is not checked.
that was demo so didnt enable it , they are all enabled https://ibb.co/sqS4CMh
If the plugins are enabled and properly configured a document should be created off of the template defined. Make sure that the account Google account you're using has permissions to access the template.
@dhananjaysathe were you able to resolve the issue? If so, feel free to close it.
Nope no luck 😞
This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.
This issue was closed, because it has been stalled for 5 days with no activity.
Describe the bug When i try slack slash command to file executive report it fails
To Reproduce Steps to reproduce the behavior:
Setting up google :
Setup google account as detailed here https://github.com/Netflix/dispatch/blob/master/docs/admin-guide/administration/plugins/configuring-g-suite.md - only for Google Drive Plugin - Storage Management (i enabled all apis, setup domain delegation etc , all of it as instructed) Mapped
Setting up template and incident types:
Creating incident and testing:
Relevant Logs as follows:
share_contact_card': 'EVERYONE'}}:/usr/local/lib/python3.9/site-packages/slack_sdk/web/async_internal_utils.py:_request_with_session:143 INFO: 10.146.0.18:64209 - "POST /default/events/slack/action HTTP/1.1" 200 OK ERROR:'NoneType' object has no attribute 'name':/usr/local/lib/python3.9/site-packages/dispatch/decorators.py:wrapper:92 Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/dispatch/decorators.py", line 85, in wrapper result = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/dispatch/report/flows.py", line 119, in create_executive_report f"{executive_report.document.name} - {executive_report.document.weblink}\n" AttributeError: 'NoneType' object has no attribute 'name' ERROR:'NoneType' object has no attribute 'document':/usr/local/lib/python3.9/site-packages/dispatch/plugins/dispatch_slack/decorators.py:wrapper:169 Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/dispatch/plugins/dispatch_slack/decorators.py", line 147, in wrapper result = func(*args, **kwargs) File "/usr/local/lib/python3.9/site-packages/dispatch/plugins/dispatch_slack/actions.py", line 491, in handle_executive_report_create f"The executive report document has been created and can be found in the incident storage here: {executive_report.document.weblink}", AttributeError: 'NoneType' object has no attribute 'document'
Expected behavior A google doc with report should have been created
Release v20220915