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

Add more error handling to mountAdaptiveCards #1176

Closed
wants to merge 3 commits into from

Conversation

corinagum
Copy link
Contributor

#1125
@compulim could you let me know if this is what you were looking for for this fix? (also could you provide guidance on appropriate tests?)

adaptiveCard.parse(cardWithoutHttpActions(this.props.jsonCard));
errors = adaptiveCard.validate();
} catch (error) {
errors.push(error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you verify how errors array get displayed on the screen?

Think about the upstream and downstream when changing the code:

  • Downstream
    • Can the screen display Error?
    • Can it display IValidationError and Error at the same time?
    • What's the code over there? There is a command at MockBot v4 to force IValidationError, The command is called card broken and card broken:1
    • Also add a case to MockBot to make sure we capture this regression later
      • MockBot might already have this captured or not, I am not quite sure
  • Upstream: there is no upstreamer in this case, so it's good

Also, try it in v4 by visiting https://webchat-playground.azure-websites.net/. If there is a bug over there, file another issue.

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