From 0f1c8ffb816645161487a208ec1c8ad9c66c4446 Mon Sep 17 00:00:00 2001 From: getsentry-bot Date: Thu, 17 Aug 2023 15:07:53 +0000 Subject: [PATCH] Revert "ref(getting-started-docs): Source sdks version from sentry release registry (#54675)" This reverts commit d5615b92197c8378679d067ddb7cba489695e7d5. Co-authored-by: priscilawebdev <29228205+priscilawebdev@users.noreply.github.com> --- .../gettingStartedDoc/sdkDocumentation.tsx | 6 -- .../onboarding/gettingStartedDoc/step.tsx | 7 -- .../useSourcePackageRegistries.tsx | 45 ------------- .../gettingStartedDocs/android/android.tsx | 29 ++------- .../gettingStartedDocs/apple/apple-ios.tsx | 28 ++------ .../gettingStartedDocs/apple/apple-macos.tsx | 28 ++------ static/app/gettingStartedDocs/apple/apple.tsx | 28 ++------ .../capacitor/capacitor.tsx | 4 +- .../gettingStartedDocs/cordova/cordova.tsx | 4 +- static/app/gettingStartedDocs/dart/dart.tsx | 22 ++----- .../app/gettingStartedDocs/dotnet/aspnet.tsx | 29 ++------- .../gettingStartedDocs/dotnet/aspnetcore.tsx | 31 ++------- .../gettingStartedDocs/dotnet/awslambda.tsx | 37 ++--------- .../app/gettingStartedDocs/dotnet/dotnet.tsx | 34 ++-------- .../dotnet/gcpfunctions.tsx | 39 +++-------- static/app/gettingStartedDocs/dotnet/maui.tsx | 29 ++------- static/app/gettingStartedDocs/dotnet/uwp.tsx | 28 ++------ .../gettingStartedDocs/dotnet/winforms.tsx | 28 ++------ static/app/gettingStartedDocs/dotnet/wpf.tsx | 28 ++------ .../app/gettingStartedDocs/dotnet/xamarin.tsx | 29 ++------- .../app/gettingStartedDocs/elixir/elixir.tsx | 4 +- .../gettingStartedDocs/flutter/flutter.tsx | 22 ++----- static/app/gettingStartedDocs/go/echo.tsx | 4 +- static/app/gettingStartedDocs/go/fasthttp.tsx | 4 +- static/app/gettingStartedDocs/go/gin.tsx | 4 +- static/app/gettingStartedDocs/go/go.tsx | 4 +- static/app/gettingStartedDocs/go/http.tsx | 4 +- static/app/gettingStartedDocs/go/iris.tsx | 4 +- static/app/gettingStartedDocs/go/martini.tsx | 4 +- static/app/gettingStartedDocs/go/negroni.tsx | 4 +- static/app/gettingStartedDocs/ionic/ionic.tsx | 4 +- static/app/gettingStartedDocs/java/java.tsx | 57 +++------------- static/app/gettingStartedDocs/java/log4j2.tsx | 50 +++----------- .../app/gettingStartedDocs/java/logback.tsx | 51 +++------------ .../gettingStartedDocs/java/spring-boot.tsx | 65 ++++--------------- static/app/gettingStartedDocs/java/spring.tsx | 65 ++++--------------- .../app/gettingStartedDocs/kotlin/kotlin.tsx | 35 ++-------- .../gettingStartedDocs/minidump/minidump.tsx | 4 +- .../gettingStartedDocs/native/native-qt.tsx | 4 +- .../app/gettingStartedDocs/native/native.tsx | 4 +- static/app/gettingStartedDocs/php/laravel.tsx | 4 +- static/app/gettingStartedDocs/php/php.tsx | 4 +- static/app/gettingStartedDocs/php/symfony.tsx | 4 +- .../app/gettingStartedDocs/python/aiohttp.tsx | 4 +- static/app/gettingStartedDocs/python/asgi.tsx | 4 +- .../gettingStartedDocs/python/awslambda.tsx | 4 +- .../app/gettingStartedDocs/python/bottle.tsx | 4 +- .../app/gettingStartedDocs/python/celery.tsx | 4 +- .../app/gettingStartedDocs/python/chalice.tsx | 4 +- .../app/gettingStartedDocs/python/falcon.tsx | 4 +- .../app/gettingStartedDocs/python/fastapi.tsx | 4 +- .../app/gettingStartedDocs/python/flask.tsx | 4 +- .../python/gcpfunctions.tsx | 4 +- .../app/gettingStartedDocs/python/mongo.tsx | 4 +- .../app/gettingStartedDocs/python/pylons.tsx | 4 +- .../app/gettingStartedDocs/python/pyramid.tsx | 4 +- .../app/gettingStartedDocs/python/python.tsx | 4 +- .../app/gettingStartedDocs/python/quart.tsx | 4 +- static/app/gettingStartedDocs/python/rq.tsx | 4 +- .../app/gettingStartedDocs/python/sanic.tsx | 4 +- .../gettingStartedDocs/python/serverless.tsx | 4 +- .../gettingStartedDocs/python/starlette.tsx | 4 +- .../app/gettingStartedDocs/python/tornado.tsx | 4 +- .../app/gettingStartedDocs/python/tryton.tsx | 4 +- static/app/gettingStartedDocs/python/wsgi.tsx | 4 +- .../react-native/react-native.tsx | 4 +- static/app/gettingStartedDocs/ruby/rack.tsx | 4 +- static/app/gettingStartedDocs/ruby/rails.tsx | 4 +- static/app/gettingStartedDocs/ruby/ruby.tsx | 4 +- static/app/gettingStartedDocs/rust/rust.tsx | 22 ++----- static/app/gettingStartedDocs/unity/unity.tsx | 22 ++----- .../app/gettingStartedDocs/unreal/unreal.tsx | 4 +- static/app/utils/queryClient.tsx | 12 +--- .../app/views/onboarding/onboarding.spec.tsx | 15 ----- .../app/views/onboarding/setupDocs.spec.tsx | 56 ---------------- 75 files changed, 313 insertions(+), 844 deletions(-) delete mode 100644 static/app/components/onboarding/gettingStartedDoc/useSourcePackageRegistries.tsx diff --git a/static/app/components/onboarding/gettingStartedDoc/sdkDocumentation.tsx b/static/app/components/onboarding/gettingStartedDoc/sdkDocumentation.tsx index 6262eb9f405748..0f82c09b7ea826 100644 --- a/static/app/components/onboarding/gettingStartedDoc/sdkDocumentation.tsx +++ b/static/app/components/onboarding/gettingStartedDoc/sdkDocumentation.tsx @@ -1,7 +1,6 @@ import {useEffect, useState} from 'react'; import LoadingIndicator from 'sentry/components/loadingIndicator'; -import {useSourcePackageRegistries} from 'sentry/components/onboarding/gettingStartedDoc/useSourcePackageRegistries'; import {ProductSolution} from 'sentry/components/onboarding/productSelection'; import {PlatformKey} from 'sentry/data/platformCategories'; import type {Organization, PlatformIntegration, Project, ProjectKey} from 'sentry/types'; @@ -23,7 +22,6 @@ export type ModuleProps = { organization?: Organization; platformKey?: PlatformKey; projectId?: Project['id']; - sourcePackageRegistries?: ReturnType; }; // Loads the component containing the documentation for the specified platform @@ -35,8 +33,6 @@ export function SdkDocumentation({ organization, projectId, }: SdkDocumentationProps) { - const sourcePackageRegistries = useSourcePackageRegistries(); - const [module, setModule] = useState; }>(null); @@ -99,7 +95,6 @@ export function SdkDocumentation({ } const {default: GettingStartedDoc} = module; - return ( ); } diff --git a/static/app/components/onboarding/gettingStartedDoc/step.tsx b/static/app/components/onboarding/gettingStartedDoc/step.tsx index 5142aa36933762..d8368aa117fdc1 100644 --- a/static/app/components/onboarding/gettingStartedDoc/step.tsx +++ b/static/app/components/onboarding/gettingStartedDoc/step.tsx @@ -47,10 +47,6 @@ type ConfigurationType = { * A callback to be invoked when the configuration is selected and copied to the clipboard */ onSelectAndCopy?: () => void; - /** - * Whether or not the configuration or parts of it are currently being loaded - */ - partialLoading?: boolean; }; interface BaseStepProps { @@ -83,7 +79,6 @@ function getConfiguration({ additionalInfo, onCopy, onSelectAndCopy, - partialLoading, }: ConfigurationType) { return ( @@ -94,8 +89,6 @@ function getConfiguration({ language={language} onCopy={onCopy} onSelectAndCopy={onSelectAndCopy} - hideCopyButton={partialLoading} - disableUserSelection={partialLoading} > {language === 'javascript' ? beautify.js(code, {indent_size: 2, e4x: true}) diff --git a/static/app/components/onboarding/gettingStartedDoc/useSourcePackageRegistries.tsx b/static/app/components/onboarding/gettingStartedDoc/useSourcePackageRegistries.tsx deleted file mode 100644 index 6ca38666436d90..00000000000000 --- a/static/app/components/onboarding/gettingStartedDoc/useSourcePackageRegistries.tsx +++ /dev/null @@ -1,45 +0,0 @@ -import {useEffect} from 'react'; - -import {Client} from 'sentry/api'; -import {handleXhrErrorResponse} from 'sentry/utils/handleXhrErrorResponse'; -import {useApiQuery} from 'sentry/utils/queryClient'; - -type ReleaseRegistrySdk = Record< - string, - { - canonical: string; - main_docs_url: string; - name: string; - package_url: string; - repo_url: string; - version: string; - } ->; - -// This exists because /extensions/type/search API is not prefixed with -// /api/0/, but the default API client on the abstract issue form is... -const API_CLIENT = new Client({baseUrl: '', headers: {}, credentials: 'omit'}); - -/** - * Fetches the release registry list for SDKs - */ -export function useSourcePackageRegistries() { - const releaseRegistrySdk = useApiQuery( - ['https://release-registry.services.sentry.io/sdks'], - { - staleTime: Infinity, - }, - API_CLIENT - ); - - useEffect(() => { - if (releaseRegistrySdk.error) { - handleXhrErrorResponse( - 'Failed to fetch sentry release registry', - releaseRegistrySdk.error - ); - } - }, [releaseRegistrySdk.error]); - - return releaseRegistrySdk; -} diff --git a/static/app/gettingStartedDocs/android/android.tsx b/static/app/gettingStartedDocs/android/android.tsx index 42db27c3365990..39270cd927d779 100644 --- a/static/app/gettingStartedDocs/android/android.tsx +++ b/static/app/gettingStartedDocs/android/android.tsx @@ -7,10 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -29,16 +28,10 @@ export const steps = ({ configurations: [ { language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, code: ` plugins { id "com.android.application" // should be in the same module - id "io.sentry.android.gradle" version "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.android.gradle-plugin']?.version ?? - '3.12.0' - }" + id "io.sentry.android.gradle" version "3.12.0" } `, }, @@ -146,18 +139,8 @@ export const nextSteps = [ ]; // Configuration End -export function GettingStartedWithAndroid({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithAndroid({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithAndroid; diff --git a/static/app/gettingStartedDocs/apple/apple-ios.tsx b/static/app/gettingStartedDocs/apple/apple-ios.tsx index 2af24193e090c8..99df9c4c38d860 100644 --- a/static/app/gettingStartedDocs/apple/apple-ios.tsx +++ b/static/app/gettingStartedDocs/apple/apple-ios.tsx @@ -7,10 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -45,13 +44,8 @@ https://github.com/getsentry/sentry-cocoa.git

), language: 'swift', - partialLoading: sourcePackageRegistries?.isLoading, code: ` -.package(url: "https://github.com/getsentry/sentry-cocoa", from: "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.cocoa']?.version ?? '8.9.3' - }"), +.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.9.3"), `, }, ], @@ -237,18 +231,8 @@ export const nextSteps = [ ]; // Configuration End -export function GettingStartedWithIos({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithIos({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithIos; diff --git a/static/app/gettingStartedDocs/apple/apple-macos.tsx b/static/app/gettingStartedDocs/apple/apple-macos.tsx index 71772ec9f0b92f..6682bd74c1024a 100644 --- a/static/app/gettingStartedDocs/apple/apple-macos.tsx +++ b/static/app/gettingStartedDocs/apple/apple-macos.tsx @@ -7,10 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -45,13 +44,8 @@ https://github.com/getsentry/sentry-cocoa.git

), language: 'swift', - partialLoading: sourcePackageRegistries?.isLoading, code: ` -.package(url: "https://github.com/getsentry/sentry-cocoa", from: "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.cocoa']?.version ?? '8.9.3' - }"), +.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.9.3"), `, }, ], @@ -189,18 +183,8 @@ export const nextSteps = [ ]; // Configuration End -export function GettingStartedWithMacos({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithMacos({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithMacos; diff --git a/static/app/gettingStartedDocs/apple/apple.tsx b/static/app/gettingStartedDocs/apple/apple.tsx index 6c87618736441f..0eb650fee44729 100644 --- a/static/app/gettingStartedDocs/apple/apple.tsx +++ b/static/app/gettingStartedDocs/apple/apple.tsx @@ -7,10 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -45,13 +44,8 @@ https://github.com/getsentry/sentry-cocoa.git

), language: 'swift', - partialLoading: sourcePackageRegistries?.isLoading, code: ` -.package(url: "https://github.com/getsentry/sentry-cocoa", from: "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.cocoa']?.version ?? '8.9.3' - }"), +.package(url: "https://github.com/getsentry/sentry-cocoa", from: "8.9.3"), `, }, ], @@ -189,18 +183,8 @@ export const nextSteps = [ ]; // Configuration End -export function GettingStartedWithApple({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithApple({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithApple; diff --git a/static/app/gettingStartedDocs/capacitor/capacitor.tsx b/static/app/gettingStartedDocs/capacitor/capacitor.tsx index 100bbc68c4bdf3..53d4d52aed5fb2 100644 --- a/static/app/gettingStartedDocs/capacitor/capacitor.tsx +++ b/static/app/gettingStartedDocs/capacitor/capacitor.tsx @@ -8,7 +8,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t( diff --git a/static/app/gettingStartedDocs/cordova/cordova.tsx b/static/app/gettingStartedDocs/cordova/cordova.tsx index dca421017c1f9a..ce2d20142e618a 100644 --- a/static/app/gettingStartedDocs/cordova/cordova.tsx +++ b/static/app/gettingStartedDocs/cordova/cordova.tsx @@ -9,7 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t('Install our SDK using the cordova command:'), diff --git a/static/app/gettingStartedDocs/dart/dart.tsx b/static/app/gettingStartedDocs/dart/dart.tsx index a3f7ccfde68669..b4b85ee768e5b1 100644 --- a/static/app/gettingStartedDocs/dart/dart.tsx +++ b/static/app/gettingStartedDocs/dart/dart.tsx @@ -7,10 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -26,14 +25,9 @@ export const steps = ({ configurations: [ { language: 'yml', - partialLoading: sourcePackageRegistries?.isLoading, code: ` dependencies: - sentry: ^${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dart']?.version ?? '7.8.0' - } + sentry: ^7.8.0 `, }, ], @@ -168,12 +162,8 @@ Future processOrderBatch(ISentrySpan span) async { ]; // Configuration End -export function GettingStartedWithDart({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithDart({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithDart; diff --git a/static/app/gettingStartedDocs/dotnet/aspnet.tsx b/static/app/gettingStartedDocs/dotnet/aspnet.tsx index 995b1deedb9785..0b809f3b7bf7fb 100644 --- a/static/app/gettingStartedDocs/dotnet/aspnet.tsx +++ b/static/app/gettingStartedDocs/dotnet/aspnet.tsx @@ -13,10 +13,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -29,23 +28,13 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Package Manager:'), - code: `Install-Package Sentry.AspNet -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.aspnet']?.version ?? '3.34.0' - }`, + code: 'Install-Package Sentry.AspNet -Version 3.34.0', }, { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Using Entity Framework 6?'), - code: `Install-Package Sentry.EntityFramework -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.ef']?.version ?? '3.34.0' - }`, + code: 'Install-Package Sentry.EntityFramework -Version 3.34.0', }, ], additionalInfo: ( @@ -175,12 +164,8 @@ public class MvcApplication : HttpApplication ]; // Configuration End -export function GettingStartedWithAspnet({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithAspnet({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithAspnet; diff --git a/static/app/gettingStartedDocs/dotnet/aspnetcore.tsx b/static/app/gettingStartedDocs/dotnet/aspnetcore.tsx index 5208096ee2cfe8..9b391728a2f265 100644 --- a/static/app/gettingStartedDocs/dotnet/aspnetcore.tsx +++ b/static/app/gettingStartedDocs/dotnet/aspnetcore.tsx @@ -11,10 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -27,25 +26,13 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Package Manager:'), - code: `Install-Package Sentry.AspNetCore -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.aspnetcore']?.version ?? - '3.34.0' - }`, + code: 'Install-Package Sentry.AspNetCore -Version 3.34.0', }, { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Or .NET Core CLI:'), - code: `dotnet add package Sentry.AspNetCore -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.aspnetcore']?.version ?? - '3.34.0' - }`, + code: 'dotnet add package Sentry.AspNetCore -v 3.34.0', }, ], }, @@ -228,12 +215,8 @@ public class HomeController : Controller ]; // Configuration End -export function GettingStartedWithAspnetcore({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithAspnetcore({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithAspnetcore; diff --git a/static/app/gettingStartedDocs/dotnet/awslambda.tsx b/static/app/gettingStartedDocs/dotnet/awslambda.tsx index c90df049f2c77e..e3f669abe40ecf 100644 --- a/static/app/gettingStartedDocs/dotnet/awslambda.tsx +++ b/static/app/gettingStartedDocs/dotnet/awslambda.tsx @@ -19,33 +19,20 @@ const introduction = ( ); export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t('Add the Sentry dependency:'), configurations: [ { language: 'powershell', - partialLoading: sourcePackageRegistries?.isLoading, - code: `Install-Package Sentry.AspNetCore -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.aspnetcore']?.version ?? - '3.34.0' - }`, + code: 'Install-Package Sentry.AspNetCore -Version 3.34.0', }, { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, - code: `dotnet add package Sentry.AspNetCore -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.aspnetcore']?.version ?? - '3.34.0' - }`, + code: 'dotnet add package Sentry.AspNetCore -v 3.34.0', }, ], additionalInfo: ( @@ -144,18 +131,8 @@ public class BadController ]; // Configuration End -export function GettingStartedAwsLambda({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedAwsLambda({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedAwsLambda; diff --git a/static/app/gettingStartedDocs/dotnet/dotnet.tsx b/static/app/gettingStartedDocs/dotnet/dotnet.tsx index 0daaff0e5cefa7..a0b9432b937434 100644 --- a/static/app/gettingStartedDocs/dotnet/dotnet.tsx +++ b/static/app/gettingStartedDocs/dotnet/dotnet.tsx @@ -22,10 +22,9 @@ const introduction = ( ); export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -38,21 +37,12 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, code: ` # Using Package Manager -Install-Package Sentry -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +Install-Package Sentry -Version 3.34.0 # Or using .NET Core CLI -dotnet add package Sentry -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +dotnet add package Sentry -v 3.34.0 `, }, ], @@ -196,18 +186,8 @@ transaction.Finish(); // Mark the transaction as finished and send it to Sentry ]; // Configuration End -export function GettingStartedWithDotnet({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithDotnet({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithDotnet; diff --git a/static/app/gettingStartedDocs/dotnet/gcpfunctions.tsx b/static/app/gettingStartedDocs/dotnet/gcpfunctions.tsx index db15671d332d45..a8b86279de2473 100644 --- a/static/app/gettingStartedDocs/dotnet/gcpfunctions.tsx +++ b/static/app/gettingStartedDocs/dotnet/gcpfunctions.tsx @@ -11,10 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -27,38 +26,20 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Package Manager:'), - code: `Install-Package Sentry.Google.Cloud.Functions -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.google-cloud-function'] - ?.version ?? '3.34.0' - }`, + code: 'Install-Package Sentry.Google.Cloud.Functions -Version 3.34.0', }, { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Or .NET Core CLI:'), - code: `dotnet add package Sentry.Google.Cloud.Functions -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.google-cloud-function'] - ?.version ?? '3.34.0' - }`, + code: 'dotnet add package Sentry.Google.Cloud.Functions -v 3.34.0', }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: t('Or, manually add the Sentry dependency into your csproj file:'), code: ` - + `, }, @@ -181,12 +162,8 @@ public Task HandleAsync(HttpContext context) ]; // Configuration End -export function GettingStartedWithGCPFunctions({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithGCPFunctions({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithGCPFunctions; diff --git a/static/app/gettingStartedDocs/dotnet/maui.tsx b/static/app/gettingStartedDocs/dotnet/maui.tsx index 5b6427ce03fcb2..ddaf7cc626df63 100644 --- a/static/app/gettingStartedDocs/dotnet/maui.tsx +++ b/static/app/gettingStartedDocs/dotnet/maui.tsx @@ -9,10 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -25,21 +24,11 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, - code: `dotnet add package Sentry.Maui -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.maui']?.version ?? '3.34.0' - }`, + code: 'dotnet add package Sentry.Maui -v 3.34.0', }, { language: 'powershell', - partialLoading: sourcePackageRegistries?.isLoading, - code: `Install-Package Sentry.Maui -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.maui']?.version ?? '3.34.0' - }`, + code: 'Install-Package Sentry.Maui -Version 3.34.0', }, ], }, @@ -197,12 +186,8 @@ transaction.Finish(); // Mark the transaction as finished and send it to Sentry ]; // Configuration End -export function GettingStartedWithMaui({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithMaui({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithMaui; diff --git a/static/app/gettingStartedDocs/dotnet/uwp.tsx b/static/app/gettingStartedDocs/dotnet/uwp.tsx index e3b5d661d9e20f..df795aa405a381 100644 --- a/static/app/gettingStartedDocs/dotnet/uwp.tsx +++ b/static/app/gettingStartedDocs/dotnet/uwp.tsx @@ -13,10 +13,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -29,21 +28,12 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, code: ` # Using Package Manager -Install-Package Sentry -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +Install-Package Sentry -Version 3.34.0 # Or using .NET Core CLI -dotnet add package Sentry -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +dotnet add package Sentry -v 3.34.0 `, }, ], @@ -234,12 +224,8 @@ transaction.Finish(); // Mark the transaction as finished and send it to Sentry ]; // Configuration End -export function GettingStartedWithUwp({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithUwp({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithUwp; diff --git a/static/app/gettingStartedDocs/dotnet/winforms.tsx b/static/app/gettingStartedDocs/dotnet/winforms.tsx index d604ac45826794..258a6595f11055 100644 --- a/static/app/gettingStartedDocs/dotnet/winforms.tsx +++ b/static/app/gettingStartedDocs/dotnet/winforms.tsx @@ -13,10 +13,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -29,21 +28,12 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, code: ` # Using Package Manager -Install-Package Sentry -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +Install-Package Sentry -Version 3.34.0 # Or using .NET Core CLI -dotnet add package Sentry -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +dotnet add package Sentry -v 3.34.0 `, }, ], @@ -202,12 +192,8 @@ transaction.Finish(); // Mark the transaction as finished and send it to Sentry ]; // Configuration End -export function GettingStartedWithWinForms({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithWinForms({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithWinForms; diff --git a/static/app/gettingStartedDocs/dotnet/wpf.tsx b/static/app/gettingStartedDocs/dotnet/wpf.tsx index 189de96a882978..0d222e9771c7e7 100644 --- a/static/app/gettingStartedDocs/dotnet/wpf.tsx +++ b/static/app/gettingStartedDocs/dotnet/wpf.tsx @@ -13,10 +13,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -29,21 +28,12 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, code: ` # Using Package Manager -Install-Package Sentry -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +Install-Package Sentry -Version 3.34.0 # Or using .NET Core CLI -dotnet add package Sentry -v ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet']?.version ?? '3.34.0' - } +dotnet add package Sentry -v 3.34.0 `, }, ], @@ -202,12 +192,8 @@ transaction.Finish(); // Mark the transaction as finished and send it to Sentry ]; // Configuration End -export function GettingStartedWithWpf({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithWpf({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithWpf; diff --git a/static/app/gettingStartedDocs/dotnet/xamarin.tsx b/static/app/gettingStartedDocs/dotnet/xamarin.tsx index 567384f4a29370..964c333571ea00 100644 --- a/static/app/gettingStartedDocs/dotnet/xamarin.tsx +++ b/static/app/gettingStartedDocs/dotnet/xamarin.tsx @@ -9,10 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -25,22 +24,12 @@ export const steps = ({ configurations: [ { language: 'shell', - partialLoading: sourcePackageRegistries?.isLoading, code: ` # For Xamarin.Forms -Install-Package Sentry.Xamarin.Forms -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.xamarin-forms']?.version ?? - '1.5.2' - } +Install-Package Sentry.Xamarin.Forms -Version 1.5.2 # If you are not using Xamarin.Forms, but only Xamarin: -Install-Package Sentry.Xamarin -Version ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.xamarin']?.version ?? '1.5.2' - } +Install-Package Sentry.Xamarin -Version 1.5.2 `, }, ], @@ -250,12 +239,8 @@ transaction.Finish(); // Mark the transaction as finished and send it to Sentry ]; // Configuration End -export function GettingStartedWithXamarin({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithXamarin({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithXamarin; diff --git a/static/app/gettingStartedDocs/elixir/elixir.tsx b/static/app/gettingStartedDocs/elixir/elixir.tsx index 9909e9ba3800ae..126c913d20700c 100644 --- a/static/app/gettingStartedDocs/elixir/elixir.tsx +++ b/static/app/gettingStartedDocs/elixir/elixir.tsx @@ -9,7 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/flutter/flutter.tsx b/static/app/gettingStartedDocs/flutter/flutter.tsx index d918228688ebfb..484c5ab83452e7 100644 --- a/static/app/gettingStartedDocs/flutter/flutter.tsx +++ b/static/app/gettingStartedDocs/flutter/flutter.tsx @@ -7,10 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -26,14 +25,9 @@ export const steps = ({ configurations: [ { language: 'yml', - partialLoading: sourcePackageRegistries?.isLoading, code: ` dependencies: - sentry_flutter: ^${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dart.flutter']?.version ?? '7.8.0' - } + sentry_flutter: ^7.8.0 `, }, ], @@ -245,12 +239,8 @@ Future processOrderBatch(ISentrySpan span) async { ]; // Configuration End -export function GettingStartedWithFlutter({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithFlutter({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithFlutter; diff --git a/static/app/gettingStartedDocs/go/echo.tsx b/static/app/gettingStartedDocs/go/echo.tsx index a3cc8c80549f43..140dd39168c7c7 100644 --- a/static/app/gettingStartedDocs/go/echo.tsx +++ b/static/app/gettingStartedDocs/go/echo.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/fasthttp.tsx b/static/app/gettingStartedDocs/go/fasthttp.tsx index 552bce38f66c26..f86b77edb1e325 100644 --- a/static/app/gettingStartedDocs/go/fasthttp.tsx +++ b/static/app/gettingStartedDocs/go/fasthttp.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/gin.tsx b/static/app/gettingStartedDocs/go/gin.tsx index bade7bcb0b1f90..0e739d76a77599 100644 --- a/static/app/gettingStartedDocs/go/gin.tsx +++ b/static/app/gettingStartedDocs/go/gin.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/go.tsx b/static/app/gettingStartedDocs/go/go.tsx index f8e55ef8dc51f4..ca03c435b8e9bc 100644 --- a/static/app/gettingStartedDocs/go/go.tsx +++ b/static/app/gettingStartedDocs/go/go.tsx @@ -6,7 +6,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/http.tsx b/static/app/gettingStartedDocs/go/http.tsx index 5b27124b7f48da..bfcf188fe3b791 100644 --- a/static/app/gettingStartedDocs/go/http.tsx +++ b/static/app/gettingStartedDocs/go/http.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/iris.tsx b/static/app/gettingStartedDocs/go/iris.tsx index c6cc724b179f74..724a74ade4f19a 100644 --- a/static/app/gettingStartedDocs/go/iris.tsx +++ b/static/app/gettingStartedDocs/go/iris.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/martini.tsx b/static/app/gettingStartedDocs/go/martini.tsx index 9f7c7c3fc5a52e..430815811d9f27 100644 --- a/static/app/gettingStartedDocs/go/martini.tsx +++ b/static/app/gettingStartedDocs/go/martini.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/go/negroni.tsx b/static/app/gettingStartedDocs/go/negroni.tsx index ae002acd00eb36..ff36ad84ab4b4d 100644 --- a/static/app/gettingStartedDocs/go/negroni.tsx +++ b/static/app/gettingStartedDocs/go/negroni.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/ionic/ionic.tsx b/static/app/gettingStartedDocs/ionic/ionic.tsx index a821acb0718384..5a293443d884e1 100644 --- a/static/app/gettingStartedDocs/ionic/ionic.tsx +++ b/static/app/gettingStartedDocs/ionic/ionic.tsx @@ -8,7 +8,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/java/java.tsx b/static/app/gettingStartedDocs/java/java.tsx index 360e6db16276ce..4ea52b022049de 100644 --- a/static/app/gettingStartedDocs/java/java.tsx +++ b/static/app/gettingStartedDocs/java/java.tsx @@ -21,10 +21,9 @@ const introduction = ( export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t('Install the SDK via Gradle, Maven, or SBT:'), @@ -34,7 +33,6 @@ export const steps = ({ configurations: [ { language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, description: (

