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 choosing reply action #373

Merged
merged 5 commits into from
Nov 22, 2023
Merged

Fix choosing reply action #373

merged 5 commits into from
Nov 22, 2023

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Nov 19, 2023

This PR fixes the release blocker found in 20231115 release test.

refactor(webhook): map state and payload in createPostbackAction

  • we don't touch PostbackActionData in chatbotState because we don't want to change ChatbotPostbackHandlerParams; which makes calling postback more difficult

refactor(webhook): type yes/no postback handlers

Screenshot

  1. Choose 1st article, list replies for 1st article
  2. Choose 2nd article, list replies for 2nd article
  3. Choose a reply for 1st article, show link to 1st article
  4. Choose a reply for 2nd article, show link to 2nd article

1700542535241
1700542535700

- we don't touch PostbackActionData in chatbotState because we don't want to change ChatbotPostbackHandlerParams; which makes calling postback more difficult
Copy link
Member Author

MrOrz commented Nov 19, 2023

@MrOrz MrOrz changed the title refactor(webhook): map state and payload in createPostbackAction - we don't touch PostbackActionData in chatbotState because we don't want to change ChatbotPostbackHandlerParams; which makes calling postback more difficult Fix choosing reply action Nov 19, 2023
- Some execution do not wait for result and uses timeout to ensure completion
- However these tests are vulnerable to parallel execution, which may cause timeout happen earlier than execution
- This commit sets --runInBand in workflow file to ensure one test is run every time
@coveralls
Copy link

coveralls commented Nov 19, 2023

Pull Request Test Coverage Report for Build 6922190714

  • 11 of 13 (84.62%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 89.666%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/webhook/handlers/askingArticleSource.ts 5 6 83.33%
src/webhook/handlers/askingArticleSubmissionConsent.ts 5 6 83.33%
Totals Coverage Status
Change from base Build 6842218854: -0.2%
Covered Lines: 977
Relevant Lines: 1053

💛 - Coveralls

@MrOrz MrOrz self-assigned this Nov 19, 2023
@MrOrz MrOrz marked this pull request as ready for review November 19, 2023 18:23
Copy link
Member Author

MrOrz commented Nov 22, 2023

Merge activity

  • Nov 22, 8:01 AM: @MrOrz started a stack merge that includes this pull request via Graphite.
  • Nov 22, 8:01 AM: @MrOrz merged this pull request with Graphite.

Base automatically changed from id-in-context to master November 22, 2023 13:01
@MrOrz MrOrz merged commit e7eae79 into master Nov 22, 2023
7 of 9 checks passed
@MrOrz MrOrz deleted the payload-type branch November 22, 2023 13:01
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.

4 participants