:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(flags): remove semver-targeting feature flag (#63357)
Phil Haacke81e790e747e
diff --git a/frontend/src/lib/components/PropertyFilters/components/OperatorValueSelect.tsx b/frontend/src/lib/components/PropertyFilters/components/OperatorValueSelect.tsxindex 6199e06a04da..82e441986fe1 100644--- a/frontend/src/lib/components/PropertyFilters/components/OperatorValueSelect.tsx+++ b/frontend/src/lib/components/PropertyFilters/components/OperatorValueSelect.tsx@@ -1,15 +1,12 @@-import { useValues } from 'kea'import { RE2JS } from 're2js'import { useEffect, useState } from 'react'import { LemonBanner, LemonDropdownProps, LemonSelect, LemonSelectProps, LemonSelectSection } from '@posthog/lemon-ui'import { allOperatorsToHumanName } from 'lib/components/DefinitionPopover/utils'-import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'import { LemonInputSelect } from 'lib/lemon-ui/LemonInputSelect/LemonInputSelect'import { Link } from 'lib/lemon-ui/Link'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import {allOperatorsMapping,chooseOperatorMap,@@ -194,8 +191,6 @@ export function OperatorValueSelect({operatorAllowlist,forceSingleSelect,}: OperatorValueSelectProps): JSX.Element {- const { featureFlags } = useValues(featureFlagLogic)- const semverTargetingEnabled = !!featureFlags[FEATURE_FLAGS.SEMVER_TARGETING]const lookupKey = type === PropertyFilterType.DataWarehousePersonProperty ? 'id' : 'name'const propertyDefinition = propertyDefinitions.find((pd) => pd[lookupKey] === propertyKey)@@ -244,13 +239,9 @@ export function OperatorValueSelect({const operatorMapping: Record<string, string> = chooseOperatorMap(propertyType)- let operators = (Object.keys(operatorMapping) as Array<PropertyOperator>).filter((op) => {- // Filter out semver operators if feature flag is not enabled- if (!semverTargetingEnabled && isOperatorSemver(op)) {- return false- }- return !operatorAllowlist || operatorAllowlist.includes(op)- })+ let operators = (Object.keys(operatorMapping) as Array<PropertyOperator>).filter(+ (op) => !operatorAllowlist || operatorAllowlist.includes(op)+ )// Restrict message log property to only allow exact, is_not, contains, not contains, regex, and not regex operatorsif (propertyKey === 'message' && type === PropertyFilterType.Log) {@@ -328,7 +319,7 @@ export function OperatorValueSelect({}setCurrentOperator(defaultProperty)}- }, [propertyDefinition, propertyKey, operator, operatorAllowlist, semverTargetingEnabled]) // oxlint-disable-line react-hooks/exhaustive-deps+ }, [propertyDefinition, propertyKey, operator, operatorAllowlist, type]) // oxlint-disable-line react-hooks/exhaustive-depsconst validationError = currentOperator && value ? getValidationError(currentOperator, value, propertyKey) : nulldiff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex f51080975170..baf75456c2e1 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -470,7 +470,6 @@ export const FEATURE_FLAGS = {SEARCH_DEBOUNCE_ALL: 'search-debounce-all', // owner: @adamleithp #team-platform-uxSEARCH_RE_RANK: 'search-re-rank', // owner: @adamleithp #team-platform-uxSEEKBAR_PREVIEW_SCRUBBING: 'seekbar-preview-scrubbing', // owner: @pauldambra #team-replay- SEMVER_TARGETING: 'semver-targeting', // owner: #team-feature-flagsSHOPIFY_DWH: 'shopify-dwh', // owner: #team-warehouse-sourcesSHOW_DATA_PIPELINES_NAV_ITEM: 'show-data-pipelines-nav-item', // owner: @raquelmsmithSHOW_REFERRER_FAVICON: 'show-referrer-favicon', // owner: @jordanm-posthog #team-web-analytics