Jump to content

This is a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Test Kitchen/Contextual attributes/Swift

From Wikitech

This page documents the contextual attributes supported by the Swift Test Kitchen SDK. For property descriptions and types, see the app base schema definition .

The Swift client supports these contextual attributes: [ 1 ]

Included automatically: [ 2 ]

  • agent_app_install_id
  • agent_client_platform
  • agent_client_platform_family

Optional:

  • page_id
  • page_title
  • page_namespace
  • page_namespace_name
  • page_revision_id
  • page_wikidata_id
  • page_content_language
  • page_is_redirect
  • page_user_groups_allowed_to_edit
  • page_user_groups_allowed_to_move
  • mediawiki_skin
  • mediawiki_version
  • mediawiki_is_production
  • mediawiki_is_debug_mode
  • mediawiki_database
  • mediawiki_site_content_language
  • mediawiki_site_content_language_variant
  • performer_is_logged_in
  • performer_id
  • performer_name
  • performer_session_id
  • performer_pageview_id
  • performer_groups
  • performer_is_bot
  • performer_language
  • performer_language_variant
  • performer_can_probably_edit_page
  • performer_edit_count
  • performer_edit_count_bucket
  • performer_registration_dt
  1. gitlab:repos/data-engineering/metrics-platform/-/blob/main/swift/Sources/WikimediaMetricsPlatform/StreamConfig/ContextAttribute.swift
  2. gitlab:repos/data-engineering/metrics-platform/-/blob/main/swift/Sources/WikimediaMetricsPlatform/Context/ContextController.swift#L16