Skip to content

New dashboard: remove legacy dashboard #12091

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

@humitos humitos requested a review from a team as a code owner April 8, 2025 10:06
@humitos humitos requested a review from stsewd April 8, 2025 10:06
humitos added 2 commits April 8, 2025 12:28
It was deleted with `BuildTriggerMixin`, so this commit recovers it.
@humitos humitos requested a review from a team as a code owner April 8, 2025 10:29
@humitos humitos requested a review from agjohnson April 8, 2025 10:29
@@ -213,71 +203,6 @@ def test_build_list_includes_external_versions(self):
self.assertEqual(response.status_code, 200)
self.assertIn(external_version_build, response.context["build_qs"])

@mock.patch("readthedocs.projects.tasks.builds.update_docs_task")
@mock.patch("readthedocs.core.utils.cancel_build")
def test_rebuild_specific_commit(self, mock_update_docs_task, mock_cancel_build):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these deleted tests don't look to be specific to the old theme?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests are for the POST request done to the dashboard to rebuild. That view was deleted and is now done via APIv3. That's why I deleted these tests as well.

Comment on lines +305 to +306
if ext_theme:
apps.append("readthedocsext.theme")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably always include this, as without exttheme the app would no longer work

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that, but I had to add this conditional because there are some scenarios where exttheme is not present: embed testings, for example.

We can work on polishing that in another PR if we want; but I didn't want to block this work due to that.

@humitos
Copy link
Member Author

humitos commented Apr 24, 2025

I did a test for this at https://readthedocs.slack.com/archives/G81T0N8S3/p1745509009820219 and it worked as expected. I think we are ready to merge this PR. We can fix any edge case that I may be missing as we go.

Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great 👍

The only thing that makes me a little uneasy is the static file removal. I'm not certain about some of those files. I know we shouldn't be referencing them with any projects built rather recently, but I do worry they are referenced by builds that we aren't considering.

So I might suggest we feed some of the important files in that list into Cloudflare to see if we have any volume of hits on files from referred sources that seem legitimate.

You are currently using our legacy dashboard, which will be retired on <time datetime="2025-03-11">March 11th, 2025</time>.
You should <a href="//{{ SWITCH_PRODUCTION_DOMAIN }}{% url "account_login" %}">switch to our new dashboard</a> before then.
{% endif %}
We are beginning to direct users to our new dashboard as we work to retire our legacy dashboard.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure to remove this and the onboarding announcement for the new dashboard soon.

Comment on lines -115 to -122
# TODO remove this with RTD_EXT_THEME_ENABLED
# This is going to try hard to show the new dashboard announcement.
# We can't yet back down to another announcement as we don't have
# the ability to evaluate local storage. Until we add the ability to
# dynamically change the announcement, this is going to be the only
# announcement shown.
if True: # pylint: disable=using-constant-test
template_name = "new-dashboard.html"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh yes this is the onboarding announcement I was describing above 👍

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.

Templates: remove old dashboard files Tests: remove test checks
3 participants