Skip to content
Snippets Groups Projects

WS-649: send CARTA URL to workspaces system

Merged Janet Goldstein requested to merge WS-649-send-carta-url-to-ws into main
All threads resolved!
5 files
+ 98
75
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -274,6 +274,7 @@ class NotificationConnect:
def send_session_expired(self):
"""
Notifies of expired CARTA session
:return:
"""
if "user_email" not in self.settings:
@@ -297,14 +298,15 @@ class WorkflowConnect:
self.settings = settings
self.url = settings["workflow_url"]
def send_carta_url_to_ws(self, wrapper_url: str):
def send_carta_url(self, wrapper_url: str):
"""
Makes REST call to send message containing CARTA URL to workspaces system
:return:
"""
send_url_message = f"{self.settings['workflow_url']}/workflows/carta/requests/{self.settings['wf_request_id']}/send-url-to-ws"
payload = {"carta_url": wrapper_url}
self.logger.info(
"Sending REST call to workflow service for WS CARTA messaging."
send_url_message = (
f"{self.settings['workflow_url']}/workflows/carta/requests/{self.settings['wf_request_id']}/url"
)
payload = {"carta_url": wrapper_url}
self.logger.info("Sending REST call to workflow service for WS CARTA messaging.")
requests.post(send_url_message, json=payload)
Loading