Skip to content

Commit

Permalink
Mark Nexus link converter functions as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou committed Aug 30, 2024
1 parent 5364a47 commit 7a99d43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions temporalnexus/link_converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const (
urlPathWorkflowIDKey = "workflowID"
urlPathRunIDKey = "runID"
urlPathTemplate = "/namespaces/%s/workflows/%s/%s/history"
urlTemplate = "temporal://" + urlPathTemplate

linkWorkflowEventReferenceTypeKey = "referenceType"
linkEventReferenceEventIDKey = "eventID"
Expand All @@ -62,7 +61,7 @@ var (
))
)

// ConvertLinkWorkflowEventToNexusLink converts a Link_WorkflowEvent type to Nexus Link.
// EXPERIMENTAL: ConvertLinkWorkflowEventToNexusLink converts a Link_WorkflowEvent type to Nexus Link.
func ConvertLinkWorkflowEventToNexusLink(we *commonpb.Link_WorkflowEvent) nexus.Link {
u := &url.URL{
Scheme: urlSchemeTemporalKey,
Expand All @@ -85,7 +84,7 @@ func ConvertLinkWorkflowEventToNexusLink(we *commonpb.Link_WorkflowEvent) nexus.
}
}

// ConvertNexusLinkToLinkWorkflowEvent converts a Nexus Link to Link_WorkflowEvent.
// EXPERIMENTAL: ConvertNexusLinkToLinkWorkflowEvent converts a Nexus Link to Link_WorkflowEvent.
func ConvertNexusLinkToLinkWorkflowEvent(link nexus.Link) (*commonpb.Link_WorkflowEvent, error) {
we := &commonpb.Link_WorkflowEvent{}
if link.Type != string(we.ProtoReflect().Descriptor().FullName()) {
Expand Down

0 comments on commit 7a99d43

Please sign in to comment.