-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove PR Versions from Elasticsearch Indexing and HTMLFile Queryset Added #5805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove PR Versions from Elasticsearch Indexing and HTMLFile Queryset Added #5805
Conversation
readthedocs/search/documents.py
Outdated
@@ -159,7 +160,7 @@ def get_queryset(self): | |||
# Also do not index certain files | |||
queryset = queryset.filter( | |||
project__documentation_type__contains='sphinx' | |||
) | |||
).exclude(version__type=PULL_REQUEST) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this not use the manager? If not, we should probably add a queryset method that does the same thing, so we can use it in cases like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericholscher Added Queryset for this. Please have a look
8d06f1f
to
f8e9e99
Compare
28a23ac
to
84a6975
Compare
e971731
to
afd5e47
Compare
05951cf
to
5a05b6c
Compare
This can now be updated against current |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good as well 👍
This is a continuation from #5750