-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Find out where/why rtd activates a version after building it #4793
Comments
I think I found it /cc @humitos Still not sure why we do that 🤷♂️ |
@stsewd good work! First of all, I think we don't need to send the On the other hand, I come up with some questions:
@agjohnson @ericholscher you may remember some use case for this. Otherwise, I think we can remove the Also, we should confirm that removing this we still can work around #4001. |
I'm lost on the two points above as well. I'd say we don't want to build it at all if its inactive, and we certainly shouldn't be changing active=True. Perhaps this was a case to catch the initial import of a project? When the |
I tested this locally, removing active from the patch works, and it doesn't break things like the first import, as we create the latest and stable with The only parts where we are triggering builds on inactive versions are: on webhooks (fix in #4733), and when triggering manually a build (from django shell?). If we want to move the check to trigger build, we need to refactor the other places, and we lose the ability to build inactive versions |
In my opinion, I think that removing it from the I don't think we want to move the check of the inactive version inside the |
Nope, same. Also, that is easier than touching the rest of the code p: |
I guess I still don't understand -- what is the case that's happening where we are building a set of docs that we don't want to set to active? |
@ericholscher here #4672, but we have a fix for that #4733, but the |
I guess I just don't see the bug as "building activates the version", but more that we shouldn't be triggering the build for inactive versions in that case -- I think in general if we're building docs they should be activated, but I could see the argument for that happening in the code that calls the build, not the build itself. |
Not sure how to classify this issue, but we kind of need to figure out why are we activating a version after building it, it may be a bug or it is by design.
Raised in #4733 (comment)
The text was updated successfully, but these errors were encountered: