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(designer): Non-string literal values are casted as Strings Literals #4977

Conversation

AfroJoe759
Copy link
Contributor

@AfroJoe759 AfroJoe759 commented Jun 13, 2024

… to be a string

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug Fix

  • What is the current behavior? (You can also link to an open issue here)
    Current behavior for the new designer encapsulates non-string values in curly braces which in terms treats them as string literals and actually can prevent flows from being saved when expressions are generated since it malforms them.

Bug: https://msazure.visualstudio.com/One/_workitems/edit/28265634/

image

  • What is the new behavior (if this is a feature change)?

The new behavior only encapsulates the value in curly braces if the value is a StringLiteral, in all other cases the curly braces are removed.

image

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    This shouldn't introduce a breaking change.

  • Please Include Screenshots or Videos of the intended change:
    image

@AfroJoe759 AfroJoe759 changed the title Modified existing code to use literal values if value is not expected… fix(designer): Non-string literal values are casted as Strings Literals Jun 13, 2024
Joe Brown added 3 commits June 14, 2024 10:21
… joebrown/bugs/curlyBracesAroundExpressionV3Designer
… joebrown/bugs/curlyBracesAroundExpressionV3Designer
@Eric-B-Wu Eric-B-Wu merged commit 486b749 into Azure:main Jun 22, 2024
14 checks passed
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.

2 participants