Skip to content

Commit

Permalink
Remove analytics event (#116995)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz authored Nov 2, 2021
1 parent 3742d46 commit 441d778
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ describe('CurationLogic', () => {
expect(http.put).toHaveBeenCalledWith(
'/internal/app_search/engines/some-engine/curations/cur-123456789',
{
query: { skip_record_analytics: 'true' },
body: '{"queries":["a","b","c"],"query":"b","promoted":["d","e","f"],"hidden":["g"]}', // Uses state currently in CurationLogic
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export const CurationLogic = kea<MakeLogicType<CurationValues, CurationActions,
const response = await http.put<Curation>(
`/internal/app_search/engines/${engineName}/curations/${props.curationId}`,
{
query: { skip_record_analytics: 'true' },
body: JSON.stringify({
queries: values.queries,
query: values.activeQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ export function registerCurationsRoutes({
{
path: '/internal/app_search/engines/{engineName}/curations/{curationId}',
validate: {
query: schema.object({
skip_record_analytics: schema.string(),
}),
params: schema.object({
engineName: schema.string(),
curationId: schema.string(),
Expand Down

0 comments on commit 441d778

Please sign in to comment.