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

[Renderer] Don't rewrite bool properties if JSON roundtrip is enabled to allow data binding of those properties in the designer #4351

Merged
merged 4 commits into from
Jul 16, 2020

Conversation

dclaux
Copy link
Member

@dclaux dclaux commented Jul 10, 2020

Related Issue

Fixes #4261

Description

Data binding support in the designer is currently limited. There are areas where it won't work as expected. A larger work item is planned in the future to bring full, comprehensive dat binding support to the designer, but in the meantime there are quite a few limitations. Binding to boolean properties is (well, was before this PR) one of limitations, but others exist.

With this PR, unset (undefined) boolean properties are not removed anymore from the output payload generated by card.toJSON, which in turn allows for whatever value was in the originally parsed payload to remain in the output (such as a binding expression.)

How Verified

Verified manually in adaptivecards-designer-app

Microsoft Reviewers: Open in CodeFlow

@ghost
Copy link

ghost commented Jul 10, 2020

Hi @dclaux. Thanks for helping make the AdaptiveCards JS renderer + tooling better. As additional verification, once the JS build succeeds, please go to the test site to test out your website/designer changes.

@ghost ghost added the no-recent-activity label Jul 16, 2020
@ghost ghost assigned almedina-ms Jul 16, 2020
@ghost
Copy link

ghost commented Jul 16, 2020

Hi @dclaux. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along.

@ghost ghost removed the no-recent-activity label Jul 16, 2020
@ghost
Copy link

ghost commented Jul 16, 2020

Hi @dclaux; Thanks for taking action on your previously stale pull request. Resetting staleness.

@dclaux dclaux merged commit fa64485 into main Jul 16, 2020
@dclaux dclaux deleted the designer/bool-binding-fix branch July 16, 2020 16:13
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.

data binding to boolean expression fails
4 participants