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(Bot, LineConnector, MessengerConnector): when receiving multiple events, construct session with event instead of request #621

Merged
merged 1 commit into from
Jan 8, 2020

Conversation

chentsulin
Copy link
Collaborator

@chentsulin chentsulin commented Jan 8, 2020

fix #240

In this PR, I don't want to introduce any breaking changes to Connector API interface, so It's acceptable to support both request body and event in LineConnector and MessengerConnector. (support request body as parameter until v2)

Todo:

  • Add tests

@chentsulin chentsulin changed the title fix(Bot, LineConnector, MessengerConnector): when receiving multiple events, construct session with evnet instead of request fix(Bot, LineConnector, MessengerConnector): when receiving multiple events, construct session with event instead of request Jan 8, 2020
@chentsulin chentsulin force-pushed the fix-multiple-event-in-a-request branch 2 times, most recently from d7825fa to 7204ed1 Compare January 8, 2020 04:30
@codecov-io
Copy link

codecov-io commented Jan 8, 2020

Codecov Report

Merging #621 into master will increase coverage by 0.01%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #621      +/-   ##
==========================================
+ Coverage   80.79%   80.81%   +0.01%     
==========================================
  Files          95       95              
  Lines        4270     4284      +14     
  Branches     1046     1052       +6     
==========================================
+ Hits         3450     3462      +12     
  Misses        779      779              
- Partials       41       43       +2
Impacted Files Coverage Δ
packages/bottender/src/bot/Bot.ts 98.47% <100%> (+0.09%) ⬆️
...ages/bottender/src/messenger/MessengerConnector.ts 90.69% <80%> (-0.65%) ⬇️
packages/bottender/src/line/LineConnector.ts 92.23% <83.33%> (-0.7%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea51286...9711370. Read the comment docs.

…events, construct session with event instead of request
@chentsulin chentsulin force-pushed the fix-multiple-event-in-a-request branch from 7204ed1 to 9711370 Compare January 8, 2020 06:53
@chentsulin chentsulin marked this pull request as ready for review January 8, 2020 06:55
@chentsulin chentsulin requested a review from tw0517tw January 8, 2020 06:56
@chentsulin chentsulin merged commit 0a2ca1c into master Jan 8, 2020
@chentsulin chentsulin deleted the fix-multiple-event-in-a-request branch January 8, 2020 07:59
chentsulin added a commit that referenced this pull request Jan 8, 2020
…events, construct session with event instead of request (#621)
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.

Implementation of getting session key from request body might be wrong
3 participants