diff --git a/readthedocs/projects/models.py b/readthedocs/projects/models.py index f31560a75fd..07e13c97bfd 100644 --- a/readthedocs/projects/models.py +++ b/readthedocs/projects/models.py @@ -1443,7 +1443,6 @@ def add_features(sender, **kwargs): EXTERNAL_VERSION_BUILD = 'external_version_build' UPDATE_CONDA_STARTUP = 'update_conda_startup' CONDA_APPEND_CORE_REQUIREMENTS = 'conda_append_core_requirements' - SEARCH_ANALYTICS = 'search_analytics' FEATURES = ( (USE_SPHINX_LATEST, _('Use latest version of Sphinx')), @@ -1494,11 +1493,7 @@ def add_features(sender, **kwargs): ( CONDA_APPEND_CORE_REQUIREMENTS, _('Append Read the Docs core requirements to environment.yml file'), - ), - ( - SEARCH_ANALYTICS, - _('Enable search analytics'), - ) + ), ) projects = models.ManyToManyField( diff --git a/readthedocs/projects/views/private.py b/readthedocs/projects/views/private.py index b25512f4583..704c8008bc5 100644 --- a/readthedocs/projects/views/private.py +++ b/readthedocs/projects/views/private.py @@ -934,11 +934,7 @@ def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) project = self.get_project() - context['show_analytics'] = project.has_feature( - Feature.SEARCH_ANALYTICS, - ) - if not context['show_analytics']: - return context + # data for plotting the line-chart query_count_of_1_month = SearchQuery.generate_queries_count_of_one_month(