Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add all deprecated transformations #28097

Merged
merged 189 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from 187 commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
7e02fc8
added initial work
benjackwhite Jan 23, 2025
99e5b72
Fix up new plugins
benjackwhite Jan 23, 2025
52792bf
Fixes
benjackwhite Jan 23, 2025
dfb9e0d
Fixes
benjackwhite Jan 23, 2025
6c2575a
Fixes
benjackwhite Jan 23, 2025
f7db6e5
Fix
benjackwhite Jan 23, 2025
835d8fb
Fixes
benjackwhite Jan 23, 2025
dcc8b2f
Fixes
benjackwhite Jan 23, 2025
18ef79b
Fix
benjackwhite Jan 23, 2025
9317b33
Fixes
benjackwhite Jan 27, 2025
e47eb3c
Fix
benjackwhite Jan 27, 2025
365c1b8
Added check for metrics production
benjackwhite Jan 27, 2025
20a304c
fixed frontend
benjackwhite Jan 27, 2025
693bf59
Fixes
benjackwhite Jan 27, 2025
4e8267d
Fix up
benjackwhite Jan 27, 2025
8d2f00b
Fix
benjackwhite Jan 27, 2025
e3a1ca9
Update query snapshots
github-actions[bot] Jan 27, 2025
9694f07
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 27, 2025
e33dd64
Fix storage
benjackwhite Jan 27, 2025
b7781cf
Update query snapshots
github-actions[bot] Jan 27, 2025
9895d15
Merge branch 'feat/cyclotron-plugins' of github.com:PostHog/posthog i…
benjackwhite Jan 27, 2025
9001d92
Fixes
benjackwhite Jan 27, 2025
1bbda52
Fixes
benjackwhite Jan 27, 2025
d573b20
Fixes
benjackwhite Jan 27, 2025
d054739
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 27, 2025
2ab4312
USe own types
benjackwhite Jan 27, 2025
3231131
Fixes
benjackwhite Jan 27, 2025
343551c
fix
benjackwhite Jan 27, 2025
c574e35
Fixes
benjackwhite Jan 27, 2025
e8665e5
Added migration commands
benjackwhite Jan 27, 2025
04ba772
Fixes
benjackwhite Jan 27, 2025
99987b2
Fix
benjackwhite Jan 27, 2025
2ffb989
Fix
benjackwhite Jan 27, 2025
406d7de
Fix migration
benjackwhite Jan 28, 2025
0460d3a
Fixes
benjackwhite Jan 28, 2025
e245047
Fixes
benjackwhite Jan 28, 2025
4e7ffe0
Fix
benjackwhite Jan 28, 2025
3af5796
Fixes
benjackwhite Jan 28, 2025
91b8ea5
Fixes
benjackwhite Jan 28, 2025
be04729
fix
benjackwhite Jan 28, 2025
a2d4450
Fixes
benjackwhite Jan 28, 2025
b0ba188
Fixes
benjackwhite Jan 28, 2025
2de9d40
Fixes
benjackwhite Jan 28, 2025
cde1d59
Fixes
benjackwhite Jan 28, 2025
1e954b2
Fixes
benjackwhite Jan 28, 2025
da407fd
Revert
benjackwhite Jan 28, 2025
ab8757b
Fixes
benjackwhite Jan 28, 2025
8ebb8a9
Remove old secrets
benjackwhite Jan 28, 2025
c7d3424
Fixes
benjackwhite Jan 28, 2025
e229857
Added a transformation
benjackwhite Jan 28, 2025
725c139
Merge branch 'master' into feat/cyclotron-plugins-refactor
benjackwhite Jan 28, 2025
d2514c2
Fixes
benjackwhite Jan 28, 2025
c9f3e2a
Fixes
benjackwhite Jan 28, 2025
00b32bc
Added a range of transformations
benjackwhite Jan 28, 2025
0b38dbf
Fixes
benjackwhite Jan 28, 2025
c4510be
Fixed semver flattener
benjackwhite Jan 28, 2025
123af18
Add remaining transforms
benjackwhite Jan 28, 2025
1eddd02
Fix plugins
benjackwhite Jan 28, 2025
ebe96c0
Fix snapshots
benjackwhite Jan 28, 2025
d9e1a65
Fixes
benjackwhite Jan 28, 2025
8888e8f
Fixes
benjackwhite Jan 28, 2025
4b6d7be
Fixes all round
benjackwhite Jan 28, 2025
b316fd0
fix
benjackwhite Jan 28, 2025
e37a63d
Fixes
benjackwhite Jan 28, 2025
f9edbca
Added input generation
benjackwhite Jan 28, 2025
db08999
Fixes
benjackwhite Jan 28, 2025
6524399
Fix
benjackwhite Jan 28, 2025
979778c
Fix
benjackwhite Jan 28, 2025
d44373c
Added loader to the hog executor
benjackwhite Jan 28, 2025
40ac5cc
Fixes
benjackwhite Jan 28, 2025
5887936
Fix - added test as starting point
benjackwhite Jan 28, 2025
57f4428
Merge branch 'feat/hog-transform-inputs' into feat/cyclotron-plugins-…
benjackwhite Jan 28, 2025
7055581
added counter
benjackwhite Jan 28, 2025
680c046
Fixes
benjackwhite Jan 28, 2025
5a13eea
Fixes
benjackwhite Jan 28, 2025
90cb4d7
Merge branch 'master' into feat/cyclotron-plugins-refactor
benjackwhite Jan 29, 2025
dbea6e3
Added all templates
benjackwhite Jan 29, 2025
01a5ff5
Merge branch 'master' into feat/cyclotron-plugins-refactor
benjackwhite Jan 29, 2025
f58fa85
Fixes
benjackwhite Jan 29, 2025
3e1ece0
Fixes
benjackwhite Jan 29, 2025
87228f8
Fixes
benjackwhite Jan 29, 2025
52485d8
Fixes
benjackwhite Jan 29, 2025
46ad019
Fixes
benjackwhite Jan 29, 2025
1df1231
Fix
benjackwhite Jan 29, 2025
5713745
wip
benjackwhite Jan 29, 2025
64874b0
Fixes
benjackwhite Jan 29, 2025
06875c3
Merge branch 'feat/cyclotron-plugins-refactor' into feat/cdp-api-temp…
benjackwhite Jan 29, 2025
a2d2f2f
Fixes
benjackwhite Jan 29, 2025
36210ad
Fixes
benjackwhite Jan 29, 2025
b201718
fix
benjackwhite Jan 29, 2025
227da4e
Fix templates
benjackwhite Jan 29, 2025
52d9fcb
Fixes
benjackwhite Jan 29, 2025
f2c1fb4
Fixes
benjackwhite Jan 29, 2025
949486f
Fix
benjackwhite Jan 29, 2025
10eec53
Fixes
benjackwhite Jan 29, 2025
13f2a2b
Fix
benjackwhite Jan 29, 2025
309ced4
Merge branch 'feat/cyclotron-plugins-refactor' into feat/cdp-api-temp…
benjackwhite Jan 29, 2025
4814722
fix
benjackwhite Jan 29, 2025
cab7652
Fix
benjackwhite Jan 29, 2025
3a92713
Update posthog/api/test/__data__/hog_function_templates.json
benjackwhite Jan 29, 2025
467789b
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 29, 2025
9bcc8aa
Merge branch 'master' into feat/cdp-api-templates
benjackwhite Jan 29, 2025
80fb314
Fix up
benjackwhite Jan 29, 2025
d1f7e99
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 29, 2025
1884eb0
Merge branch 'master' into feat/cdp-api-templates
benjackwhite Jan 29, 2025
047a2b5
Fix
benjackwhite Jan 29, 2025
59bd4fc
Merge branch 'feat/cdp-api-templates' of github.com:PostHog/posthog i…
benjackwhite Jan 29, 2025
aa2bbca
Fix
benjackwhite Jan 29, 2025
8f5b998
Set the cdp api up as its own service
benjackwhite Jan 29, 2025
afb36bb
tests
benjackwhite Jan 29, 2025
f4ca3c7
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 29, 2025
816a996
Added diff editor
benjackwhite Jan 29, 2025
dffb19a
Fixes
benjackwhite Jan 29, 2025
7af78e5
Fixes
benjackwhite Jan 29, 2025
2d8d638
Fixes
benjackwhite Jan 29, 2025
2dac3e8
Fix
benjackwhite Jan 29, 2025
b1d2014
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 29, 2025
1a29f97
Fixed up caching
benjackwhite Jan 30, 2025
595a619
fixes
benjackwhite Jan 30, 2025
53e5f68
Merge branch 'feat/cdp-api-templates' into feat/cdp-api-transformations
benjackwhite Jan 30, 2025
166efe6
Update query snapshots
github-actions[bot] Jan 30, 2025
5f90830
Fix
benjackwhite Jan 30, 2025
965d632
Fix
benjackwhite Jan 30, 2025
34679cc
Update query snapshots
github-actions[bot] Jan 30, 2025
25a6a10
Fix
benjackwhite Jan 30, 2025
e81fc93
Fixe
benjackwhite Jan 30, 2025
bc2cb1a
Merge branch 'feat/cdp-api-templates' of github.com:PostHog/posthog i…
benjackwhite Jan 30, 2025
563e6a4
Merge branch 'feat/cdp-api-templates' into feat/cdp-api-transformations
benjackwhite Jan 30, 2025
fa0ca1c
Merge branch 'master' into feat/cdp-api-templates
benjackwhite Jan 30, 2025
b4c0272
Merge branch 'feat/cdp-api-templates' into feat/cdp-api-transformations
benjackwhite Jan 30, 2025
7fdc6f0
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 30, 2025
58f8932
Fixes
benjackwhite Jan 30, 2025
808edb8
Fixes
benjackwhite Jan 30, 2025
a09a9de
Fixes
benjackwhite Jan 30, 2025
9c1c1af
Merge branch 'fix/hog-transform-stop' into feat/cdp-api-templates
benjackwhite Jan 30, 2025
51b2eb1
Merge branch 'feat/cdp-api-templates' into feat/cdp-api-transformations
benjackwhite Jan 30, 2025
0ba81fd
Fixes
benjackwhite Jan 30, 2025
d820d00
Fixes
benjackwhite Jan 30, 2025
e824c70
feat: Expose CDP templates via nodejs (#28033)
benjackwhite Jan 30, 2025
6792d0a
Merge branch 'fix/hog-transform-stop' into feat/cdp-api-transformations
benjackwhite Jan 30, 2025
fb45a64
Fix comments
benjackwhite Jan 30, 2025
ba7ae37
Fixes
benjackwhite Jan 30, 2025
a437013
Update UI snapshots for `chromium` (1)
github-actions[bot] Jan 30, 2025
d1a30f0
Fixes
benjackwhite Jan 30, 2025
79883be
Merge branch 'feat/cdp-api-transformations' of github.com:PostHog/pos…
benjackwhite Jan 30, 2025
61d7118
Merge branch 'master' into feat/cdp-api-transformations
benjackwhite Jan 30, 2025
5ecfec9
Fix
benjackwhite Jan 30, 2025
0d08ffe
Fixes
benjackwhite Jan 30, 2025
b21018c
Fixees
benjackwhite Jan 30, 2025
ed541dd
Fixes
benjackwhite Jan 30, 2025
2d9f835
Remove the stonly thing
benjackwhite Jan 30, 2025
1baa053
Fix up logic
benjackwhite Jan 30, 2025
a1a5856
Inlined al old plugins
benjackwhite Jan 30, 2025
384c70c
Merge branch 'master' into feat/all-the-transformations
benjackwhite Jan 30, 2025
9a16d05
Fixes
benjackwhite Jan 30, 2025
22d475f
Fixes
benjackwhite Jan 30, 2025
d1261cb
Fixes
benjackwhite Jan 30, 2025
535f7cb
Fixes
benjackwhite Jan 30, 2025
c42c997
Adds a new step for comparing
benjackwhite Jan 30, 2025
362b83a
Added sampling
benjackwhite Jan 30, 2025
5057a9b
Fix
benjackwhite Jan 30, 2025
902c21e
Fixes
benjackwhite Jan 30, 2025
045717a
Fixes
benjackwhite Jan 30, 2025
d050bb9
Fixes
benjackwhite Jan 30, 2025
da10802
Fixes
benjackwhite Jan 30, 2025
bbb35d3
Fixes
benjackwhite Jan 31, 2025
2616b85
Fix
benjackwhite Jan 31, 2025
d6fed32
Fixes
benjackwhite Jan 31, 2025
b15e247
Support turning hog off
benjackwhite Jan 31, 2025
2de40c4
Added templating var
benjackwhite Jan 31, 2025
20e8769
Fixes
benjackwhite Jan 31, 2025
da3c650
Fixes
benjackwhite Jan 31, 2025
8ff29ba
Merge branch 'feat/hog-transformation-comparer' into feat/all-the-tra…
benjackwhite Jan 31, 2025
372646b
Fixes
benjackwhite Jan 31, 2025
af0875f
Fixes
benjackwhite Jan 31, 2025
572a2bc
Fix
benjackwhite Jan 31, 2025
961f2ea
Fixes
benjackwhite Jan 31, 2025
9fbd62a
Fixes
benjackwhite Jan 31, 2025
1047e5e
Fixes
benjackwhite Jan 31, 2025
ffe5e2c
Merge branch 'feat/hog-transformation-comparer' into feat/all-the-tra…
benjackwhite Jan 31, 2025
0495a60
Fix
benjackwhite Jan 31, 2025
698c5e4
Merge branch 'feat/hog-transformation-comparer' into feat/all-the-tra…
benjackwhite Jan 31, 2025
9c211f0
Fixes
benjackwhite Jan 31, 2025
c62c848
Fixes
benjackwhite Jan 31, 2025
64bf5de
Fixes
benjackwhite Jan 31, 2025
94af30c
Merge branch 'master' into feat/all-the-transformations
benjackwhite Jan 31, 2025
525458d
Fixes
benjackwhite Jan 31, 2025
bfaa806
Fix
benjackwhite Jan 31, 2025
342c543
Fix
benjackwhite Jan 31, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class CdpCyclotronWorkerPlugins extends CdpCyclotronWorker {

constructor(hub: Hub) {
super(hub)
this.pluginExecutor = new LegacyPluginExecutorService()
this.pluginExecutor = new LegacyPluginExecutorService(hub)
}

public async processInvocations(invocations: HogFunctionInvocation[]): Promise<HogFunctionInvocationResult[]> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ describe('CdpCyclotronWorkerPlugins', () => {
"useEuropeanDataStorage": "No",
},
"fetch": [Function],
"geoip": {
"locate": [Function],
},
"global": {},
"logger": {
"debug": [Function],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class HogTransformerService {
this.hub = hub
this.hogFunctionManager = new HogFunctionManagerService(hub)
this.hogExecutor = new HogExecutorService(hub, this.hogFunctionManager)
this.pluginExecutor = new LegacyPluginExecutorService()
this.pluginExecutor = new LegacyPluginExecutorService(hub)
}

private getTransformationFunctions() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Response } from '~/src/utils/fetch'

import { LegacyDestinationPlugin, LegacyDestinationPluginMeta } from '../../types'
import metadata from './plugin.json'

const DEFAULT_HOST = 'track.customer.io'
const DEFAULT_SEND_EVENTS_FROM_ANONYMOUS_USERS = 'Send all events'

Expand Down Expand Up @@ -257,7 +256,7 @@ function getEmailFromEvent(event: ProcessedPluginEvent): string | null {

export const customerioPlugin: LegacyDestinationPlugin = {
id: 'customerio-plugin',
metadata: metadata as any,
metadata,
setupPlugin: setupPlugin as any,
benjackwhite marked this conversation as resolved.
Show resolved Hide resolved
onEvent,
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Response } from '~/src/utils/fetch'

import { LegacyDestinationPlugin, LegacyDestinationPluginMeta } from '../../types'
import metadata from './plugin.json'

type IntercomMeta = LegacyDestinationPluginMeta & {
global: {
intercomUrl: string
Expand Down Expand Up @@ -191,7 +190,7 @@ function getTimestamp(meta: IntercomMeta, event: ProcessedPluginEvent): number {

export const intercomPlugin: LegacyDestinationPlugin = {
id: 'posthog-intercom-plugin',
metadata: metadata as any,
metadata,
onEvent,
setupPlugin: () => Promise.resolve(),
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { PluginEvent } from '@posthog/plugin-scaffold'

import { LegacyTransformationPlugin, LegacyTransformationPluginMeta } from '../../types'
import metadata from './plugin.json'

const cleanUtmCampain = (utmCampaign: string) => {
benjackwhite marked this conversation as resolved.
Show resolved Hide resolved
return utmCampaign
.replace('com-', 'comp-')
.replace('compp-', 'comp-')
.split('_')[0]
.split('-')
.slice(0, 2)
.join(' ')
}
benjackwhite marked this conversation as resolved.
Show resolved Hide resolved

export function processEvent(event: PluginEvent, _: LegacyTransformationPluginMeta) {
// Some events (such as $identify) don't have properties
if (event.properties && event.properties['utm_campaign']) {
const cleanCampaign = cleanUtmCampain(event.properties['utm_campaign'])
if (event.properties['$set']) {
event.properties['$set']['campaign'] = cleanCampaign
} else {
event.properties['$set'] = { campaign: cleanCampaign }
}
if (event.properties['$set_once']) {
event.properties['$set_once']['initial_campaign'] = cleanCampaign
} else {
event.properties['$set_once'] = { initial_campaign: cleanCampaign }
}
}
// Return the event to be ingested, or return null to discard
return event
}

export const pluginStonlyCleanCampaignName: LegacyTransformationPlugin = {
id: 'plugin-stonly-clean-campaign-name',
metadata,
processEvent,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Clean Campaign Name",
"url": "https://github.com/posthog/Plugin-Stonly-Clean-Campaign-Name",
"description": "",
"config": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { HogFunctionTemplate } from '../../../templates/types'

// NOTE: This is a deprecated plugin and should never be shown to new users
export const template: HogFunctionTemplate = {
status: 'alpha',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using 'deprecated' instead of 'alpha' status to properly indicate plugin state to systems that may process this configuration

Suggested change
status: 'alpha',
status: 'deprecated',

type: 'transformation',
id: 'plugin-stonly-clean-campaign-name',
name: 'Clean Campaign Name',
description: '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Empty description field may cause issues with UI display and documentation. Add a brief description of what the plugin does.

icon_url: '/static/hedgehog/builder-hog-01.png',
category: ['Custom'],
hog: `return event`,
inputs_schema: [],
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function processEvent(event: PluginEvent, { global }: LegacyTransformatio

export const downsamplingPlugin: LegacyTransformationPlugin = {
id: 'downsampling-plugin',
metadata: metadata as any,
metadata,
processEvent,
setupPlugin,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Learn more about plugins at: https://posthog.com/docs/plugins/build/overview

import { PluginEvent } from '@posthog/plugin-scaffold'

import { LegacyTransformationPlugin, LegacyTransformationPluginMeta } from '../../types'
import metadata from './plugin.json'

// Processes each event, optionally transforming it
export function processEvent(event: PluginEvent, { config }: LegacyTransformationPluginMeta) {
// Some events (such as $identify) don't have properties
if (event.properties && event.properties[config.property_key]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Missing validation for config.property_key existence. Could throw error if config is malformed

if (!config.property_values || config.property_values == '') {
benjackwhite marked this conversation as resolved.
Show resolved Hide resolved
return null
}
const values = config.property_values.split(',')
if (values.indexOf(event.properties[config.property_key]) > -1) {
benjackwhite marked this conversation as resolved.
Show resolved Hide resolved
return null
}
}
// Return the event to be ingested, or return null to discard
return event
}

export const dropEventsOnPropertyPlugin: LegacyTransformationPlugin = {
id: 'drop-events-on-property-plugin',
metadata,
processEvent,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "Drop Events Based On Property",
"url": "https://github.com/posthog/drop-events-on-property-plugin",
"description": "This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of they key and the value. You will not be billed for any events that this plugin drops.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: typo: 'they key' should be 'the key'

Suggested change
"description": "This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of they key and the value. You will not be billed for any events that this plugin drops.",
"description": "This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of the key and the value. You will not be billed for any events that this plugin drops.",

"main": "index.js",
"posthogVersion": ">= 1.25.0",
"config": [
{
"markdown": "Configure the key and optional value to filter events on"
},
{
"key": "property_key",
"hint": "Which property key to filter on. If you do not specify a value, all events with this key will be dropped.",
"name": "Property key to filter on",
"type": "string",
"required": true
},
{
"key": "property_values",
"hint": "Which value to match to drop events. Split multiple values by comma to filter.",
"name": "Property value to filter on",
"type": "string",
"required": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { HogFunctionTemplate } from '../../../templates/types'

// NOTE: This is a deprecated plugin and should never be shown to new users
export const template: HogFunctionTemplate = {
status: 'alpha',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: status should be 'deprecated' instead of 'alpha' since this is a deprecated plugin

Suggested change
status: 'alpha',
status: 'deprecated',

type: 'transformation',
id: 'plugin-drop-events-on-property-plugin',
name: 'Drop Events Based On Property',
description:
'This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of they key and the value. You will not be billed for any events that this plugin drops.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syntax: 'they key' should be 'the key'

Suggested change
'This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of they key and the value. You will not be billed for any events that this plugin drops.',
'This plugin will drop any events that have a specific key. If you supply a value, it will drop any event with the combination of the key and the value. You will not be billed for any events that this plugin drops.',

icon_url: 'https://raw.githubusercontent.com/posthog/drop-events-on-property-plugin/main/logo.png',
category: ['Custom'],
hog: `return event`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: hog function just returns event without implementing any filtering logic - this won't actually drop any events

inputs_schema: [
{
key: 'property_key',
templating: false,
description:
'Which property key to filter on. If you do not specify a value, all events with this key will be dropped.',
label: 'Property key to filter on',
type: 'string',
required: true,
},
{
key: 'property_values',
templating: false,
description: 'Which value to match to drop events. Split multiple values by comma to filter.',
label: 'Property value to filter on',
type: 'string',
required: false,
},
],
}
Loading
Loading