Skip to content

Commit

Permalink
Settings: remove unused (#11116)
Browse files Browse the repository at this point in the history
Remove `INDEX_ONLY_LATEST` which has no effect.
  • Loading branch information
humitos committed Feb 14, 2024
1 parent f416445 commit e674df0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions docs/dev/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ DEFAULT_PRIVACY_LEVEL

What privacy projects default to having. Generally set to `public`. Also acts as a proxy setting for blocking certain historically insecure options, like serving generated artifacts directly from the media server.

INDEX_ONLY_LATEST
-----------------

In search, only index the `latest` version of a Project.

PUBLIC_DOMAIN
-------------

Expand Down
3 changes: 0 additions & 3 deletions readthedocs/search/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,6 @@ def test_file_search_filter_by_project(self, client):
reason="Versions are not showing correctly! Fixme while rewrite!"
)
def test_file_search_show_versions(self, client, all_projects, es_index, settings):
# override the settings to index all versions
settings.INDEX_ONLY_LATEST = False

project = all_projects[0]
# Create some versions of the project
versions = [get(Version, project=project) for _ in range(3)]
Expand Down

0 comments on commit e674df0

Please sign in to comment.