Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Change snowplow search schema from 1-1-4 to 1-1-3 (#73551)

Kevin Kelleher81602aed2cff
diff --git a/frontend/src/metabase/analytics/event.ts b/frontend/src/metabase/analytics/event.ts
index 110bd24393c..65da66f6915 100644
--- a/frontend/src/metabase/analytics/event.ts
+++ b/frontend/src/metabase/analytics/event.ts
@@ -24,7 +24,7 @@ const VERSIONS: Record<SchemaType, SchemaVersion> = {
invite: "1-0-1",
model: "1-0-0",
question: "1-0-6",
- search: "1-1-4",
+ search: "1-1-3",
serialization: "1-0-1",
settings: "1-0-2",
setup: "1-0-3",
diff --git a/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-3 b/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-3
index 3c2ede7ca25..98a12946ef4 100644
--- a/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-3
+++ b/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-3
@@ -93,7 +93,9 @@
"enum": [
"dashboard",
"card",
+ "dataset",
"segment",
+ "measure",
"metric",
"collection",
"database",
diff --git a/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-4 b/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-4
deleted file mode 100644
index fd9acf16657..00000000000
--- a/snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-1-4
+++ /dev/null
@@ -1,223 +0,0 @@
-{
- "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
- "description": "Search events",
- "self": {
- "vendor": "com.metabase",
- "name": "search",
- "format": "jsonschema",
- "version": "1-1-4"
- },
- "type": "object",
- "properties": {
- "event": {
- "description": "Event name",
- "type": "string",
- "enum": [
- "search_query",
- "search_click",
- "new_search_query",
- "search_results_filtered"
- ],
- "maxLength": 1024
- },
- "runtime_milliseconds": {
- "description": "Number of milliseconds it took to successfully run the search query",
- "type": [
- "integer",
- "null"
- ],
- "minimum": 0,
- "maximum": 2147483647
- },
- "context": {
- "description": "Source of the search event",
- "type": [
- "string",
- "null"
- ],
- "enum": [
- "search-app",
- "search-bar",
- "command-palette",
- "entity-picker"
- ],
- "maxLength": 1024
- },
- "total_results": {
- "description": "The total number of results that matched the query",
- "type": [
- "integer",
- "null"
- ],
- "minimum": 0,
- "maximum": 2147483647
- },
- "page_results": {
- "description": "The number of results returned per page",
- "type": [
- "integer",
- "null"
- ],
- "minimum": 0,
- "maximum": 2147483647
- },
- "position": {
- "description": "The position of the result in the list that was clicked. Zero indexed",
- "type": [
- "integer",
- "null"
- ],
- "minimum": 0,
- "maximum": 2147483647
- },
- "target_type": {
- "description": "The type of item in the search list that was clicked.",
- "type": [
- "string",
- "null"
- ],
- "enum": [
- "item",
- "view_more"
- ]
- },
- "content_type": {
- "description": "Filter for entity types (question, database, model, etc.)",
- "type": [
- "array",
- "null"
- ],
- "items": {
- "description": "An entity type (card, question, dashboard, etc.)",
- "type": "string",
- "enum": [
- "dashboard",
- "card",
- "dataset",
- "segment",
- "measure",
- "metric",
- "collection",
- "database",
- "table",
- "action",
- "indexed-entity",
- "document",
- "transform"
- ],
- "maxLength": 1024
- }
- },
- "creator": {
- "description": "Filter for created by a user",
- "type": [
- "boolean",
- "null"
- ]
- },
- "last_editor": {
- "description": "Filter for last edited by a user",
- "type": [
- "boolean",
- "null"
- ]
- },
- "creation_date": {
- "description": "Filter for a time when a user creates an entity",
- "type": [
- "boolean",
- "null"
- ]
- },
- "last_edit_date": {
- "description": "Filter for a time when a user last edited an entity",
- "type": [
- "boolean",
- "null"
- ]
- },
- "verified_items": {
- "description": "Filter for entities that have been marked as verified",
- "type": [
- "boolean",
- "null"
- ]
- },
- "search_native_queries": {
- "description": "Toggles whether search should include SQL and/or native queries",
- "type": [
- "boolean",
- "null"
- ]
- },
- "search_archived": {
- "description": "Toggles whether search should include archived items",
- "type": [
- "boolean",
- "null"
- ]
- },
- "search_engine": {
- "description": "The search engine used to perform the search",
- "type": [
- "string",
- "null"
- ],
- "maxLength": 1024
- },
- "request_id": {
- "description": "The unique request ID for the search request",
- "type": [
- "string",
- "null"
- ],
- "maxLength": 1024
- },
- "offset": {
- "description": "The offset of the search results (for pagination)",
- "type": [
- "integer",
- "null"
- ],
- "minimum": 0,
- "maximum": 2147483647
- },
- "entity_model": {
- "description": "The model type of the clicked entity",
- "type": [
- "string",
- "null"
- ],
- "maxLength": 1024
- },
- "entity_id": {
- "description": "The ID of the clicked entity",
- "type": [
- "integer",
- "null"
- ],
- "minimum": 0,
- "maximum": 2147483647
- },
- "search_term_hash": {
- "description": "A hash of the search term and instance id",
- "type": [
- "string",
- "null"
- ],
- "maxLength": 1024
- },
- "search_term": {
- "description": "The search term as a string (only reported for specific analytics UUIDs)",
- "type": [
- "string",
- "null"
- ],
- "maxLength": 1024
- }
- },
- "required": [
- "event"
- ],
- "additionalProperties": true
-}