{tct('For Gradle, add to your [code:build.gradle] file:', { @@ -50,17 +48,12 @@ repositories { // Add Sentry's SDK as a dependency. dependencies { - implementation 'io.sentry:sentry:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java']?.version ?? '6.27.0' - }' + implementation 'io.sentry:sentry:6.27.0' } `, }, { language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Gradle plugin.' ), @@ -72,12 +65,7 @@ buildscript { } plugins { - id "io.sentry.jvm.gradle" version "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.android.gradle-plugin']?.version ?? - '3.11.1' - }" + id "io.sentry.jvm.gradle" version "3.11.1" } sentry { @@ -99,7 +87,6 @@ sentry { configurations: [ { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: (

{tct('For Maven, add to your [code:pom.xml] file:', {code: })} @@ -109,17 +96,12 @@ sentry { io.sentry sentry - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java']?.version ?? '6.27.0' - } + 6.27.0 `, }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Maven plugin.' ), @@ -129,11 +111,7 @@ sentry { io.sentry sentry-maven-plugin - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.mavenplugin']?.version ?? '0.0.3' - } + 0.0.3 true @@ -176,12 +154,7 @@ sentry { { description:

{tct('For [strong:SBT]:', {strong: })}

, language: 'scala', - partialLoading: sourcePackageRegistries?.isLoading, - code: `libraryDependencies += "io.sentry" % "sentry" % "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java']?.version ?? '6.27.0' - }"`, + code: `libraryDependencies += "io.sentry" % "sentry" % "6.27.0"`, }, ], }, @@ -303,18 +276,8 @@ transaction.finish(); ]; // Configuration End -export function GettingStartedWithJava({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithJava({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithJava; diff --git a/static/app/gettingStartedDocs/java/log4j2.tsx b/static/app/gettingStartedDocs/java/log4j2.tsx index a34e47ca4de5d5..12ec2ee1062b68 100644 --- a/static/app/gettingStartedDocs/java/log4j2.tsx +++ b/static/app/gettingStartedDocs/java/log4j2.tsx @@ -24,10 +24,9 @@ const introduction = ( export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t( @@ -39,22 +38,16 @@ export const steps = ({ configurations: [ { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, code: ` io.sentry sentry-log4j2 - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.log4j2']?.version ?? '6.27.0' - } + 6.27.0 `, }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Maven plugin.' ), @@ -64,11 +57,7 @@ export const steps = ({ io.sentry sentry-maven-plugin - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.mavenplugin']?.version ?? '0.0.3' - } + 0.0.3 true @@ -110,13 +99,7 @@ export const steps = ({ configurations: [ { language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, - code: `implementation 'io.sentry:sentry-log4j2:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.log4j2']?.version ?? - '6.27.0' - }'`, + code: "implementation 'io.sentry:sentry-log4j2:6.27.0'", }, { description: t( @@ -131,12 +114,7 @@ buildscript { } plugins { - id "io.sentry.jvm.gradle" version "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.android.gradle-plugin']?.version ?? - '3.11.1' - }" + id "io.sentry.jvm.gradle" version "3.11.1" } sentry { @@ -290,18 +268,8 @@ try { ]; // Configuration End -export function GettingStartedWithLog4j2({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithLog4j2({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithLog4j2; diff --git a/static/app/gettingStartedDocs/java/logback.tsx b/static/app/gettingStartedDocs/java/logback.tsx index 93ac2e1dd78983..cbf6ab2711416f 100644 --- a/static/app/gettingStartedDocs/java/logback.tsx +++ b/static/app/gettingStartedDocs/java/logback.tsx @@ -22,10 +22,9 @@ const introduction = ( export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t( @@ -37,22 +36,16 @@ export const steps = ({ configurations: [ { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, code: ` io.sentry sentry-logback - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.logback']?.version ?? '6.27.0' - } + 6.27.0 `, }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Maven plugin.' ), @@ -62,11 +55,7 @@ export const steps = ({ io.sentry sentry-maven-plugin - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.mavenplugin']?.version ?? '0.0.3' - } + 0.0.3 true @@ -108,20 +97,13 @@ export const steps = ({ configurations: [ { language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, - code: `implementation 'io.sentry:sentry-logback:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.logback']?.version ?? - '6.27.0' - }'`, + code: "implementation 'io.sentry:sentry-logback:6.27.0'", }, { description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Maven plugin.' ), language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, code: ` buildscript { repositories { @@ -130,12 +112,7 @@ buildscript { } plugins { - id "io.sentry.jvm.gradle" version "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.android.gradle-plugin']?.version ?? - '3.11.1' - }" + id "io.sentry.jvm.gradle" version "3.11.1" } sentry { @@ -297,18 +274,8 @@ try { ]; // Configuration End -export function GettingStartedWithLogBack({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithLogBack({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithLogBack; diff --git a/static/app/gettingStartedDocs/java/spring-boot.tsx b/static/app/gettingStartedDocs/java/spring-boot.tsx index dfbbd13da47402..716b919563e486 100644 --- a/static/app/gettingStartedDocs/java/spring-boot.tsx +++ b/static/app/gettingStartedDocs/java/spring-boot.tsx @@ -29,10 +29,9 @@ const introduction = ( export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t('Install using either Maven or Gradle:'), @@ -42,34 +41,23 @@ export const steps = ({ configurations: [ { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: {t('Spring Boot 2')}, code: ` io.sentry sentry-spring-boot-starter - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring-boot']?.version ?? '6.27.0' - } + 6.27.0 `, }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: {t('Spring Boot 3')}, code: ` io.sentry sentry-spring-boot-starter-jakarta - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring-boot.jakarta']?.version ?? - '6.27.0' - } + 6.27.0 `, }, @@ -81,24 +69,12 @@ export const steps = ({ { language: 'properties', description: {t('Spring Boot 2')}, - partialLoading: sourcePackageRegistries?.isLoading, - code: `implementation 'io.sentry:sentry-spring-boot-starter:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring-boot']?.version ?? - '6.27.0' - }'`, + code: "implementation 'io.sentry:sentry-spring-boot-starter:6.27.0'", }, { language: 'properties', - partialLoading: sourcePackageRegistries?.isLoading, description: {t('Spring Boot 3')}, - code: `implementation 'io.sentry:sentry-spring-boot-starter-jakarta:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring-boot.jakarta'] - ?.version ?? '6.27.0' - }'`, + code: "implementation 'io.sentry:sentry-spring-boot-starter-jakarta:6.27.0'", }, ], }, @@ -160,11 +136,7 @@ sentry: io.sentry sentry-logback - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.logback']?.version ?? '6.27.0' - } + 6.27.0 `, }, @@ -179,11 +151,7 @@ sentry: io.sentry sentry-maven-plugin - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.mavenplugin']?.version ?? '0.0.3' - } + 0.0.3 true @@ -225,13 +193,7 @@ sentry: configurations: [ { language: 'properties', - partialLoading: sourcePackageRegistries?.isLoading, - code: `implementation 'io.sentry:sentry-logback:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.logback']?.version ?? - '6.27.0' - }'`, + code: "implementation 'io.sentry:sentry-logback:6.27.0'", }, { language: 'javascript', // TODO: This shouldn't be javascript but because of better formatting we use it for now @@ -246,12 +208,7 @@ buildscript { } plugins { - id "io.sentry.jvm.gradle" version "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.android.gradle-plugin']?.version ?? - '3.11.1' - }" + id "io.sentry.jvm.gradle" version "3.11.1" } sentry { diff --git a/static/app/gettingStartedDocs/java/spring.tsx b/static/app/gettingStartedDocs/java/spring.tsx index dcf16d23944b72..d2273f41f82408 100644 --- a/static/app/gettingStartedDocs/java/spring.tsx +++ b/static/app/gettingStartedDocs/java/spring.tsx @@ -28,10 +28,9 @@ const introduction = ( export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t( @@ -43,33 +42,23 @@ export const steps = ({ configurations: [ { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: {t('Spring 5')}, code: ` io.sentry sentry-spring - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring']?.version ?? '6.27.0' - } + 6.27.0 `, }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: {t('Spring 6')}, code: ` io.sentry sentry-spring-jakarta - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring.jakarta']?.version ?? '6.27.0' - } + 6.27.0 `, }, @@ -166,7 +155,6 @@ import org.springframework.core.Ordered configurations: [ { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Maven plugin.' ), @@ -176,11 +164,7 @@ import org.springframework.core.Ordered io.sentry sentry-maven-plugin - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.mavenplugin']?.version ?? '0.0.3' - } + 0.0.3 true @@ -222,23 +206,12 @@ import org.springframework.core.Ordered { description: {t('Spring 5')}, language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, - code: `implementation 'io.sentry:sentry-spring:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring']?.version ?? - '6.27.0' - }'`, + code: `implementation 'io.sentry:sentry-spring:6.27.0'`, }, { description: {t('Spring 6')}, language: 'groovy', - code: `implementation 'io.sentry:sentry-spring-jakarta:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.spring.jakarta'] - ?.version ?? '6.27.0' - }'`, + code: `implementation 'io.sentry:sentry-spring-jakarta:6.27.0'`, }, ], }, @@ -299,7 +272,6 @@ try { configurations: [ { language: 'groovy', - partialLoading: sourcePackageRegistries?.isLoading, description: t( 'To upload your source code to Sentry so it can be shown in stack traces, use our Gradle plugin.' ), @@ -311,12 +283,7 @@ repositories { } plugins { -id "io.sentry.jvm.gradle" version "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java.android.gradle-plugin'] - ?.version ?? '3.11.1' - }" +id "io.sentry.jvm.gradle" version "3.11.1" } sentry { @@ -367,18 +334,8 @@ authToken = "your-sentry-auth-token" ]; // Configuration End -export function GettingStartedWithSpring({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithSpring({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithSpring; diff --git a/static/app/gettingStartedDocs/kotlin/kotlin.tsx b/static/app/gettingStartedDocs/kotlin/kotlin.tsx index ee13cf141fc342..abf6b8fd0edd2e 100644 --- a/static/app/gettingStartedDocs/kotlin/kotlin.tsx +++ b/static/app/gettingStartedDocs/kotlin/kotlin.tsx @@ -26,10 +26,9 @@ const introduction = ( export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: t('Install the SDK via Gradle or Maven:'), @@ -44,7 +43,6 @@ export const steps = ({ })}

), - partialLoading: sourcePackageRegistries?.isLoading, code: ` // Make sure mavenCentral is there. repositories { @@ -52,17 +50,12 @@ repositories { } dependencies { - implementation 'io.sentry:sentry:${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java']?.version ?? '4.0.0' - }' + implementation 'io.sentry:sentry:{{@inject packages.version('sentry.java', '4.0.0') }}' } `, }, { language: 'xml', - partialLoading: sourcePackageRegistries?.isLoading, description: (

{tct('For [strong:Maven], add to your [code:pom.xml] file:', { @@ -75,11 +68,7 @@ dependencies { io.sentry sentry - ${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.java']?.version ?? '6.25.0' - } + 6.25.0 `, }, @@ -186,18 +175,8 @@ throw e ]; // Configuration End -export function GettingStartedWithKotlin({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ( - - ); +export function GettingStartedWithKotlin({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithKotlin; diff --git a/static/app/gettingStartedDocs/minidump/minidump.tsx b/static/app/gettingStartedDocs/minidump/minidump.tsx index 976f1847cfd3a1..f17f6f877338cd 100644 --- a/static/app/gettingStartedDocs/minidump/minidump.tsx +++ b/static/app/gettingStartedDocs/minidump/minidump.tsx @@ -10,7 +10,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { title: t('Creating and Uploading Minidumps'), description: ( diff --git a/static/app/gettingStartedDocs/native/native-qt.tsx b/static/app/gettingStartedDocs/native/native-qt.tsx index 0cc964de8d79d4..3ed24a76068f5a 100644 --- a/static/app/gettingStartedDocs/native/native-qt.tsx +++ b/static/app/gettingStartedDocs/native/native-qt.tsx @@ -9,7 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/native/native.tsx b/static/app/gettingStartedDocs/native/native.tsx index 3f1be795fd3423..62422470ded7e1 100644 --- a/static/app/gettingStartedDocs/native/native.tsx +++ b/static/app/gettingStartedDocs/native/native.tsx @@ -9,7 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/php/laravel.tsx b/static/app/gettingStartedDocs/php/laravel.tsx index 667b1a66f7b8b9..135856a11394f0 100644 --- a/static/app/gettingStartedDocs/php/laravel.tsx +++ b/static/app/gettingStartedDocs/php/laravel.tsx @@ -25,7 +25,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, configurations: [ diff --git a/static/app/gettingStartedDocs/php/php.tsx b/static/app/gettingStartedDocs/php/php.tsx index db838002c3a0fd..a0e430f050c098 100644 --- a/static/app/gettingStartedDocs/php/php.tsx +++ b/static/app/gettingStartedDocs/php/php.tsx @@ -7,7 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/php/symfony.tsx b/static/app/gettingStartedDocs/php/symfony.tsx index 23cfae05b7dac4..512490ef56ed01 100644 --- a/static/app/gettingStartedDocs/php/symfony.tsx +++ b/static/app/gettingStartedDocs/php/symfony.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, configurations: [ diff --git a/static/app/gettingStartedDocs/python/aiohttp.tsx b/static/app/gettingStartedDocs/python/aiohttp.tsx index acea5ca5c2cf7f..63ffc829fa01b2 100644 --- a/static/app/gettingStartedDocs/python/aiohttp.tsx +++ b/static/app/gettingStartedDocs/python/aiohttp.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/asgi.tsx b/static/app/gettingStartedDocs/python/asgi.tsx index d4449607d68413..182a0311216359 100644 --- a/static/app/gettingStartedDocs/python/asgi.tsx +++ b/static/app/gettingStartedDocs/python/asgi.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.CONFIGURE, description: ( diff --git a/static/app/gettingStartedDocs/python/awslambda.tsx b/static/app/gettingStartedDocs/python/awslambda.tsx index f2563efc656390..14773afe92eeb5 100644 --- a/static/app/gettingStartedDocs/python/awslambda.tsx +++ b/static/app/gettingStartedDocs/python/awslambda.tsx @@ -25,7 +25,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/bottle.tsx b/static/app/gettingStartedDocs/python/bottle.tsx index bab134199e265e..7ee4a4a08fd902 100644 --- a/static/app/gettingStartedDocs/python/bottle.tsx +++ b/static/app/gettingStartedDocs/python/bottle.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/celery.tsx b/static/app/gettingStartedDocs/python/celery.tsx index 53ebe57dea3e0a..5648d294157d60 100644 --- a/static/app/gettingStartedDocs/python/celery.tsx +++ b/static/app/gettingStartedDocs/python/celery.tsx @@ -17,7 +17,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.CONFIGURE, description: ( diff --git a/static/app/gettingStartedDocs/python/chalice.tsx b/static/app/gettingStartedDocs/python/chalice.tsx index 24c1c97a6ec997..dca8949a2c0846 100644 --- a/static/app/gettingStartedDocs/python/chalice.tsx +++ b/static/app/gettingStartedDocs/python/chalice.tsx @@ -7,7 +7,9 @@ import {tct} from 'sentry/locale'; export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/falcon.tsx b/static/app/gettingStartedDocs/python/falcon.tsx index e3fa713c34eebd..4b2b913ca8be17 100644 --- a/static/app/gettingStartedDocs/python/falcon.tsx +++ b/static/app/gettingStartedDocs/python/falcon.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/fastapi.tsx b/static/app/gettingStartedDocs/python/fastapi.tsx index c8a8c3c7f0af0f..965bc32ba58a0b 100644 --- a/static/app/gettingStartedDocs/python/fastapi.tsx +++ b/static/app/gettingStartedDocs/python/fastapi.tsx @@ -15,7 +15,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/flask.tsx b/static/app/gettingStartedDocs/python/flask.tsx index 83ad6ba926c975..339986c359adca 100644 --- a/static/app/gettingStartedDocs/python/flask.tsx +++ b/static/app/gettingStartedDocs/python/flask.tsx @@ -7,7 +7,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/gcpfunctions.tsx b/static/app/gettingStartedDocs/python/gcpfunctions.tsx index 31a165a0698c12..fc0a73a466cc84 100644 --- a/static/app/gettingStartedDocs/python/gcpfunctions.tsx +++ b/static/app/gettingStartedDocs/python/gcpfunctions.tsx @@ -12,7 +12,9 @@ import {space} from 'sentry/styles/space'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/mongo.tsx b/static/app/gettingStartedDocs/python/mongo.tsx index 30057b6ea7b36d..93cdd46182d8bd 100644 --- a/static/app/gettingStartedDocs/python/mongo.tsx +++ b/static/app/gettingStartedDocs/python/mongo.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/pylons.tsx b/static/app/gettingStartedDocs/python/pylons.tsx index a775da153d8ede..394e3bb815a5f4 100644 --- a/static/app/gettingStartedDocs/python/pylons.tsx +++ b/static/app/gettingStartedDocs/python/pylons.tsx @@ -6,7 +6,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/pyramid.tsx b/static/app/gettingStartedDocs/python/pyramid.tsx index 7fb8994f8d8491..71d389a4cbfe0f 100644 --- a/static/app/gettingStartedDocs/python/pyramid.tsx +++ b/static/app/gettingStartedDocs/python/pyramid.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description:

{tct('Install [code:sentry-sdk] from PyPI:', {code: })}

, diff --git a/static/app/gettingStartedDocs/python/python.tsx b/static/app/gettingStartedDocs/python/python.tsx index ddc3e231349933..63e6db6332e1a7 100644 --- a/static/app/gettingStartedDocs/python/python.tsx +++ b/static/app/gettingStartedDocs/python/python.tsx @@ -6,7 +6,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/quart.tsx b/static/app/gettingStartedDocs/python/quart.tsx index 9295db403c08da..d5408f0d2b47d0 100644 --- a/static/app/gettingStartedDocs/python/quart.tsx +++ b/static/app/gettingStartedDocs/python/quart.tsx @@ -23,7 +23,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description:

{tct('Install [code:sentry-sdk] from PyPI:', {code: })}

, diff --git a/static/app/gettingStartedDocs/python/rq.tsx b/static/app/gettingStartedDocs/python/rq.tsx index 53beac47fbf502..3075e4f9448b1e 100644 --- a/static/app/gettingStartedDocs/python/rq.tsx +++ b/static/app/gettingStartedDocs/python/rq.tsx @@ -15,7 +15,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.CONFIGURE, description: ( diff --git a/static/app/gettingStartedDocs/python/sanic.tsx b/static/app/gettingStartedDocs/python/sanic.tsx index 632b287b39442a..c6ae52492be394 100644 --- a/static/app/gettingStartedDocs/python/sanic.tsx +++ b/static/app/gettingStartedDocs/python/sanic.tsx @@ -41,7 +41,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description:

{tct('Install [code:sentry-sdk] from PyPI:', {code: })}

, diff --git a/static/app/gettingStartedDocs/python/serverless.tsx b/static/app/gettingStartedDocs/python/serverless.tsx index e8ee834185a065..8fbe79a6c057cf 100644 --- a/static/app/gettingStartedDocs/python/serverless.tsx +++ b/static/app/gettingStartedDocs/python/serverless.tsx @@ -14,7 +14,9 @@ import {t, tct} from 'sentry/locale'; export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/starlette.tsx b/static/app/gettingStartedDocs/python/starlette.tsx index fbcfc06f7cee78..857b250c4a325a 100644 --- a/static/app/gettingStartedDocs/python/starlette.tsx +++ b/static/app/gettingStartedDocs/python/starlette.tsx @@ -13,7 +13,9 @@ const introduction = tct( ); export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/python/tornado.tsx b/static/app/gettingStartedDocs/python/tornado.tsx index 3c8fa7779bce9d..423d85a5d98d80 100644 --- a/static/app/gettingStartedDocs/python/tornado.tsx +++ b/static/app/gettingStartedDocs/python/tornado.tsx @@ -18,7 +18,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description:

{tct('Install [code:sentry-sdk] from PyPI:', {code: })}

, diff --git a/static/app/gettingStartedDocs/python/tryton.tsx b/static/app/gettingStartedDocs/python/tryton.tsx index b090a14bdb4b86..27853d836e9963 100644 --- a/static/app/gettingStartedDocs/python/tryton.tsx +++ b/static/app/gettingStartedDocs/python/tryton.tsx @@ -15,7 +15,9 @@ const introduction = ( export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.CONFIGURE, description: ( diff --git a/static/app/gettingStartedDocs/python/wsgi.tsx b/static/app/gettingStartedDocs/python/wsgi.tsx index 7fe3b4a7f000c4..3cb90fc32f21d4 100644 --- a/static/app/gettingStartedDocs/python/wsgi.tsx +++ b/static/app/gettingStartedDocs/python/wsgi.tsx @@ -9,7 +9,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/react-native/react-native.tsx b/static/app/gettingStartedDocs/react-native/react-native.tsx index da2983fd845f77..7a01a14c5ce7c4 100644 --- a/static/app/gettingStartedDocs/react-native/react-native.tsx +++ b/static/app/gettingStartedDocs/react-native/react-native.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/ruby/rack.tsx b/static/app/gettingStartedDocs/ruby/rack.tsx index b6b1e53fd1a82e..eaa7d72cea2bfc 100644 --- a/static/app/gettingStartedDocs/ruby/rack.tsx +++ b/static/app/gettingStartedDocs/ruby/rack.tsx @@ -6,7 +6,9 @@ import {tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/ruby/rails.tsx b/static/app/gettingStartedDocs/ruby/rails.tsx index 99fa49bb758923..896b402b7fd74a 100644 --- a/static/app/gettingStartedDocs/ruby/rails.tsx +++ b/static/app/gettingStartedDocs/ruby/rails.tsx @@ -14,7 +14,9 @@ const introduction = ( ); export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/ruby/ruby.tsx b/static/app/gettingStartedDocs/ruby/ruby.tsx index ad028f6beb5dfe..ca47af80ab46b3 100644 --- a/static/app/gettingStartedDocs/ruby/ruby.tsx +++ b/static/app/gettingStartedDocs/ruby/ruby.tsx @@ -6,7 +6,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/gettingStartedDocs/rust/rust.tsx b/static/app/gettingStartedDocs/rust/rust.tsx index d68643da4d5400..006d344539bf26 100644 --- a/static/app/gettingStartedDocs/rust/rust.tsx +++ b/static/app/gettingStartedDocs/rust/rust.tsx @@ -6,10 +6,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -23,14 +22,9 @@ export const steps = ({ configurations: [ { language: 'toml', - partialLoading: sourcePackageRegistries?.isLoading, code: ` [dependencies] -sentry = "${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.rust'] ?? '0.31.5' - }" +sentry = "0.31.5" `, }, ], @@ -82,12 +76,8 @@ fn main() { ]; // Configuration End -export function GettingStartedWithRust({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithRust({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithRust; diff --git a/static/app/gettingStartedDocs/unity/unity.tsx b/static/app/gettingStartedDocs/unity/unity.tsx index f04a9376322c2c..ed45d80806e485 100644 --- a/static/app/gettingStartedDocs/unity/unity.tsx +++ b/static/app/gettingStartedDocs/unity/unity.tsx @@ -11,10 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, - sourcePackageRegistries, -}: Partial< - Pick -> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( @@ -32,12 +31,7 @@ export const steps = ({ configurations: [ { language: 'bash', - partialLoading: sourcePackageRegistries?.isLoading, - code: `https://github.com/getsentry/unity.git#${ - sourcePackageRegistries?.isLoading - ? t('\u2026loading') - : sourcePackageRegistries?.data?.['sentry.dotnet.unity']?.version ?? '1.5.0' - }`, + code: 'https://github.com/getsentry/unity.git#1.5.0', }, ], additionalInfo: ( @@ -126,12 +120,8 @@ SentrySdk.CaptureMessage("Test event"); ]; // Configuration End -export function GettingStartedWithUnity({ - dsn, - sourcePackageRegistries, - ...props -}: ModuleProps) { - return ; +export function GettingStartedWithUnity({dsn, ...props}: ModuleProps) { + return ; } export default GettingStartedWithUnity; diff --git a/static/app/gettingStartedDocs/unreal/unreal.tsx b/static/app/gettingStartedDocs/unreal/unreal.tsx index 474068b6cf96a3..212bf731b48f38 100644 --- a/static/app/gettingStartedDocs/unreal/unreal.tsx +++ b/static/app/gettingStartedDocs/unreal/unreal.tsx @@ -11,7 +11,9 @@ import {t, tct} from 'sentry/locale'; // Configuration Start export const steps = ({ dsn, -}: Partial> = {}): LayoutProps['steps'] => [ +}: { + dsn?: string; +} = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: ( diff --git a/static/app/utils/queryClient.tsx b/static/app/utils/queryClient.tsx index 20a0e34aa11255..0c88b80e1d0372 100644 --- a/static/app/utils/queryClient.tsx +++ b/static/app/utils/queryClient.tsx @@ -1,7 +1,7 @@ import * as reactQuery from '@tanstack/react-query'; import {QueryClientConfig} from '@tanstack/react-query'; -import {ApiResult, Client, ResponseMeta} from 'sentry/api'; +import {ApiResult, ResponseMeta} from 'sentry/api'; import RequestError from 'sentry/utils/requestError/requestError'; import useApi from 'sentry/utils/useApi'; @@ -81,14 +81,7 @@ type UseApiQueryResult = reactQuery.UseQueryResult */ function useApiQuery( queryKey: ApiQueryKey, - options: UseApiQueryOptions, - /** - * An existing API client may be provided. - * - * This is a continent way to re-use clients and still inherit the - * persistInFlight configuration. - */ - providedApi?: Client + options: UseApiQueryOptions ): UseApiQueryResult { const api = useApi({ // XXX: We need to set persistInFlight to disable query cancellation on @@ -105,7 +98,6 @@ function useApiQuery( // // [0]: https://tanstack.com/query/v4/docs/guides/query-cancellation#default-behavior persistInFlight: true, - api: providedApi, }); const [path, endpointOptions] = queryKey; diff --git a/static/app/views/onboarding/onboarding.spec.tsx b/static/app/views/onboarding/onboarding.spec.tsx index 9cea1f977ac2d3..ca13169f3454d1 100644 --- a/static/app/views/onboarding/onboarding.spec.tsx +++ b/static/app/views/onboarding/onboarding.spec.tsx @@ -85,11 +85,6 @@ describe('Onboarding', function () { }, }); - MockApiClient.addMockResponse({ - url: 'https://release-registry.services.sentry.io/sdks', - body: {}, - }); - MockApiClient.addMockResponse({ url: `/projects/${organization.slug}/${nextJsProject.slug}/docs/javascript-nextjs-with-error-monitoring/`, body: null, @@ -175,11 +170,6 @@ describe('Onboarding', function () { }, }); - MockApiClient.addMockResponse({ - url: 'https://release-registry.services.sentry.io/sdks', - body: {}, - }); - MockApiClient.addMockResponse({ url: `/projects/org-slug/${reactProject.slug}/`, body: [reactProject], @@ -270,11 +260,6 @@ describe('Onboarding', function () { }, }); - MockApiClient.addMockResponse({ - url: 'https://release-registry.services.sentry.io/sdks', - body: {}, - }); - MockApiClient.addMockResponse({ url: `/projects/org-slug/${reactProject.slug}/`, body: [reactProject], diff --git a/static/app/views/onboarding/setupDocs.spec.tsx b/static/app/views/onboarding/setupDocs.spec.tsx index 86d4369f3eabe9..7cc01ffac444d3 100644 --- a/static/app/views/onboarding/setupDocs.spec.tsx +++ b/static/app/views/onboarding/setupDocs.spec.tsx @@ -31,20 +31,6 @@ function renderMockRequests({ body: [], }); - MockApiClient.addMockResponse({ - url: 'https://release-registry.services.sentry.io/sdks', - body: { - 'sentry.java': { - canonical: 'maven:io.sentry:sentry', - main_docs_url: 'https://docs.sentry.io/platforms/java', - name: 'io.sentry:sentry', - package_url: 'https://search.maven.org/artifact/io.sentry/sentry', - repo_url: 'https://github.com/getsentry/sentry-java', - version: '6.28.0', - }, - }, - }); - if (project.slug !== 'javascript-react') { MockApiClient.addMockResponse({ url: `/projects/${orgSlug}/${project.slug}/docs/${project.platform}/`, @@ -102,48 +88,6 @@ describe('Onboarding Setup Docs', function () { ).not.toBeInTheDocument(); }); - it('renders SDK version from the sentry release registry', async function () { - const {router, route, routerContext, organization, project} = initializeOrg({ - projects: [ - { - ...initializeOrg().project, - slug: 'java', - platform: 'java', - }, - ], - }); - - ProjectsStore.init(); - ProjectsStore.loadInitialData([project]); - - renderMockRequests({project, orgSlug: organization.slug}); - - render( - - {}} - stepIndex={2} - router={router} - route={route} - location={router.location} - genSkipOnboardingLink={() => ''} - orgId={organization.slug} - search="" - recentCreatedProject={project} - /> - , - { - context: routerContext, - organization, - } - ); - - expect( - await screen.findByText(/implementation 'io.sentry:sentry:6.28.0'/) - ).toBeInTheDocument(); - }); - describe('renders Product Selection', function () { it('all products checked', async function () { const {router, route, routerContext, organization, project} = initializeOrg({