diff --git a/upload/helpers.py b/upload/helpers.py index cacae93849..129c46b00e 100644 --- a/upload/helpers.py +++ b/upload/helpers.py @@ -754,9 +754,9 @@ def dispatch_upload_task( def validate_activated_repo(repository): if repository.active and not repository.activated: - settings_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/settings" + config_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/config/general" raise ValidationError( - f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings_url}" + f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {config_url}" ) diff --git a/upload/tests/test_helpers.py b/upload/tests/test_helpers.py index 85f7ed52ed..502a83edd1 100644 --- a/upload/tests/test_helpers.py +++ b/upload/tests/test_helpers.py @@ -259,12 +259,12 @@ def test_validate_upload_too_many_uploads_for_commit( def test_deactivated_repo(db, mocker): repository = RepositoryFactory.create(active=True, activated=False) - settings_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/settings" + config_url = f"{settings.CODECOV_DASHBOARD_URL}/{repository.author.service}/{repository.author.username}/{repository.name}/config/general" with pytest.raises(ValidationError) as exp: validate_activated_repo(repository) assert exp.match( - f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings_url}" + f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {config_url}" ) diff --git a/upload/tests/views/test_commits.py b/upload/tests/views/test_commits.py index 5b6084c6f4..f764c044a4 100644 --- a/upload/tests/views/test_commits.py +++ b/upload/tests/views/test_commits.py @@ -68,7 +68,7 @@ def test_deactivated_repo(db): response_json = response.json() assert response.status_code == 400 assert response_json == [ - f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/settings" + f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/config/general" ] diff --git a/upload/tests/views/test_reports.py b/upload/tests/views/test_reports.py index 84dce1a153..c0eb5b371d 100644 --- a/upload/tests/views/test_reports.py +++ b/upload/tests/views/test_reports.py @@ -65,7 +65,7 @@ def test_deactivated_repo(db): response_json = response.json() assert response.status_code == 400 assert response_json == [ - f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/settings" + f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/config/general" ] diff --git a/upload/tests/views/test_uploads.py b/upload/tests/views/test_uploads.py index 4a14f1afa2..2be26e5ba8 100644 --- a/upload/tests/views/test_uploads.py +++ b/upload/tests/views/test_uploads.py @@ -793,7 +793,7 @@ def test_deactivated_repo(db, mocker, mock_redis): response_json = response.json() assert response.status_code == 400 assert response_json == [ - f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/settings" + f"This repository is deactivated. To resume uploading to it, please activate the repository in the codecov UI: {settings.CODECOV_DASHBOARD_URL}/github/codecov/the_repo/config/general" ]