Skip to content

fix(launch): render object map values as JSON on relaunch - #922

Open
1fanwang wants to merge 2 commits into
flyteorg:masterfrom
1fanwang:fix-mapinput-object-render
Open

fix(launch): render object map values as JSON on relaunch#922
1fanwang wants to merge 2 commits into
flyteorg:masterfrom
1fanwang:fix-mapinput-object-render

Conversation

@1fanwang

@1fanwang 1fanwang commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Relaunching an execution with object values in a map breaks the launch form.

Before this change, each object renders as [object Object], validation fails, and
Launch is disabled. After this change, object values render as JSON and the execution
can be launched again.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added. Not applicable: no public API changed.
  • Any pending items have an associated Issue. No pending items.

Complete description

Convert object map values to JSON strings at the form boundary. Plain string and
number values keep their existing representation.

Manual check:

  1. Run a task with a map input whose value is a struct.
  2. Open the completed execution and select Relaunch.
  3. Inspect the map value and the Launch button.

Before this change, the field shows [object Object] and Launch is disabled. With this
change, the field shows JSON and Launch succeeds. Regression tests cover object and
string values.

Tracking Issue

N/A

Follow-up issue

N/A

@welcome

welcome Bot commented Jun 21, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@1fanwang 1fanwang changed the title fix(launch): render object map values as JSON instead of crashing on relaunch fix(launch): render object map values as JSON on relaunch Aug 20, 2026
…relaunch

A map whose values are objects (e.g. Map[str, Struct]) parsed each value into the
string-typed value field, so the launch form bound an object straight into a text
input -- coerced to "[object Object]" and producing render errors on relaunch.
JSON-stringify object values at parse time so the field always receives a string.

Signed-off-by: 1fanwang <1fannnw@gmail.com>
The test name and assertions already carry the relaunch scenario. Repeating the same behavior in source and test comments adds noise without documenting another constraint.

Signed-off-by: 1fanwang <1fannnw@gmail.com>
@1fanwang
1fanwang force-pushed the fix-mapinput-object-render branch from a7c1cc5 to 2dea5d0 Compare August 24, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant