Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
0eed1f2d
Unverified
Commit
0eed1f2d
authored
1 year ago
by
Alexander Polyankin
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix sending search snowplow events (#31762)
parent
68ba6788
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/test/scenarios/onboarding/search/search.cy.spec.js
+31
-2
31 additions, 2 deletions
e2e/test/scenarios/onboarding/search/search.cy.spec.js
snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-0-0
+5
-2
5 additions, 2 deletions
...ent-embedded/schemas/com.metabase/search/jsonschema/1-0-0
with
36 additions
and
4 deletions
e2e/test/scenarios/onboarding/search/search.cy.spec.js
+
31
−
2
View file @
0eed1f2d
import
{
restore
}
from
"
e2e/support/helpers
"
;
import
{
describeWithSnowplow
,
enableTracking
,
expectGoodSnowplowEvents
,
expectNoBadSnowplowEvents
,
resetSnowplow
,
restore
,
}
from
"
e2e/support/helpers
"
;
import
{
ORDERS_QUESTION_ID
}
from
"
e2e/support/cypress_sample_instance_data
"
;
import
{
ORDERS_QUESTION_ID
}
from
"
e2e/support/cypress_sample_instance_data
"
;
describe
(
"
scenarios >
auth >
search
"
,
()
=>
{
describe
(
"
scenarios > search
"
,
()
=>
{
beforeEach
(
restore
);
beforeEach
(
restore
);
describe
(
"
universal search
"
,
()
=>
{
describe
(
"
universal search
"
,
()
=>
{
...
@@ -63,6 +70,28 @@ describe("scenarios > auth > search", () => {
...
@@ -63,6 +70,28 @@ describe("scenarios > auth > search", () => {
});
});
});
});
describeWithSnowplow
(
"
scenarios > search
"
,
()
=>
{
const
PAGE_VIEW_EVENT
=
1
;
beforeEach
(()
=>
{
restore
();
resetSnowplow
();
cy
.
signInAsAdmin
();
enableTracking
();
});
afterEach
(()
=>
{
expectNoBadSnowplowEvents
();
});
it
(
"
should send snowplow events for global search queries
"
,
()
=>
{
cy
.
visit
(
"
/
"
);
expectGoodSnowplowEvents
(
PAGE_VIEW_EVENT
);
cy
.
findByPlaceholderText
(
"
Search…
"
).
type
(
"
Orders
"
).
blur
();
expectGoodSnowplowEvents
(
PAGE_VIEW_EVENT
+
1
);
// new_search_query
});
});
function
getProductsSearchResults
()
{
function
getProductsSearchResults
()
{
cy
.
findByText
(
"
Products
"
);
cy
.
findByText
(
"
Products
"
);
// This part about the description reproduces metabase#20018
// This part about the description reproduces metabase#20018
...
...
This diff is collapsed.
Click to expand it.
snowplow/iglu-client-embedded/schemas/com.metabase/search/jsonschema/1-0-0
+
5
−
2
View file @
0eed1f2d
...
@@ -17,11 +17,14 @@
...
@@ -17,11 +17,14 @@
},
},
"runtime_milliseconds": {
"runtime_milliseconds": {
"description": "Number of milliseconds it took to successfully run the search query",
"description": "Number of milliseconds it took to successfully run the search query",
"type": "integer",
"type": [
"integer",
"null"
],
"minimum": 0,
"minimum": 0,
"maximum": 2147483647
"maximum": 2147483647
}
}
},
},
"required": ["
runtime
"],
"required": ["
event
"],
"additionalProperties": true
"additionalProperties": true
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment