Skip to content

Addons: get final project (e.g. subproject) #10745

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
merged 1 commit into from
Sep 19, 2023
Merged

Conversation

humitos
Copy link
Member

@humitos humitos commented Sep 18, 2023

Use unresolved_url to get the final project requested from the URL. This is needed for subproject since it's the only place where it's present.

Previously, we were getting the project from the unresolved_domain which does not give us the subproject because it's not present in the domain itself.

Tests will be added in #10685

Closes https://github.com/readthedocs/readthedocs-corporate/issues/1622

Use `unresolved_url` to get the final project requested from the URL. This is
needed for subproject since it's the only place where it's present.

Previously, we were getting the project from the `unresolved_domain` which does
not give us the `subproject` because it's not present in the domain itself.

Tests will be added in
#10685

Closes readthedocs/readthedocs-corporate#1622
@humitos humitos requested a review from a team as a code owner September 18, 2023 10:54
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.

Setting project twice is a bit confusing, but looks good.

@humitos humitos merged commit 8566a62 into main Sep 19, 2023
@humitos humitos deleted the humitos/addons-subprojects branch September 19, 2023 08:53
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