Skip to content

Commit

Permalink
More disabling of new hogql query
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Sep 1, 2023
1 parent 29d4264 commit a849e69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions frontend/src/queries/query.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import posthog from 'posthog-js'
import { DataNode, HogQLQueryResponse, PersonsNode } from './schema'
import {
isInsightQueryNode,
isDataTableNode,
isEventsQuery,
isHogQLQuery,
isInsightQueryNode,
isInsightVizNode,
isPersonsNode,
isTimeToSeeDataSessionsQuery,
isTimeToSeeDataQuery,
isDataTableNode,
isTimeToSeeDataSessionsNode,
isHogQLQuery,
isInsightVizNode,
isLifecycleQuery,
isTimeToSeeDataSessionsQuery,
} from './utils'
import api, { ApiMethodOptions } from 'lib/api'
import { getCurrentTeamId } from 'lib/utils/logics'
Expand Down Expand Up @@ -108,7 +107,7 @@ export async function query<N extends DataNode = DataNode>(
try {
if (isPersonsNode(queryNode)) {
response = await api.get(getPersonsEndpoint(queryNode), methodOptions)
} else if (isInsightQueryNode(queryNode) && !isLifecycleQuery(queryNode)) {
} else if (isInsightQueryNode(queryNode)) {
const filters = queryNodeToFilter(queryNode)
const params = {
...filters,
Expand Down
2 changes: 1 addition & 1 deletion posthog/api/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from django.http import HttpResponse, JsonResponse
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import OpenApiParameter
from posthog.nodes.events_query import run_events_query
from posthog.models.event.events_query import run_events_query
from pydantic import BaseModel
from rest_framework import viewsets
from rest_framework.decorators import action
Expand Down
File renamed without changes.

0 comments on commit a849e69

Please sign in to comment.