-
Notifications
You must be signed in to change notification settings - Fork 34
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(headless): stop sending invalid actionCause for event protocol #4698
base: master
Are you sure you want to change the base?
Conversation
@@ -23,10 +23,6 @@ export enum SearchPageEvents { | |||
* Identifies the search event that gets logged when a submit button is selected on a search box. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I just removed a bunch of actions that were not used.
export const nullActionCause = (): SearchAction => ({ | ||
actionCause: null as unknown as string, | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized that instead of sending null we can simply not send any actionCause by doing executeSearch({legacy:...})
only and not executeSearch({legacy:..., next:...})
Pull Request ReportPR Title✅ Title follows the conventional commit spec. Live demo linksBundle Size
SSR Progress
Detailed logssearch : buildInteractiveResultsearch : buildInteractiveInstantResult search : buildInteractiveRecentResult search : buildInteractiveCitation search : buildGeneratedAnswer recommendation : missing SSR support case-assist : missing SSR support insight : missing SSR support commerce : missing SSR support |
Great job! I'm bit curious, after this, how we could validate if these events are valid or invalid ? |
If they are not in that list, they will be flagged as invalid. https://github.com/coveo-platform/analytics_schema/blob/de502f0877eeaae8e523c78a08e92222f8b26eee/schemas/common/types.json#L267-L292 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job!
Asking for @erocheleau or @mmitiche review for "insight stuff" review. |
Ok kk. So I assume we are not able to know until it goes to Data-platform.
|
We need to update the test files under out of curiosity, what's the reason behind excluding these tests under |
https://coveord.atlassian.net/browse/KIT-3748
Stop sending to EP events that are not in that list as they are invalid. This ended up taking 20 minutes so I just did it now.