-
Notifications
You must be signed in to change notification settings - Fork 25
fix: internal analytics #917
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
Conversation
✅ Deploy Preview for cld-video-player ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for cld-vp-esm-pages ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| } : {}), | ||
| shoppable: hasConfig(sourceOptions.shoppable), | ||
| shoppableProductsLength: sourceOptions.shoppable && sourceOptions.shoppable.products && sourceOptions.shoppable.products.length, | ||
| shoppableProductsLength: hasConfig(sourceOptions.shoppable) && sourceOptions.shoppable.products.length, |
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.
sourceOptions?.shoppable?.products?.length > 0
I'm wondering if this will work?
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.
As a condition yes, but it will return false if length is 0, and in this specific flow, we want nulls, because false might be a valid configuration that needs to be reported to analytics (i.e. allowUsageReport: false), so if it's false we'll keep and report it, but if it's null will clean it up.
Jira: https://cloudinary.atlassian.net/browse/VIDEO-20097
_s=vp-XXquery string to assets URLs (fix regression)shoppableProductsLengthwithshoppableinteractionAreasindicationFollow-up: it would be nice to append that query-string to any call coming from the player, today it will apply to the video fetching, but it would be nice to generalize it so it applies also to posters, chapters, transcript etc