Skip to content

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

Merged

Conversation

saadmk11
Copy link
Member

This is a continuation from #5750

@saadmk11 saadmk11 requested review from a team and ericholscher June 14, 2019 13:11
@@ -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)
Copy link
Member

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.

Copy link
Member Author

@saadmk11 saadmk11 Jun 14, 2019

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

@saadmk11 saadmk11 changed the title Remove PR Versions from Elasticsearch Indexing Remove PR Versions from Elasticsearch Indexing and HTMLFile Manager Added Jun 14, 2019
@saadmk11 saadmk11 requested review from ericholscher and a team June 14, 2019 16:53
@saadmk11 saadmk11 changed the title Remove PR Versions from Elasticsearch Indexing and HTMLFile Manager Added Remove PR Versions from Elasticsearch Indexing and HTMLFile Queryset Added Jun 14, 2019
@saadmk11 saadmk11 force-pushed the remove-pr-from-es branch from 8d06f1f to f8e9e99 Compare June 17, 2019 10:49
@ericholscher ericholscher changed the base branch from master to gsoc-19-pr-builder June 17, 2019 17:06
@saadmk11 saadmk11 force-pushed the gsoc-19-pr-builder branch from 28a23ac to 84a6975 Compare June 17, 2019 19:39
@saadmk11 saadmk11 force-pushed the remove-pr-from-es branch from e971731 to afd5e47 Compare June 18, 2019 09:22
@saadmk11 saadmk11 force-pushed the gsoc-19-pr-builder branch from 05951cf to 5a05b6c Compare June 18, 2019 09:52
@ericholscher
Copy link
Member

This can now be updated against current gsoc-19-pr-builder branch.

Copy link
Member

@ericholscher ericholscher left a 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 👍

@ericholscher ericholscher merged commit 7bcb3e1 into readthedocs:gsoc-19-pr-builder Jun 21, 2019
@saadmk11 saadmk11 deleted the remove-pr-from-es branch June 21, 2019 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants