-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove some feature flags #7846
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
717fd04
to
dd0db1a
Compare
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.
Looks good to me!
def _is_enabled(self, project): | ||
"""Should we show traffic analytics for this project?""" | ||
return project.has_feature(Feature.STORE_PAGEVIEWS) | ||
return True |
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.
Is this method overwritten in commercial taking into account the plan?
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.
yep
In this PR, the change from calling |
@lpsinger from the build log, this looks like more a problem with your dependencies.
Or are you able to replicate this locally in a clean environment? Like changing from calling |
Yes, I can replicate this in a clean environment. Changing I narrowed it down to this by diffing the last successful build log and the first unsuccessful one. |
I think it's because it's reading You need to install your project on Read the Docs using https://docs.readthedocs.io/en/stable/config-file/v2.html#python python:
install:
- method: pip
path: . |
you can also inject the absolute path in |
Why do I need to install my project? I didn't need to install it before. I was mocking up all of the dependencies that are not actually used for generating docs and figures. |
I think this is a problem with the implicit cwd https://git.ligo.org/emfollow/gwcelery/-/blob/master/doc/conf.py#L26 you should use |
That work. Thanks! |
Wait, no, that didn't work. Same error message as before. |
I've been staring at this all day, and I can't figure out how to work around it. Is it possible to revert this please? Otherwise we will have to stop using Readthedocs for hosting our documentation. |
Readthedocs has changed how it invokes sphinx. See readthedocs/readthedocs.org#7846
Never mind! I found what was wrong: only my long term memory. I forgot that I had put in place some code to detect whether my modules were being imported under Sphinx, which I had failed to update... https://git.ligo.org/emfollow/gwcelery/-/commit/c9ab81b5d33718df7e8991752938e009e643a8f0 |
@lpsinger I'm happy that you figured it out! |
These features have been enabled on a large sample for a while now, and I also enabled them in all projects since last last week (~12 days ago).
The only problem found was with Sphinx itself #7816, but iit's all good now.
We use the subscription to decide if page views should be enabled in .com.