From 04685ee093705d0155d43689a678b0c9dcb27a2f Mon Sep 17 00:00:00 2001 From: Travis Prescott Date: Wed, 4 Mar 2026 12:58:49 -0800 Subject: [PATCH] Revert apiview.org back to apiview.dev --- .../apiview-review-gen-javascript.yml | 2 +- eng/pipelines/apiview-review-gen-python.yml | 2 +- eng/pipelines/apiview-review-gen-typespec.yml | 2 +- .../Apiview-Update-Generated-Review.ps1 | 2 +- .../apiview-copilot/src/_apiview.py | 2 +- .../UnauthorizedPageModelTests.cs | 6 ++--- .../Client/tests/unit/shared/helpers.spec.ts | 22 +++++++++---------- .../APIView/APIViewWeb/Helpers/URlHelpers.cs | 2 +- .../APIViewWeb/Pages/Shared/_Layout.cshtml | 4 ++-- src/dotnet/APIView/APIViewWeb/web.config | 4 ++-- .../shared/nav-bar/nav-bar.component.html | 2 +- src/dotnet/APIView/ClientSPA/src/index.html | 4 ++-- src/dotnet/APIView/apiview.yml | 6 ++--- .../Configuration/APIViewConfiguration.cs | 2 +- 14 files changed, 31 insertions(+), 31 deletions(-) diff --git a/eng/pipelines/apiview-review-gen-javascript.yml b/eng/pipelines/apiview-review-gen-javascript.yml index b89b2f603c6..ebacf9e6c14 100644 --- a/eng/pipelines/apiview-review-gen-javascript.yml +++ b/eng/pipelines/apiview-review-gen-javascript.yml @@ -12,7 +12,7 @@ parameters: default: '[{"ReviewID":"","RevisionID":"","FileID":"","FileName":""}]' - name: APIViewURL type: string - default: 'https://apiview.org' + default: 'https://apiview.dev' - name: StorageContainerUrl type: string default: '' diff --git a/eng/pipelines/apiview-review-gen-python.yml b/eng/pipelines/apiview-review-gen-python.yml index fa556ea4206..50ee9f4486a 100644 --- a/eng/pipelines/apiview-review-gen-python.yml +++ b/eng/pipelines/apiview-review-gen-python.yml @@ -12,7 +12,7 @@ parameters: default: '[{"ReviewID":"","RevisionID":"","FileID":"","FileName":""}]' - name: APIViewURL type: string - default: 'https://apiview.org' + default: 'https://apiview.dev' - name: StorageContainerUrl type: string default: '' diff --git a/eng/pipelines/apiview-review-gen-typespec.yml b/eng/pipelines/apiview-review-gen-typespec.yml index bb8ed2ce520..3cd7b21af10 100644 --- a/eng/pipelines/apiview-review-gen-typespec.yml +++ b/eng/pipelines/apiview-review-gen-typespec.yml @@ -8,7 +8,7 @@ parameters: default: '[{"ReviewID":"","RevisionID":"","SourceRepoName":"","FileName":"","SourceBranchName":""}]' - name: APIViewURL type: string - default: 'https://apiview.org' + default: 'https://apiview.dev' pool: name: azsdk-pool diff --git a/eng/scripts/Apiview-Update-Generated-Review.ps1 b/eng/scripts/Apiview-Update-Generated-Review.ps1 index 5d76eae6792..5b8ffd2a58a 100644 --- a/eng/scripts/Apiview-Update-Generated-Review.ps1 +++ b/eng/scripts/Apiview-Update-Generated-Review.ps1 @@ -4,7 +4,7 @@ param ( [string]$BuildId, [string]$RepoName = "azure/azure-sdk-tools", [string]$ArtifactName = "apiview", - [string]$ApiviewUpdateUrl = "https://apiview.org/review/UpdateApiReview" + [string]$ApiviewUpdateUrl = "https://apiview.dev/review/UpdateApiReview" ) #################################################################################################################### diff --git a/packages/python-packages/apiview-copilot/src/_apiview.py b/packages/python-packages/apiview-copilot/src/_apiview.py index 5a6b806fb65..8e3446f8d10 100644 --- a/packages/python-packages/apiview-copilot/src/_apiview.py +++ b/packages/python-packages/apiview-copilot/src/_apiview.py @@ -178,7 +178,7 @@ async def send_request(self, endpoint: str): endpoint = endpoint[1:] apiview_endpoints = { - "production": "https://apiview.org", + "production": "https://apiview.dev", "staging": "https://apiviewstagingtest.com", } endpoint_root = apiview_endpoints.get(self.environment) diff --git a/src/dotnet/APIView/APIViewUnitTests/UnauthorizedPageModelTests.cs b/src/dotnet/APIView/APIViewUnitTests/UnauthorizedPageModelTests.cs index e1bd876bb91..3bc615f8f01 100644 --- a/src/dotnet/APIView/APIViewUnitTests/UnauthorizedPageModelTests.cs +++ b/src/dotnet/APIView/APIViewUnitTests/UnauthorizedPageModelTests.cs @@ -87,8 +87,8 @@ public async Task OnGetAsync_WhenAuthorized_WithExternalUrl_RedirectsToRoot() [Fact] public async Task OnGetAsync_WhenAuthorized_WithAllowedOrigin_RedirectsToReturnUrl() { - _pageModel.ReturnUrl = "https://spa.apiview.org/Reviews"; - _mockUrlHelper.Setup(u => u.IsLocalUrl("https://spa.apiview.org/Reviews")).Returns(false); + _pageModel.ReturnUrl = "https://spa.apiview.dev/Reviews"; + _mockUrlHelper.Setup(u => u.IsLocalUrl("https://spa.apiview.dev/Reviews")).Returns(false); _mockEnvironment.SetupGet(e => e.EnvironmentName).Returns(Environments.Development); _mockAuthorizationService .Setup(a => a.AuthorizeAsync(_testUser, null, Startup.RequireOrganizationPolicy)) @@ -97,7 +97,7 @@ public async Task OnGetAsync_WhenAuthorized_WithAllowedOrigin_RedirectsToReturnU IActionResult result = await _pageModel.OnGetAsync(); result.Should().BeOfType(); RedirectResult redirectResult = result as RedirectResult; - redirectResult!.Url.Should().Be("https://spa.apiview.org/Reviews"); + redirectResult!.Url.Should().Be("https://spa.apiview.dev/Reviews"); } [Fact] diff --git a/src/dotnet/APIView/APIViewWeb/Client/tests/unit/shared/helpers.spec.ts b/src/dotnet/APIView/APIViewWeb/Client/tests/unit/shared/helpers.spec.ts index 614206af974..e584eed6cef 100644 --- a/src/dotnet/APIView/APIViewWeb/Client/tests/unit/shared/helpers.spec.ts +++ b/src/dotnet/APIView/APIViewWeb/Client/tests/unit/shared/helpers.spec.ts @@ -15,43 +15,43 @@ test.describe('getReviewAndRevisionIdFromUrl should return valid review and revi var expectedResults = [ { title: 'older revision returns correct values', - href: 'https://apiview.org/Assemblies/Review/b08a59aad6fe47f1949b54a531e67fa9?revisionId=ae4bb4afdc104c07a0f0058e0c133b4f&doc=False', + href: 'https://apiview.dev/Assemblies/Review/b08a59aad6fe47f1949b54a531e67fa9?revisionId=ae4bb4afdc104c07a0f0058e0c133b4f&doc=False', reviewId: 'b08a59aad6fe47f1949b54a531e67fa9', revisionId: 'ae4bb4afdc104c07a0f0058e0c133b4f', }, { title: 'older revision returns correct values 2', - href: 'https://apiview.org/Assemblies/Review/0ab7afb3131d4eacb1bfc1b0230fece8?revisionId=e822cfe035b148d2999a57e3e6b07460&doc=False', + href: 'https://apiview.dev/Assemblies/Review/0ab7afb3131d4eacb1bfc1b0230fece8?revisionId=e822cfe035b148d2999a57e3e6b07460&doc=False', reviewId: '0ab7afb3131d4eacb1bfc1b0230fece8', revisionId: 'e822cfe035b148d2999a57e3e6b07460', }, { title: 'latest revision returns correct reviewId and undefined revisionId', - href: 'https://apiview.org/Assemblies/Review/7674e7e8fdd0496f80b29127673928ec', + href: 'https://apiview.dev/Assemblies/Review/7674e7e8fdd0496f80b29127673928ec', reviewId: '7674e7e8fdd0496f80b29127673928ec', revisionId: undefined, }, { title: 'latest revision returns correct reviewId and undefined revisionId 2', - href: 'https://apiview.org/Assemblies/Review/0ab7afb3131d4eacb1bfc1b0230fece8', + href: 'https://apiview.dev/Assemblies/Review/0ab7afb3131d4eacb1bfc1b0230fece8', reviewId: '0ab7afb3131d4eacb1bfc1b0230fece8', revisionId: undefined, }, { title: 'review conversation page returns its reviewId', - href: 'https://apiview.org/Assemblies/Conversation/7c1724b222bd4a49bfeba6100d77297e', + href: 'https://apiview.dev/Assemblies/Conversation/7c1724b222bd4a49bfeba6100d77297e', reviewId: '7c1724b222bd4a49bfeba6100d77297e', revisionId: undefined, }, { title: 'review revisions page returns its reviewId', - href: 'https://apiview.org/Assemblies/Revisions/7c1724b222bd4a49bfeba6100d77297e', + href: 'https://apiview.dev/Assemblies/Revisions/7c1724b222bd4a49bfeba6100d77297e', reviewId: '7c1724b222bd4a49bfeba6100d77297e', revisionId: undefined, }, { title: 'review usage samples page returns its reviewId', - href: 'https://apiview.org/Assemblies/Samples/7c1724b222bd4a49bfeba6100d77297e', + href: 'https://apiview.dev/Assemblies/Samples/7c1724b222bd4a49bfeba6100d77297e', reviewId: '7c1724b222bd4a49bfeba6100d77297e', revisionId: undefined, }, @@ -69,19 +69,19 @@ test.describe('getReviewAndRevisionIdFromUrl should return valid review and revi var nonReviewExpectedResults = [ { title: 'landing', - href: 'https://apiview.org/', + href: 'https://apiview.dev/', }, { title: 'login', - href: 'https://apiview.org/Login', + href: 'https://apiview.dev/Login', }, { title: 'profile', - href: 'https://apiview.org/Assemblies/Profile/yeojunh', + href: 'https://apiview.dev/Assemblies/Profile/yeojunh', }, { title: 'review filter', - href: 'https://apiview.org/?languages=C%252B%252B&state=Closed&state=Open&status=Approved&type=Automatic&type=Manual&type=PullRequest&pageNo=1&pageSize=50', + href: 'https://apiview.dev/?languages=C%252B%252B&state=Closed&state=Open&status=Approved&type=Automatic&type=Manual&type=PullRequest&pageNo=1&pageSize=50', }, { title: 'requested reviews', diff --git a/src/dotnet/APIView/APIViewWeb/Helpers/URlHelpers.cs b/src/dotnet/APIView/APIViewWeb/Helpers/URlHelpers.cs index 94287427b49..a325cdc4fdf 100644 --- a/src/dotnet/APIView/APIViewWeb/Helpers/URlHelpers.cs +++ b/src/dotnet/APIView/APIViewWeb/Helpers/URlHelpers.cs @@ -10,7 +10,7 @@ public static List GetAllowedOrigins() return new List() { "https://spa.apiviewuxtest.com", "https://spa.apiviewstagingtest.com", - "https://spa.apiview.org" + "https://spa.apiview.dev" }; } diff --git a/src/dotnet/APIView/APIViewWeb/Pages/Shared/_Layout.cshtml b/src/dotnet/APIView/APIViewWeb/Pages/Shared/_Layout.cshtml index 90f343c8884..99b092b9202 100644 --- a/src/dotnet/APIView/APIViewWeb/Pages/Shared/_Layout.cshtml +++ b/src/dotnet/APIView/APIViewWeb/Pages/Shared/_Layout.cshtml @@ -5,7 +5,7 @@ - @ViewData["Title"] - apiview.org + @ViewData["Title"] - apiview.dev @@ -39,7 +39,7 @@