Skip to content

Update json schema version for StandardContext

What does this MR do and why?

This MR updates schema version to v 1.0.7 which includes user_id field from !71353 (merged)

Related to #338150 (closed)

How to set up and validate locally

  1. Enable user tracking
    Feature.enable(:add_actor_based_user_to_snowplow_tracking, User.first)
  2. Emit an event
    Gitlab::Tracking.event('abc', 'def', user: User.first)
  3. Visit Snowplow Micro (/all/good/)
  4. New event will be present as
"contexts": {
        "schema": "iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",
        "data": [
          {
            "schema": "iglu:com.gitlab/gitlab_standard/jsonschema/1-0-7",
            "data": {
              "environment": "development",
              "source": "gitlab-rails",
              "plan": null,
              "extra": {},
              "user_id": 1
            }
          }
        ]
      },

MR acceptance checklist

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

Edited by Niko Belokolodov

Merge request reports