<#5424 [BUG] Relaunch workflow converts large numb...
# flyte-github
c
#5424 [BUG] Relaunch workflow converts large numbers in array of structs to objects. Issue created by njubatyrov ### Describe the bug When relaunching a workflow in FlyteConsole, large numbers within an array of structs are incorrectly converted into objects. For example,
1716759253199713
will become
{ "low": 695446369, "high": 399714, "unsigned": false }
. This issue specifically occurs when the value of a key within the struct of an array is a large number, such as a Unix timestamp in microseconds. The root cause appears to be in the parseJson.ts of flyteconsole repo. This file parses JSON and returns a
Long
type for large numbers. However, when this
Long
type is included when pressing "Relaunch" button, it is not correctly serialised and thus potentially causing unexpected behaviour. ### Expected behavior When relaunching a workflow, the input data should be accurately populated in the text area prior to launch. ### Additional context to reproduce 1. Create a workflow where the input arguments are a collection of objects, and one of the key/value pairs is an integer that overflows JavaScript's Number type. 2. Once the job is complete, click "Relaunch". You will observe that the value has been converted into an object. ### Screenshots Screenshot of an input, observe the value of
bar
key: [input-data](https://private-user-images.githubusercontent.com/14790775/335308395-15331821-c74f-448e-8d32-0b14384eb72c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDgyMTg1MjEsIm5iZiI6MTc0ODIxODIyMSwicGF0aCI6Ii8xNDc5MDc3NS8zMzUzMDgzOTUtMTUzMzE4MjEtYzc0Zi00NDhlLThkMzItMGIxNDM4NGViNzJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTI2VDAwMTAyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI2NGU0NzBlZDU0YzEwMDY0MjM0YmJhZmIwNWI0MmU5YjNhYmNjZGIwMTQ2N2NmZjhlOTg2NzNkYjA3YTcyMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.PzKsuAgpcpSXN4H1mLe_1HP1T32b_FfIJ73U0ikyn4o) Screen of an input when pressing "Relaunch", observe the value turned into object: [relaunch-data](https://private-user-images.githubusercontent.com/14790775/335308420-32ab6d93-eab0-41c8-84bb-d8edc3138933.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDgyMTg1MjEsIm5iZiI6MTc0ODIxODIyMSwicGF0aCI6Ii8xNDc5MDc3NS8zMzUzMDg0MjAtMzJhYjZkOTMtZWFiMC00MWM4LTg0YmItZDhlZGMzMTM4OTMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTI2VDAwMTAyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjOGUzZTg1ZTBlMTQ2ODc4YmUxOTY0NmMzMjEwMjQ5OGFmOGI5YjIxM2YxMTUzZWY4ZGQzODUxZjQzNDEyYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kpVXIOAjAbCMMsf11hmdDXjLMnu67g3It8Wsj4dHIxQ) No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte