-
Notifications
You must be signed in to change notification settings - Fork 4
Filetreediff: expose it for users that have it enabled #564
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
We don't expose it to all the users yet, but we want to expose it for those that we already enabled it on the Django Admin. Requires readthedocs/readthedocs.org#11977
|
So people will be able to turn this off, but not turn it back on? Seems a little weird, but fine for now I guess. |
|
Yeah. The other option is to expose it to everybody 🤷🏼 |
|
Could we check for it not being null, like we talked about in the call? That way if they ever changed it from the default, they would still have a toggle. |
|
Hrm, yeah, but the situation would be similar:
We would need to check if the value is not null in the backend, and in that case, render the field as a 2 value boolean. I think that could work. |
We want to expose FTD to some users that are already using it. This is, they have FTD enabled or disabled, but not `None`. Related readthedocs/ext-theme#564
|
I opened readthedocs/readthedocs.org#11988 |
|
Well, it seems we don't have # community
In [1]: Project.objects.filter(addons__filetreediff_enabled__isnull=True).count()
Out[1]: 1# commercial
In [1]: Project.objects.filter(addons__filetreediff_enabled__isnull=True).count()
Out[1]: 0 |
|
Yea.. I think the 3-selector is probably useful for these cases, but in some ways we're also just reimplementing feature flags for this use case? I think overall the main thing is knowing when a user has explicitly set it off 🤷 |
|
I think we should be able to use history models to know if they are using the default value or not. Is there anything blocking us for enabling it by default to everybody? If so, we should work on that. |
|
Yea, I'm 👍 on shipping it to everyone, once we get these polish PRs in. |
yeah, that was my question: what are the things we want to polish before shipping it? I can prioritize those tasks. |
|
I think with ignored files and the new chunking, it's working pretty well for me. I think the main UI things that @agjohnson noted are also now fixed:
If we can confirm those are all working, I think we can probably ship it. |
I merged the PR that matches the UI to the flyout: readthedocs/addons#526
I have a PR opened for this at readthedocs/addons#530 |
|
I think I'm on board with shipping this to everyone next deploy. |
|
To clarify what I noted in our meeting, I did not want to match everything to the flyout style just yet. This effectively makes everything dark mode by default. I instead would like to have some unity on the diff UI, notifications, and search UIs. These all feel independently styled and like different experiences right now. The flyout is special as it is always in a dark mode right now. I would like to explore a light mode flyout eventually, but it's fine if that is separate. |
Do we want to enable it by default? I'm 👍🏼 on that. |
We don't expose it to all the users yet, but we want to expose it for those that we already enabled it on the Django Admin.