chore: rename feedback folder to surveys (#29301)

This commit is contained in:
Manoel Aranda Neto
2025-02-27 15:39:35 +01:00
committed by GitHub
parent aae4f359d8
commit a631c22840
14 changed files with 13 additions and 13 deletions

View File

@@ -8,7 +8,7 @@ ee/surveys @PostHog/team-surveys
posthog/admin/admins/survey_admin.py @PostHog/team-surveys
posthog/api/survey.py @PostHog/team-surveys
posthog/api/test/test_survey.py @PostHog/team-surveys
posthog/models/feedback/survey.py @PostHog/team-surveys
posthog/models/surveys/survey.py @PostHog/team-surveys
posthog/tasks/stop_surveys_reached_target.py @PostHog/team-surveys
posthog/tasks/update_survey_adaptive_sampling @PostHog/team-surveys
posthog/tasks/update_survey_iteration @PostHog/team-surveys

View File

@@ -58,7 +58,7 @@ from posthog.models.feature_flag import (
)
from posthog.models.feature_flag.flag_analytics import increment_request_count
from posthog.models.feature_flag.flag_matching import check_flag_evaluation_query_is_ok
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.group_type_mapping import GroupTypeMapping
from posthog.models.property import Property
from posthog.models.feature_flag.flag_status import FeatureFlagStatusChecker, FeatureFlagStatus

View File

@@ -43,7 +43,7 @@ from posthog.models.activity_logging.activity_log import (
)
from posthog.models.activity_logging.activity_page import activity_page_response
from posthog.models.feature_flag.feature_flag import FeatureFlag
from posthog.models.feedback.survey import Survey, MAX_ITERATION_COUNT
from posthog.models.surveys.survey import Survey, MAX_ITERATION_COUNT
from posthog.models.team.team import Team
from posthog.models.user import User
from posthog.utils_cors import cors_response

View File

@@ -64,7 +64,7 @@
'/home/runner/work/posthog/posthog/posthog/api/session.py: Warning [SessionViewSet]: could not derive type of path parameter "project_id" because it is untyped and obtaining queryset from the viewset failed. Consider adding a type to the path (e.g. <int:project_id>) or annotating the parameter type with @extend_schema. Defaulting to "string".',
'/home/runner/work/posthog/posthog/posthog/api/sharing.py: Warning [SharingConfigurationViewSet]: could not derive type of path parameter "project_id" because model "posthog.models.sharing_configuration.SharingConfiguration" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".',
'/home/runner/work/posthog/posthog/posthog/api/survey.py: Warning [SurveyViewSet > SurveySerializer]: unable to resolve type hint for function "get_conditions". Consider using a type hint or @extend_schema_field. Defaulting to string.',
'/home/runner/work/posthog/posthog/posthog/api/survey.py: Warning [SurveyViewSet]: could not derive type of path parameter "project_id" because model "posthog.models.feedback.survey.Survey" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".',
'/home/runner/work/posthog/posthog/posthog/api/survey.py: Warning [SurveyViewSet]: could not derive type of path parameter "project_id" because model "posthog.models.surveys.survey.Survey" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".',
'/home/runner/work/posthog/posthog/posthog/api/team.py: Warning [TeamViewSet > TeamSerializer]: unable to resolve type hint for function "get_product_intents". Consider using a type hint or @extend_schema_field. Defaulting to string.',
'/home/runner/work/posthog/posthog/posthog/api/web_experiment.py: Warning [WebExperimentViewSet]: could not derive type of path parameter "project_id" because model "posthog.models.web_experiment.WebExperiment" contained no such field. Consider annotating parameter with @extend_schema. Defaulting to "string".',
"/home/runner/work/posthog/posthog/posthog/api/web_vitals.py: Error [WebVitalsViewSet]: exception raised while getting serializer. Hint: Is get_serializer_class() returning None or is get_queryset() not working without a request? Ignoring the view for now. (Exception: 'WebVitalsViewSet' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.)",

View File

@@ -11,7 +11,7 @@ from posthog.models.cohort import Cohort
from posthog.models.cohort.util import sort_cohorts_topologically
from products.early_access_features.backend.models import EarlyAccessFeature
from posthog.models.experiment import Experiment
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.team.team import Team
from posthog.models.user import User
from posthog.test.base import APIBaseTest, QueryMatchingTest, snapshot_postgres_queries

View File

@@ -16,7 +16,7 @@ from posthog.api.test.test_personal_api_keys import PersonalAPIKeysBaseTest
from posthog.constants import AvailableFeature
from posthog.models import Action, FeatureFlag, Team
from posthog.models.cohort.cohort import Cohort
from posthog.models.feedback.survey import Survey, MAX_ITERATION_COUNT
from posthog.models.surveys.survey import Survey, MAX_ITERATION_COUNT
from posthog.test.base import (
APIBaseTest,
BaseTest,

View File

@@ -45,7 +45,7 @@ from .event_property import EventProperty
from .experiment import Experiment
from .exported_asset import ExportedAsset
from .feature_flag import FeatureFlag
from .feedback.survey import Survey
from .surveys.survey import Survey
from .file_system import FileSystem
from .filters import Filter, RetentionFilter
from .group import Group

View File

@@ -5,7 +5,7 @@ from django.db import models
from posthog.models.experiment import Experiment
from posthog.models.feature_flag.feature_flag import FeatureFlag
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.insight import Insight
from posthog.models.team.team import Team
from posthog.models.utils import UUIDModel

View File

@@ -12,7 +12,7 @@ import structlog
from posthog.database_healthcheck import DATABASE_FOR_FLAG_MATCHING
from posthog.models.feature_flag.feature_flag import FeatureFlag
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.hog_functions.hog_function import HogFunction
from posthog.models.plugin import PluginConfig
from posthog.models.team.team import Team

View File

@@ -5,7 +5,7 @@ from freezegun import freeze_time
from posthog.models.experiment import Experiment
from posthog.models.feature_flag import FeatureFlag
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.insight import Insight
from posthog.models.product_intent.product_intent import (
ProductIntent,

View File

@@ -7,7 +7,7 @@ from inline_snapshot import snapshot
import pytest
from posthog.models.action.action import Action
from posthog.models.feature_flag.feature_flag import FeatureFlag
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.hog_functions.hog_function import HogFunction, HogFunctionType
from posthog.models.plugin import Plugin, PluginConfig, PluginSourceFile
from posthog.models.project import Project

View File

@@ -303,7 +303,7 @@ SPECTACULAR_SETTINGS = {
"ENUM_NAME_OVERRIDES": {
"DashboardRestrictionLevel": "posthog.models.dashboard.Dashboard.RestrictionLevel",
"OrganizationMembershipLevel": "posthog.models.organization.OrganizationMembership.Level",
"SurveyType": "posthog.models.feedback.survey.Survey.SurveyType",
"SurveyType": "posthog.models.surveys.survey.Survey.SurveyType",
},
}

View File

@@ -15,7 +15,7 @@ from posthog.models.dashboard import Dashboard
from posthog.models.event_definition import EventDefinition
from posthog.models.experiment import Experiment
from posthog.models.feature_flag import FeatureFlag
from posthog.models.feedback.survey import Survey
from posthog.models.surveys.survey import Survey
from posthog.models.messaging import MessagingRecord
from posthog.models.organization import OrganizationMembership
from posthog.models.team.team import Team