Track event for new Group runners view
What does this MR do and why?
Describe in detail what your merge request does and why.
This MR adds tracking to the /groups/{group-name}/~/runners
view with a Snowplow event.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Follow instructions to set up Snowplow Micro
- Visit http://gdk.test:3000/groups/flightjs/-/runners
- Open http://localhost:9090/micro/good
There should be an entry for each visit made to a /groups/{group-name}/~/runners
view in that page:
http://localhost:9090/micro/good response
[{"rawEvent":{"api":{"vendor":"com.snowplowanalytics.snowplow","version":"tp1"},"parameters":{"e":"se","eid":"55ca3f47-cf7a-418c-a356-e5f23171758f","cx":"eyJzY2hlbWEiOiJpZ2x1OmNvbS5zbm93cGxvd2FuYWx5dGljcy5zbm93cGxvdy9jb250ZXh0cy9qc29uc2NoZW1hLzEtMC0xIiwiZGF0YSI6W3sic2NoZW1hIjoiaWdsdTpjb20uZ2l0bGFiL2dpdGxhYl9zdGFuZGFyZC9qc29uc2NoZW1hLzEtMC04IiwiZGF0YSI6eyJlbnZpcm9ubWVudCI6ImRldmVsb3BtZW50Iiwic291cmNlIjoiZ2l0bGFiLXJhaWxzIiwicGxhbiI6ImRlZmF1bHQiLCJleHRyYSI6e30sInVzZXJfaWQiOjEsIm5hbWVzcGFjZV9pZCI6MjYsInByb2plY3RfaWQiOm51bGwsImNvbnRleHRfZ2VuZXJhdGVkX2F0IjoiMjAyMi0wMy0yMiAxNzo1MDowOSBVVEMifX1dfQ==","tna":"gl","stm":"1647971425196","tv":"rb-0.6.1","se_ac":"index","se_ca":"Groups::RunnersController","p":"srv","dtm":"1647971416554"},"contentType":null,"source":{"name":"ssc-2.3.1-stdout$","encoding":"UTF-8","hostname":"localhost"},"context":{"timestamp":"2022-03-22T17:50:23.627Z","ipAddress":"172.17.0.1","useragent":"Ruby","refererUri":null,"headers":["Timeout-Access: <function1>","Accept-Encoding: gzip, deflate;q=0.6, identity;q=0.3","Accept: */*","User-Agent: Ruby","Connection: close","Host: localhost:9090"],"userId":"db29397e-8465-4670-97b1-2a8b4931ec29"}},"eventType":"struct","schema":"iglu:com.google.analytics/event/jsonschema/1-0-0","contexts":["iglu:com.gitlab/gitlab_standard/jsonschema/1-0-8"],"event":{"app_id":null,"platform":"srv","etl_tstamp":"2022-03-22T17:50:23.632Z","collector_tstamp":"2022-03-22T17:50:23.627Z","dvce_created_tstamp":"2022-03-22T17:50:16.554Z","event":"struct","event_id":"55ca3f47-cf7a-418c-a356-e5f23171758f","txn_id":null,"name_tracker":"gl","v_tracker":"rb-0.6.1","v_collector":"ssc-2.3.1-stdout$","v_etl":"snowplow-micro-1.2.1-common-2.0.2","user_id":null,"user_ipaddress":"172.17.0.1","user_fingerprint":null,"domain_userid":null,"domain_sessionidx":null,"network_userid":"db29397e-8465-4670-97b1-2a8b4931ec29","geo_country":null,"geo_region":null,"geo_city":null,"geo_zipcode":null,"geo_latitude":null,"geo_longitude":null,"geo_region_name":null,"ip_isp":null,"ip_organization":null,"ip_domain":null,"ip_netspeed":null,"page_url":null,"page_title":null,"page_referrer":null,"page_urlscheme":null,"page_urlhost":null,"page_urlport":null,"page_urlpath":null,"page_urlquery":null,"page_urlfragment":null,"refr_urlscheme":null,"refr_urlhost":null,"refr_urlport":null,"refr_urlpath":null,"refr_urlquery":null,"refr_urlfragment":null,"refr_medium":null,"refr_source":null,"refr_term":null,"mkt_medium":null,"mkt_source":null,"mkt_term":null,"mkt_content":null,"mkt_campaign":null,"contexts":{"schema":"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0","data":[{"schema":"iglu:com.gitlab/gitlab_standard/jsonschema/1-0-8","data":{"environment":"development","source":"gitlab-rails","plan":"default","extra":{},"user_id":1,"namespace_id":26,"project_id":null,"context_generated_at":"2022-03-22 17:50:09 UTC"}}]},"se_category":"Groups::RunnersController","se_action":"index","se_label":null,"se_property":null,"se_value":null,"unstruct_event":null,"tr_orderid":null,"tr_affiliation":null,"tr_total":null,"tr_tax":null,"tr_shipping":null,"tr_city":null,"tr_state":null,"tr_country":null,"ti_orderid":null,"ti_sku":null,"ti_name":null,"ti_category":null,"ti_price":null,"ti_quantity":null,"pp_xoffset_min":null,"pp_xoffset_max":null,"pp_yoffset_min":null,"pp_yoffset_max":null,"useragent":"Ruby","br_name":null,"br_family":null,"br_version":null,"br_type":null,"br_renderengine":null,"br_lang":null,"br_features_pdf":null,"br_features_flash":null,"br_features_java":null,"br_features_director":null,"br_features_quicktime":null,"br_features_realplayer":null,"br_features_windowsmedia":null,"br_features_gears":null,"br_features_silverlight":null,"br_cookies":null,"br_colordepth":null,"br_viewwidth":null,"br_viewheight":null,"os_name":null,"os_family":null,"os_manufacturer":null,"os_timezone":null,"dvce_type":null,"dvce_ismobile":null,"dvce_screenwidth":null,"dvce_screenheight":null,"doc_charset":null,"doc_width":null,"doc_height":null,"tr_currency":null,"tr_total_base":null,"tr_tax_base":null,"tr_shipping_base":null,"ti_currency":null,"ti_price_base":null,"base_currency":null,"geo_timezone":null,"mkt_clickid":null,"mkt_network":null,"etl_tags":null,"dvce_sent_tstamp":"2022-03-22T17:50:25.196Z","refr_domain_userid":null,"refr_dvce_tstamp":null,"derived_contexts":{},"domain_sessionid":null,"derived_tstamp":"2022-03-22T17:50:14.985Z","event_vendor":"com.google.analytics","event_name":"event","event_format":"jsonschema","event_version":"1-0-0","event_fingerprint":null,"true_tstamp":null}}]
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Closes #355626 (closed)
Edited by Pedro Pombeiro