-
Notifications
You must be signed in to change notification settings - Fork 35
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(rum-explorer): conversion specs should operate on facets, not on raw properties #570
Conversation
tools/rum/test/cruncher.test.js
Outdated
@@ -768,6 +768,8 @@ describe('DataChunks.hasConversion', () => { | |||
checkpoint: ['top'], |
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.
What if we write the test something like
const spec = {
facetOne: ['top'],
facetTwo: ['hidden'],
};
d.addFacet('facetOne', (bundle) => bundle.events.map((e) => e.checkpoint));
d.addFacet('facetTwo', (bundle) => bundle.events.map((e) => e.target));
This way it would be more clear that conversions work with facets not bundle events.
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.
Good idea.
tools/rum/cruncher.js
Outdated
@@ -562,11 +562,20 @@ export class DataChunks { | |||
hasConversion(aBundle, filterSpec, combiner) { | |||
const existenceFilterFn = () => true; |
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.
If this operates with facets - no need to have a different function then filterBundles
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.
Yep.
chore(rum-explorer): test that reflects how conversion works - facets…
No description provided.