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

Improve merging of chained items #720

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

amendlik
Copy link

@amendlik amendlik commented May 6, 2024

Issue #, if available: N/A

Description of changes:

  • Add a space between merged items
  • Whitespace returned by ResponseBots is no longer required
  • Enable chaining of plaintext and SSML items while maintaining SSML content
  • Enable chaining of plaintext and Markdown items while maintaining Markdown content
  • Honor SSML returned from ResponseBots

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@fhoueto-amz fhoueto-amz requested a review from abhirpat May 15, 2024 14:20
ssmlMessage = botResp.message;
plainMessage = plainMessage.replace(/<\/?[^>]+(>|$)/g, ''); // NOSONAR - javascript:S5852 - input is user controlled and we have a limit on the number of characters
}
let plainMessage = _.get(botResp, 'messages.PlainText', '');
Copy link
Member

Choose a reason for hiding this comment

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

Need to confirm that the messages.Plaintext and messages.ssml do return the plaintext and ssml message separately now

Copy link
Member

@fhoueto-amz fhoueto-amz left a comment

Choose a reason for hiding this comment

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

seems overall ok. See my comment on ssml and plaintext messages

@fhoueto-amz fhoueto-amz removed the request for review from abhirpat May 15, 2024 14:32
@abhirpat
Copy link
Member

abhirpat commented Jun 7, 2024

Hi @amendlik do you have export of question you have used for testing these changes ? Have you had a chance to test against provided unit tests and functional test to see if they are passing? If not, please note that we have release 6.0.0 which has additional changes and improvements. Please refer to CHANGELOG for additional details about this release. Thank You!

@amendlik
Copy link
Author

I don't see any updates in 6.0.0 that correspond to the improvements provided in this PR.

@abhirpat
Copy link
Member

abhirpat commented Jun 20, 2024

Hi @amendlik could you please provide export of question you have used for testing these changes as requested in previous message? Also, have you had a chance test these changes with unit tests provided ?

@amendlik
Copy link
Author

Yes, I will get those to you as soon as I'm able.

@abhirpat
Copy link
Member

@amendlik Hope all is well. Please let us know if you had a chance to export the questions you have used for testing these changes as requested in previous message.

@abhirpat abhirpat removed their assignment Sep 4, 2024
@amendlik amendlik changed the base branch from develop to main December 3, 2024 18:12
@amendlik
Copy link
Author

amendlik commented Dec 3, 2024

Updated for v6.x.x and included Jest tests.

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