-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: type error on invalid nested json input #693
fix: type error on invalid nested json input #693
Conversation
Codecov Report
@@ Coverage Diff @@
## master #693 +/- ##
==========================================
- Coverage 66.74% 66.73% -0.02%
==========================================
Files 464 464
Lines 11388 11390 +2
Branches 2102 2104 +2
==========================================
Hits 7601 7601
- Misses 3787 3789 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
if (keys[0]) { | ||
if (keys.length > 1) { | ||
// If there are multiple keys, we can't render a form because of not supporting nested structs | ||
jsonFormRenderable = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to render a free-form text area in this case; they can paste in JSON?
bafe0c7
to
1f3e7db
Compare
Signed-off-by: 4nalog <[email protected]>
* fix: launchform Signed-off-by: James <[email protected]> * fix: stuck issue Signed-off-by: James <[email protected]> * fix: on form change Signed-off-by: James <[email protected]> * fix: merge master into branch Signed-off-by: James <[email protected]> --------- Signed-off-by: James <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Jason Porter <[email protected]> Signed-off-by: 4nalog <[email protected]>
* fix: project settings dashbboard tests Signed-off-by: 4nalog <[email protected]> * chore: remove .only Signed-off-by: 4nalog <[email protected]> * refactor: remove empty waitFor Signed-off-by: 4nalog <[email protected]> --------- Signed-off-by: 4nalog <[email protected]>
Upgrading node version to 18 Signed-off-by: Jason Porter <[email protected]> Signed-off-by: 4nalog <[email protected]>
* fix: revert node version Signed-off-by: Carina Ursu <[email protected]> * Revert "fix: upgrading node version to 18 (#703)" This reverts commit e5f9a8b. Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
* fix: deployment optimization Signed-off-by: Carina Ursu <[email protected]> * clean up node modules and one file that we think is not needed Signed-off-by: Yee Hing Tong <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: Yee Hing Tong <[email protected]> Co-authored-by: Yee Hing Tong <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: 4nalog <[email protected]>
* chore: fix update_npmversion Signed-off-by: Carina Ursu <[email protected]> * chore: edits Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
* fix: cache status logs indexing mismatch and react rendering cycle issue Signed-off-by: James <[email protected]> * fix: mapped task cache status Signed-off-by: James <[email protected]> --------- Signed-off-by: James <[email protected]> Co-authored-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
fix: passthrough runtime variables Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
fix: nodejs 18 upgrade Signed-off-by: James <[email protected]> Signed-off-by: 4nalog <[email protected]>
* chore: allow complex workflow names Signed-off-by: Carina Ursu <[email protected]> * chore: fix buold:watch Signed-off-by: Carina Ursu <[email protected]> * chore: yarn.lock Signed-off-by: Carina Ursu <[email protected]> * chore: upgrade package Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]>
* chore: show correct app version in info Signed-off-by: Carina Ursu <[email protected]> * chore: update ver Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
fix: add icon for put failure Signed-off-by: James <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: 4nalog <[email protected]>
* chore: add material-ui class name seed Signed-off-by: Carina Ursu <[email protected]> * fix: overflow of modal Signed-off-by: James <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: James <[email protected]> Co-authored-by: James <[email protected]> Signed-off-by: 4nalog <[email protected]>
… correctly (#723) fix: dynamic nodes status Signed-off-by: James <[email protected]> Signed-off-by: 4nalog <[email protected]>
* chore: backfill index on execution task logs Signed-off-by: Carina Ursu <[email protected]> * chore: add comments Signed-off-by: Carina Ursu <[email protected]> * chore: bump version Signed-off-by: Carina Ursu <[email protected]> * chore: remove backfill Signed-off-by: Carina Ursu <[email protected]> * chore: lint Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: eduardo apolinario <[email protected]> Co-authored-by: eduardo apolinario <[email protected]> Signed-off-by: 4nalog <[email protected]>
* chore: show correct i/o in details panel Signed-off-by: Carina Ursu <[email protected]> * chore: bump version Signed-off-by: Carina Ursu <[email protected]> * chore: feedback Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
* chore: tlro basic setup Signed-off-by: Carina Ursu <[email protected]> * progress checkin * Stable state refactored to use generic naming * updated types * working before updating routes * chore: progress Signed-off-by: Carina Ursu <[email protected]> * chore: remove debugger Signed-off-by: Carina Ursu <[email protected]> * chore: allow custom class in execution actions Signed-off-by: Carina Ursu <[email protected]> * chore: lint fix Signed-off-by: Carina Ursu <[email protected]> * chore: bump console Signed-off-by: Carina Ursu <[email protected]> * chore: up package version Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Co-authored-by: Jason Porter <[email protected]> Signed-off-by: 4nalog <[email protected]>
* chore: fix contextual menu action buttons color Signed-off-by: Carina Ursu <[email protected]> * chore: up console version Signed-off-by: Carina Ursu <[email protected]> --------- Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
* fix: approveCondition reject Signed-off-by: James <[email protected]> * fix: approve button Signed-off-by: James <[email protected]> --------- Signed-off-by: James <[email protected]> Signed-off-by: 4nalog <[email protected]>
* fix: gate node in dynamic Signed-off-by: James <[email protected]> * fix: upgraded version Signed-off-by: James <[email protected]> * fix: compiledNode in PausedTasksComponent and ExecutionDetailsActions Signed-off-by: James <[email protected]> * fix: upgrade version Signed-off-by: James <[email protected]> * chore: lockfile Signed-off-by: Carina Ursu <[email protected]> * fix: remove caching for workflow closure Signed-off-by: James <[email protected]> * fix: break link between cache and context state Signed-off-by: James <[email protected]> --------- Signed-off-by: James <[email protected]> Signed-off-by: Carina Ursu <[email protected]> Co-authored-by: Carina Ursu <[email protected]> Signed-off-by: 4nalog <[email protected]>
Signed-off-by: 4nalog <[email protected]>
7a9577b
to
9423239
Compare
…fix-type-error-on-invalid-json-input
🎉 This PR is included in version 1.5.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
TL;DR
This PR fixes the
parseJson
utility function that maps inputs to a JSON form to handle situations when a nested object is optional or has value of null.Type
Are all requirements met?
Complete description
parseJson
helper function does not handlenull
valuesTracking Issue
fixes flyteorg/flyte#3157
Follow-up issue
NA