-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(headless): send end of stream event even when no answer is genera…
…ted (#4801) https://coveord.atlassian.net/browse/SVCC-4482 This is a backport of #4800 for v2. When perfoming a CRGA request, an "end of stream" Usage Analytics event should be sent even when no answer is generated. However, when sending the request to the Answer API, the "end of stream" Usage Analytics event is sent only when an answer is generated. This PR fixes the issue. In addition, tests have been added to cover the handling of the various event source messages.
- Loading branch information
Showing
2 changed files
with
200 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters