Skip to content

Commit fa4ad91

Browse files
committed
Rename
1 parent 5f60dba commit fa4ad91

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

temporalio/nexus/_link_conversion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def workflow_event_to_nexus_link(
5151
workflow_id = urllib.parse.quote(workflow_event.workflow_id)
5252
run_id = urllib.parse.quote(workflow_event.run_id)
5353
path = f"/namespaces/{namespace}/workflows/{workflow_id}/{run_id}/history"
54-
query_params = _query_params_from_event_reference(workflow_event.event_ref)
54+
query_params = _event_reference_to_query_params(workflow_event.event_ref)
5555
return nexusrpc.Link(
5656
url=urllib.parse.urlunparse((scheme, "", path, "", query_params, "")),
5757
type=workflow_event.DESCRIPTOR.full_name,
@@ -69,7 +69,7 @@ def nexus_link_to_workflow_event(
6969
)
7070
return None
7171
try:
72-
event_ref = _event_reference_from_query_params(url.query)
72+
event_ref = _query_params_to_event_reference(url.query)
7373
except ValueError as err:
7474
logger.warning(
7575
f"Failed to parse event reference from Nexus link URL query parameters: {link} ({err})"
@@ -85,7 +85,7 @@ def nexus_link_to_workflow_event(
8585
)
8686

8787

88-
def _query_params_from_event_reference(
88+
def _event_reference_to_query_params(
8989
event_ref: temporalio.api.common.v1.Link.WorkflowEvent.EventReference,
9090
) -> str:
9191
event_type_name = temporalio.api.enums.v1.EventType.Name(event_ref.event_type)
@@ -98,7 +98,7 @@ def _query_params_from_event_reference(
9898
)
9999

100100

101-
def _event_reference_from_query_params(
101+
def _query_params_to_event_reference(
102102
raw_query_params: str,
103103
) -> temporalio.api.common.v1.Link.WorkflowEvent.EventReference:
104104
"""Return an EventReference from the query params or raise ValueError."""

0 commit comments

Comments
 (0)