forked from AxisCommunications/backstage-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jira-table-filters
- Loading branch information
Showing
25 changed files
with
114 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'app': minor | ||
--- | ||
|
||
Added the JiraUserIssuesViewCard component to the Homepage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@axis-backstage/plugin-jira-dashboard-backend': patch | ||
--- | ||
|
||
Removed deprecated types and fixed the standalone server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@axis-backstage/plugin-readme-backend': patch | ||
--- | ||
|
||
Updated deprecated types and fixed the standalone server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@axis-backstage/plugin-jira-dashboard-backend': patch | ||
--- | ||
|
||
Quote the incoming status string in the JQL. This makes it possible to have strings that contain whitespace. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { createBackend } from '@backstage/backend-defaults'; | ||
|
||
const backend = createBackend(); | ||
backend.add(import('../src')); | ||
backend.start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,33 @@ | ||
import { Config } from '@backstage/config'; | ||
import { RootConfigService } from '@backstage/backend-plugin-api'; | ||
|
||
const JIRA_BASE_URL_CONFIG_PATH = 'jiraDashboard.baseUrl'; | ||
const JIRA_TOKEN_CONFIG_PATH = 'jiraDashboard.token'; | ||
const JIRA_USER_CONFIG_EMAIL_SUFFIX = 'jiraDashboard.userEmailSuffix'; | ||
const JIRA_ANNOTATION = 'jiraDashboard.annotationPrefix'; | ||
|
||
export function resolveJiraBaseUrl(config: Config): string { | ||
export function resolveJiraBaseUrl(config: RootConfigService): string { | ||
try { | ||
return config.getString(JIRA_BASE_URL_CONFIG_PATH); | ||
} catch (error) { | ||
throw new Error(`Invalid Jira baseUrl, ${error}`); | ||
} | ||
} | ||
|
||
export function resolveJiraToken(config: Config): string { | ||
export function resolveJiraToken(config: RootConfigService): string { | ||
try { | ||
return config.getString(JIRA_TOKEN_CONFIG_PATH); | ||
} catch (error) { | ||
throw new Error(`Invalid Jira token, ${error}`); | ||
} | ||
} | ||
|
||
export function resolveUserEmailSuffix(config: Config): string | undefined { | ||
export function resolveUserEmailSuffix( | ||
config: RootConfigService, | ||
): string | undefined { | ||
return config.getOptionalString(JIRA_USER_CONFIG_EMAIL_SUFFIX); | ||
} | ||
|
||
export function resolveAnnotationPrefix(config: Config): string { | ||
export function resolveAnnotationPrefix(config: RootConfigService): string { | ||
const annotationPrefix = config.getOptionalString(JIRA_ANNOTATION); | ||
return annotationPrefix ?? 'jira.com'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.