From 68a395116f88b88485900394f17ff453c1856cc8 Mon Sep 17 00:00:00 2001 From: mintsweet <0x1304570@gmail.com> Date: Fri, 8 Mar 2024 20:13:39 +1300 Subject: [PATCH] fix: missed plugin opsgenie doc --- config-ui/src/plugins/register/opsgenie/config.tsx | 11 ++++++++--- config-ui/src/release/stable.ts | 5 +++++ config-ui/src/release/v0.21.ts | 5 +++++ 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/config-ui/src/plugins/register/opsgenie/config.tsx b/config-ui/src/plugins/register/opsgenie/config.tsx index 5796abe075e..20ab9b2be3a 100644 --- a/config-ui/src/plugins/register/opsgenie/config.tsx +++ b/config-ui/src/plugins/register/opsgenie/config.tsx @@ -17,6 +17,7 @@ */ import { ExternalLink } from '@/components'; +import { DOC_URL } from '@/release'; import { IPluginConfig } from '@/types'; import Icon from './assets/icon.svg?react'; @@ -28,7 +29,7 @@ export const OpsgenieConfig: IPluginConfig = { icon: ({ color }) => , sort: 9, connection: { - docLink: 'TODO', + docLink: DOC_URL.PLUGIN.OPSGENIE.BASIS, initialValues: { endpoint: 'https://api.opsgenie.com/', }, @@ -44,14 +45,18 @@ export const OpsgenieConfig: IPluginConfig = { { key: 'token', label: 'Opsgenie API Key', - subLabel: Learn how to create a Atlassian Opsgenie personal API Key, + subLabel: ( + + Learn how to create a Atlassian Opsgenie personal API Key + + ), }, 'proxy', { key: 'rateLimitPerHour', subLabel: 'By default, DevLake uses 6,000 requests/hour for data collection for Opsgenie. But you can adjust the collection speed by setting up your desirable rate limit.', - learnMore: 'TODO', + learnMore: DOC_URL.PLUGIN.OPSGENIE.RATE_LIMIT, externalInfo: 'Opsgenie rate limit is based on number of users and domains.', defaultValue: 6000, }, diff --git a/config-ui/src/release/stable.ts b/config-ui/src/release/stable.ts index f31119b4988..51f8c047fa1 100644 --- a/config-ui/src/release/stable.ts +++ b/config-ui/src/release/stable.ts @@ -80,6 +80,11 @@ const URLS = { TRANSFORMATION: 'https://devlake.apache.org/docs/Configuration/Jira#step-3---adding-transformation-rules-optional', }, + OPSGENIE: { + BASIS: 'https://devlake.apache.org/docs/Configuration/Opsgenie', + AUTH_TOKEN: 'https://devlake.apache.org/docs/Configuration/Opsgenie#step-11---authentication', + RATE_LIMIT: 'https://devlake.apache.org/docs/Configuration/Opsgenie#fixed-rate-limit-optional', + }, PAGERDUTY: { BASIS: 'https://devlake.apache.org/docs/Configuration/PagerDuty', RATE_LIMIT: 'https://devlake.apache.org/docs/Configuration/PagerDuty/#custom-rate-limit-optional', diff --git a/config-ui/src/release/v0.21.ts b/config-ui/src/release/v0.21.ts index 3ccb110c50f..2627afa3ba0 100644 --- a/config-ui/src/release/v0.21.ts +++ b/config-ui/src/release/v0.21.ts @@ -81,6 +81,11 @@ const URLS = { TRANSFORMATION: 'https://devlake.apache.org/docs/v0.21/Configuration/Jira#step-3---adding-transformation-rules-optional', }, + OPSGENIE: { + BASIS: 'https://devlake.apache.org/docs/v0.21/Configuration/Opsgenie', + AUTH_TOKEN: 'https://devlake.apache.org/docs/v0.21/Configuration/Opsgenie#step-11---authentication', + RATE_LIMIT: 'https://devlake.apache.org/docs/v0.21/Configuration/Opsgenie#fixed-rate-limit-optional', + }, PAGERDUTY: { BASIS: 'https://devlake.apache.org/docs/v0.21/Configuration/PagerDuty', RATE_LIMIT: 'https://devlake.apache.org/docs/v0.21/Configuration/PagerDuty/#custom-rate-limit-optional',