diff --git a/readthedocs/proxito/tests/test_hosting.py b/readthedocs/proxito/tests/test_hosting.py index 72c54a191d0..00ae13d7c50 100644 --- a/readthedocs/proxito/tests/test_hosting.py +++ b/readthedocs/proxito/tests/test_hosting.py @@ -984,8 +984,8 @@ def test_file_tree_diff(self, get_manifest): { "filename": "new-file.html", "urls": { - "version_a": "https://project--123.dev.readthedocs.build/en/123/new-file.html", - "version_b": "https://project.dev.readthedocs.io/en/latest/new-file.html", + "current": "https://project--123.dev.readthedocs.build/en/123/new-file.html", + "base": "https://project.dev.readthedocs.io/en/latest/new-file.html", }, }, ], @@ -993,8 +993,8 @@ def test_file_tree_diff(self, get_manifest): { "filename": "deleted.html", "urls": { - "version_a": "https://project--123.dev.readthedocs.build/en/123/deleted.html", - "version_b": "https://project.dev.readthedocs.io/en/latest/deleted.html", + "current": "https://project--123.dev.readthedocs.build/en/123/deleted.html", + "base": "https://project.dev.readthedocs.io/en/latest/deleted.html", }, }, ], @@ -1002,8 +1002,8 @@ def test_file_tree_diff(self, get_manifest): { "filename": "tutorial/index.html", "urls": { - "version_a": "https://project--123.dev.readthedocs.build/en/123/tutorial/index.html", - "version_b": "https://project.dev.readthedocs.io/en/latest/tutorial/index.html", + "current": "https://project--123.dev.readthedocs.build/en/123/tutorial/index.html", + "base": "https://project.dev.readthedocs.io/en/latest/tutorial/index.html", }, }, ], diff --git a/readthedocs/proxito/views/hosting.py b/readthedocs/proxito/views/hosting.py index 6ef3fb752d8..3e943e0014f 100644 --- a/readthedocs/proxito/views/hosting.py +++ b/readthedocs/proxito/views/hosting.py @@ -657,12 +657,12 @@ def _get_filetreediff_response(self, *, request, project, version, resolver): { "filename": filename, "urls": { - "version_a": resolver.resolve_version( + "current": resolver.resolve_version( project=project, filename=filename, version=version, ), - "version_b": resolver.resolve_version( + "base": resolver.resolve_version( project=project, filename=filename, version=latest_version, @@ -675,12 +675,12 @@ def _get_filetreediff_response(self, *, request, project, version, resolver): { "filename": filename, "urls": { - "version_a": resolver.resolve_version( + "current": resolver.resolve_version( project=project, filename=filename, version=version, ), - "version_b": resolver.resolve_version( + "base": resolver.resolve_version( project=project, filename=filename, version=latest_version, @@ -693,12 +693,12 @@ def _get_filetreediff_response(self, *, request, project, version, resolver): { "filename": filename, "urls": { - "version_a": resolver.resolve_version( + "current": resolver.resolve_version( project=project, filename=filename, version=version, ), - "version_b": resolver.resolve_version( + "base": resolver.resolve_version( project=project, filename=filename, version=latest_version,