Skip to content
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: convert empty array literals to empty collection literals #121

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

schottra
Copy link
Contributor

TL;DR

This change ensures that the empty array literal string ("[]") is correctly converted to a Core.ILiteral collection with an empty literals property.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

The original implementation incorrectly determined that an empty array literal string should be converted to a None type Literal. This is equivalent to passing void/null for the value, which is not correct. I updated the code to continue trying to parse the inner value (which will be an empty JS array), resulting in the proper Literal value being returned.

Tracking Issue

flyteorg/flyte#533

Follow-up issue

NA

@service-github-lyft-semantic-release
Copy link
Contributor

🎉 This PR is included in version 0.17.7 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@schottra schottra deleted the fix-empty-collection-values branch December 4, 2020 20:33
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.

3 participants