Skip to content

: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.

chore(resource-transfer): remove inter-project-transfers flag gate (#74341)

Matt Puabb0c2a2fb785
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 1c0bcdd4e7b5..7263b47f70ff 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -336,7 +336,6 @@ export const FEATURE_FLAGS = {
INBOX_SLACK_NOTIFICATIONS: 'inbox-slack-notifications', // owner: #team-self-driving, gates the Slack notifications config card in the inbox
INSIGHT_DRAG_TO_ZOOM: 'insight-drag-to-zoom', // owner: @sampennington #team-product-analytics, gates x-axis drag-to-zoom on insight charts (trends today, SQL to follow)
INSIGHT_SUBSCRIBE_PROMINENT_BUTTON: 'insight-subscribe-prominent-button', // owner: @mattp #team-analytics-platform multivariate=control,test
- INTER_PROJECT_TRANSFERS: 'inter-project-transfers', // owner: @reecejones #team-platform-features
JS_SNIPPET_VERSIONING: 'js-snippet-versioning', // owner: #team-client-libraries
LEGACY_OAUTH_RECONNECT_WARNING: 'legacy-oauth-reconnect-warning', // owner: @jabahamondes #team-web-analytics — kill-switch for the retiring-OAuth-app reconnect banner
LINKS: 'links', // owner: @marconlp #team-link (team doesn't exist for now, maybe will come back in the future)
diff --git a/frontend/src/scenes/resource-transfer/interProjectCopyLogic.ts b/frontend/src/scenes/resource-transfer/interProjectCopyLogic.ts
index 406a5b3c574f..6c7ca28ac97d 100644
--- a/frontend/src/scenes/resource-transfer/interProjectCopyLogic.ts
+++ b/frontend/src/scenes/resource-transfer/interProjectCopyLogic.ts
@@ -1,7 +1,5 @@
import { MakeLogicType, kea, path, selectors } from 'kea'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { organizationLogic } from 'scenes/organizationLogic'
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
@@ -12,10 +10,7 @@ export interface interProjectCopyLogicValues {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface interProjectCopyLogicMeta {
__keaTypeGenInternalSelectorTypes: {
- canCopyToProject: (
- currentOrganization: null | import('../../types').OrganizationType,
- featureFlags: import('lib/logic/featureFlagLogic').FeatureFlagsSet
- ) => boolean
+ canCopyToProject: (currentOrganization: null | import('../../types').OrganizationType) => boolean
}
}
@@ -31,14 +26,9 @@ export const interProjectCopyLogic = kea<interProjectCopyLogicType>([
selectors({
canCopyToProject: [
- () => [organizationLogic.selectors.currentOrganization, featureFlagLogic.selectors.featureFlags],
- (
- currentOrganization: null | import('../../types').OrganizationType,
- featureFlags: import('lib/logic/featureFlagLogic').FeatureFlagsSet
- ): boolean => {
- const hasMultipleProjects = (currentOrganization?.teams?.length ?? 0) > 1
- const interProjectTransfersEnabled = !!featureFlags[FEATURE_FLAGS.INTER_PROJECT_TRANSFERS]
- return hasMultipleProjects && interProjectTransfersEnabled
+ () => [organizationLogic.selectors.currentOrganization],
+ (currentOrganization: null | import('../../types').OrganizationType): boolean => {
+ return (currentOrganization?.teams?.length ?? 0) > 1
},
],
}),