-> = {}): 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({