Update search-telemetry-v2 schema to expand top down search options and loosen component type registration
Categories
(Firefox :: Search, task, P2)
Tracking
()
People
(Reporter: jteow, Assigned: jteow)
References
Details
(Whiteboard: [sng])
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
diannaS
:
approval-mozilla-esr115+
|
Details | Review |
To give us more flexibility for future requests, I'd like to:
- Allow top down searches the ability to add any event listener using the
eventListenersarray. The array contains an object with three properties:eventType: a string that indicates which event to listen to: This will forward the string to theaddEventListenermethod, but in special cases, where we do special logic like detecting keydown enter events, a specialeventTypecan be used provided we've added the code to Desktop.action- the engagementactionto report.clickedwill be the default value ifeventTypeisclicksince it is a very common usecase, otherwise it is unknown and must be provided.target- the component type to report in the target field of theengagementevent. By default, it'll use the type ofcomponentthe entry belongs to, but there may be cases in the future where we bind sub-component types to engagement elements (e.g.foois the component,foo_buttonis the target)
- Allow top down searches which use the
childrenarray to report the number of child elements found instead of counting the existence of children as one element. - Allow top down searches to be able to
skipCount, which would skip reporting the number of elements found to thead_impressionevent. This would allow us to add separate listeners forengagementevents separate from another query which might be specific toad_impressionevents. - Remove the
enumthat lists the components, as every time we have to add a component, we have to uplift the changes to beta and ESR, which can be more annoying than helpful. The code review process of telemetry changes should be sufficient.
My goal is to progressively give us an opportunity to potentially move away from bottom up searches as the logic can be unnecessarily complex than creating multiple queries for certain complex components (e.g. one specific to the engagement and another to the ad_impression reporting).
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 4•1 year ago
•
|
||
Comment on attachment 9379353 [details]
Bug 1879714 - Update search-telemetry-v2 schema with more functionality and loosen restrictions on component types - r?standard8!
Beta/Release Uplift Approval Request
- User impact if declined: We regularly update
search-telemetry-v2.jsonvia Remote Settings. If we update entries in that file with componenttype's not present in the schema,browser/components/search/test/unit/test_search_telemetry_config_validation.jswill fail.
Part of this change will loosen the restriction from a list of allowable strings to a general regular expression to avoid having to do these future uplifts.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: bug 1878818
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Changing the schema should only affect
browser/components/search/test/unit/test_search_telemetry_config_validation.js. - String changes made/needed:
- Is Android affected?: Yes
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: We regularly update
search-telemetry-v2.jsonvia Remote Settings. If we update entries in that file with componenttype's not present in the schema,browser/components/search/test/unit/test_search_telemetry_config_validation.jswill fail.
Part of this change will loosen the restriction from a list of allowable strings to a general regular expression to avoid having to do these future uplifts.
- User impact if declined:
- Fix Landed on Version: 125
- List of other uplifts needed: bug 1878818
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Changing the schema should only affect
browser/components/search/test/unit/test_search_telemetry_config_validation.js.
Comment 5•1 year ago
|
||
| bugherder | ||
Comment 6•1 year ago
|
||
Comment on attachment 9379353 [details]
Bug 1879714 - Update search-telemetry-v2 schema with more functionality and loosen restrictions on component types - r?standard8!
Approved for 124.0b9
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Comment on attachment 9379353 [details]
Bug 1879714 - Update search-telemetry-v2 schema with more functionality and loosen restrictions on component types - r?standard8!
Approved for 115.9esr
Updated•1 year ago
|
Description
•