From 32fe41137d028a38ae6fafe8e7421dd1a643d7f3 Mon Sep 17 00:00:00 2001 From: Jason Litton Date: Tue, 22 Oct 2024 13:48:18 -0600 Subject: [PATCH 1/2] fix(core-ticket): Add dispatch_weblink field to core ticket plugin When using the core ticket plugin, we're getting the error `TypeError: DispatchTicketPlugin.update() got an unexpected keyword argument 'dispatch_weblink'` This field was added for the Jira ticket plugin but never added to the core plugin. Since the plugin returns no matter the arguments, I've simply added the field. --- src/dispatch/plugins/dispatch_core/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_core/plugin.py b/src/dispatch/plugins/dispatch_core/plugin.py index 2dbeb354a615..6b0095a15692 100644 --- a/src/dispatch/plugins/dispatch_core/plugin.py +++ b/src/dispatch/plugins/dispatch_core/plugin.py @@ -211,6 +211,7 @@ def update( document_weblink: str, storage_weblink: str, conference_weblink: str, + dispatch_weblink: str, cost: float, incident_type_plugin_metadata: dict = None, ): @@ -528,4 +529,4 @@ def get( ) db_session.commit() - return individual_contacts, team_contacts + return individual_contacts, team_contacts \ No newline at end of file From 1a365d56d9ff78c7bda637ba3b9a363832a6f23b Mon Sep 17 00:00:00 2001 From: Jason Litton Date: Tue, 22 Oct 2024 14:27:09 -0600 Subject: [PATCH 2/2] add newline that ide removed --- src/dispatch/plugins/dispatch_core/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_core/plugin.py b/src/dispatch/plugins/dispatch_core/plugin.py index 6b0095a15692..f8e881f160aa 100644 --- a/src/dispatch/plugins/dispatch_core/plugin.py +++ b/src/dispatch/plugins/dispatch_core/plugin.py @@ -529,4 +529,4 @@ def get( ) db_session.commit() - return individual_contacts, team_contacts \ No newline at end of file + return individual_contacts, team_contacts