Skip to content

Set values for StandardContext in Frontend

What does this MR do and why?

Everything is set up to hash user_id, so we need to provide the values as well to the events. For BE we're mostly covered, but we have not set namespace/project and user for the StandardContext that is provided to the Frontend.

How to set up and validate locally

  1. Enable related features:
  • ::Feature.enable(:add_namespace_and_project_to_snowplow_tracking)
  • ::Feature.enable(:add_actor_based_user_to_snowplow_tracking, User.first)
  1. Visit a page (to see project of group, visit a related entity page)

Screen_Shot_2021-10-20_at_4.50.08_PM

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #342993 (closed)

Edited by Niko Belokolodov

Merge request reports