-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Resolver: use new methods to resolve documentation pages #10875
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
Conversation
@@ -912,14 +912,15 @@ def changefreqs_generator(): | |||
|
|||
if project.translations.exists(): | |||
for translation in project.translations.all(): | |||
translation_versions = ( |
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.
We were fetching all versions from the translation, when we just need to get a version matching the same slug as the current version.
@@ -135,12 +134,10 @@ def get(self, request): | |||
def do_embed(*, project, version, doc=None, path=None, section=None, url=None): | |||
"""Get the embed response from a document section.""" | |||
if not url: | |||
external = version.type == EXTERNAL |
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.
Do we not need this anymore?
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.
We get the type of the version from the version object itself
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
This may result in one queryset less in some cases, others will remain the same.