Browse Source

ref(replays onboarding): add http, negroni, go to allowed backend platforms (#62633)

see also https://github.com/getsentry/sentry/pull/62635, which updates
`platform_categories.py` to add go-negroni
Michelle Zhang 1 year ago
parent
commit
ea01b8198f

+ 4 - 0
static/app/data/platformCategories.tsx

@@ -67,6 +67,7 @@ export const backend: PlatformKey[] = [
   'go-http',
   'go-iris',
   'go-martini',
+  'go-negroni',
   'java',
   'java-appengine',
   'java-log4j',
@@ -306,9 +307,12 @@ export const replayBackendPlatforms: readonly PlatformKey[] = [
   'elixir',
   'go-echo',
   'go-fasthttp',
+  'go',
   'go-gin',
+  'go-http',
   'go-iris',
   'go-martini',
+  'go-negroni',
   'java-spring',
   'java-spring-boot',
   'node',

+ 2 - 0
static/app/gettingStartedDocs/go/go.tsx

@@ -4,6 +4,7 @@ import type {
   DocsParams,
   OnboardingConfig,
 } from 'sentry/components/onboarding/gettingStartedDoc/types';
+import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
 import {t, tct} from 'sentry/locale';
 
 type Params = DocsParams;
@@ -104,6 +105,7 @@ const onboarding: OnboardingConfig = {
 
 const docs: Docs = {
   onboarding,
+  replayOnboardingJsLoader,
 };
 
 export default docs;

+ 2 - 0
static/app/gettingStartedDocs/go/http.tsx

@@ -9,6 +9,7 @@ import type {
   DocsParams,
   OnboardingConfig,
 } from 'sentry/components/onboarding/gettingStartedDoc/types';
+import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
 import {t, tct} from 'sentry/locale';
 
 type Params = DocsParams;
@@ -209,6 +210,7 @@ const onboarding: OnboardingConfig = {
 
 const docs: Docs = {
   onboarding,
+  replayOnboardingJsLoader,
 };
 
 export default docs;

+ 2 - 0
static/app/gettingStartedDocs/go/negroni.tsx

@@ -9,6 +9,7 @@ import type {
   DocsParams,
   OnboardingConfig,
 } from 'sentry/components/onboarding/gettingStartedDoc/types';
+import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
 import {t, tct} from 'sentry/locale';
 
 type Params = DocsParams;
@@ -261,6 +262,7 @@ const onboarding: OnboardingConfig = {
 
 const docs: Docs = {
   onboarding,
+  replayOnboardingJsLoader,
 };
 
 export default docs;

+ 9 - 10
static/app/utils/replays/projectSupportsReplay.spec.tsx

@@ -38,22 +38,21 @@ describe('projectSupportsReplay & projectCanLinkToReplay', () => {
     'php' as PlatformKey,
     'bun' as PlatformKey,
     'elixir' as PlatformKey,
+    'go' as PlatformKey,
   ])('should SUPPORT Backend framework %s', platform => {
     const project = mockProjectFixture(platform);
     expect(projectSupportsReplay(project)).toBeTruthy();
     expect(projectCanLinkToReplay(project)).toBeTruthy();
   });
 
-  it.each([
-    'java' as PlatformKey,
-    'rust' as PlatformKey,
-    'python' as PlatformKey,
-    'go-http' as PlatformKey,
-  ])('should NOT SUPPORT but CAN LINK for Backend framework %s', platform => {
-    const project = mockProjectFixture(platform);
-    expect(projectSupportsReplay(project)).toBeFalsy();
-    expect(projectCanLinkToReplay(project)).toBeTruthy();
-  });
+  it.each(['java' as PlatformKey, 'rust' as PlatformKey, 'python' as PlatformKey])(
+    'should NOT SUPPORT but CAN LINK for Backend framework %s',
+    platform => {
+      const project = mockProjectFixture(platform);
+      expect(projectSupportsReplay(project)).toBeFalsy();
+      expect(projectCanLinkToReplay(project)).toBeTruthy();
+    }
+  );
 
   it.each([
     'apple-macos' as PlatformKey,