-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add query for fetching RUM engagement metrics #985
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
|
This PR will trigger a patch release when merged. |
packages/spacecat-shared-rum-api-client/src/functions/user-engagement.js
Show resolved
Hide resolved
| function handler(bundles) { | ||
| const urlsData = {}; | ||
| bundles.forEach((bundle) => { | ||
| const engagementTraffic = hasEngagement(bundle) ? bundle.weight : 0; |
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.
The ternary operator isn’t needed here, as hasEngagement() already returns either bundle.weight or 0.
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.
Sure, updated.
packages/spacecat-shared-rum-api-client/src/functions/user-engagement.js
Show resolved
Hide resolved
# [@adobe/spacecat-shared-data-access-v2.68.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v2.67.0...@adobe/spacecat-shared-data-access-v2.68.0) (2025-10-07) ### Features * add query for fetching RUM engagement metrics ([#985](#985)) ([0eb8881](0eb8881))
|
🎉 This PR is included in version @adobe/spacecat-shared-data-access-v2.68.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [@adobe/spacecat-shared-rum-api-client-v2.38.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-rum-api-client-v2.37.8...@adobe/spacecat-shared-rum-api-client-v2.38.0) (2025-10-07) ### Features * add query for fetching RUM engagement metrics ([#985](#985)) ([0eb8881](0eb8881))
|
🎉 This PR is included in version @adobe/spacecat-shared-rum-api-client-v2.38.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Adds a new query in rum api client for fetching user-engagement metrics from RUM.