<#436 Use proto file name to infer message type> P...
# flyte-github
a
#436 Use proto file name to infer message type Pull request opened by honnix TL;DR Use proto file name to infer message type to have more precise unmarshalling. Type ☑︎ Bug Fix ☐ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☑︎ Smoke tested ☑︎ Unit tests added (the existing unit tests cover this change well) ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description flytekit generated proto file name has a pattern to precisely indicate the message type:
.*_1.pb
is task,
.*_2.pb
is workflow and
.*_3.pb
is launch plan. We can rely on this pattern to do more precise unmarshalling. Note that we still try other types if the unmarshalling based on the precisely matched type does not work. This PR keeps backward compatibility so if the pattern is not seen, it goes through all possible types and tries one by one. Tracking Issue fixes flyteorg/flyte#3042 Follow-up issue NA flyteorg/flytectl GitHub Actions: Goreleaser GitHub Actions: Generate documentation GitHub Actions: Bump Version ✅ 9 other checks have passed 9/12 successful checks