Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Saga wrapper and webchat bump#2094

Merged
cwhitten merged 3 commits intomasterfrom
srravich/feature/bump-webchat
Mar 7, 2020
Merged

Saga wrapper and webchat bump#2094
cwhitten merged 3 commits intomasterfrom
srravich/feature/bump-webchat

Conversation

@srinaath
Copy link
Copy Markdown
Contributor

@srinaath srinaath commented Mar 7, 2020

This PR handles

  1. Webchat bumped to 4.8
  2. Error handling for all sagas and helps make them stay alive after errors until we move to 1.0+ where the onError hook will be utilized
  3. Multiple clicks on Restart Conversation was not working before. It has been fixed now

Srinaath Ravichandran added 2 commits March 6, 2020 16:55
Signed-off-by: Srinaath Ravichandran <[email protected]>

Handling saga errors

Signed-off-by: Srinaath Ravichandran <[email protected]>

Revert res.ok

Signed-off-by: Srinaath Ravichandran <[email protected]>

Track saga error

Signed-off-by: Srinaath Ravichandran <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
Signed-off-by: Srinaath Ravichandran <[email protected]>
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 7, 2020

Coverage Status

Coverage decreased (-0.008%) to 67.749% when pulling fe55270 on srravich/feature/bump-webchat into b844f3d on master.

Copy link
Copy Markdown
Contributor

@tonyanziano tonyanziano left a comment

Choose a reason for hiding this comment

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

Looks good!

Comment on lines +145 to +161
function* rootSaga() {
yield all(
applicationSagas.map(saga =>
spawn(function*() {
while (true) {
try {
yield call(saga);
break;
} catch (error) {
console.error('Saga error: ', error); // eslint-disable-line
}
}
})
)
);
}
sagaMiddleware.run(rootSaga);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

@cwhitten cwhitten merged commit 155eaac into master Mar 7, 2020
@cwhitten cwhitten deleted the srravich/feature/bump-webchat branch March 7, 2020 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants