Skip to content

Commit 5425e54

Browse files
authored
fix(feedback): add support for jira cloud instance (janus-idp#1582)
- fixes janus-idp#1543 - feat: add export-dynamic to script for RHDH - todo: update docs to setup dynamic plugin Signed-off-by: Yash Oswal <[email protected]>
1 parent 4f38030 commit 5425e54

File tree

13 files changed

+1246
-116
lines changed

13 files changed

+1246
-116
lines changed

plugins/feedback-backend/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ feedback:
7373
jira:
7474
# Under this object you can define multiple jira hosts
7575
- host: ${JIRA_HOST_URL}
76+
# Add your jira token along with Basic or Bearer type eg: Basic/Bearer <token>
7677
token: ${JIRA_TOKEN}
78+
# (optional) Due to GDPR limitations on jira cloud instances
79+
# set hostType: CLOUD to make api work
80+
# default value is SERVER
81+
hostType: CLOUD
7782

7883
email:
7984
## Email integration uses nodemailer to send emails

plugins/feedback-backend/app-config.janus-idp.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ feedback:
33
jira:
44
# Under this object you can define multiple jira hosts
55
- host: ${JIRA_HOST_URL}
6+
# Add your jira token along with Basic or Bearer type eg: Basic/Bearer <token>
67
token: ${JIRA_TOKEN}
78

9+
# (optional) Due to GDPR limitations on jira cloud instances
10+
# set hostType: CLOUD to make Jira Cloud to work
11+
# default value is SERVER
12+
hostType: CLOUD
13+
814
email:
915
## Email integration uses nodemailer to send emails
1016
host: ${EMAIL_HOST}

plugins/feedback-backend/config.d.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,31 @@
22
* Configuration options for the application.
33
*/
44
export interface Config {
5+
/**
6+
* @visibility frontend
7+
*/
58
feedback?: {
69
integrations: {
710
/**
811
* Configuration options for JIRA integration.
912
* It is an array, which can be used to set up multiple jira servers at the same time.
13+
* @visibility frontend
1014
*/
1115
jira?: Array<{
1216
/**
1317
* The hostname or URL of the JIRA organization.
18+
* @visibility frontend
1419
*/
1520
host: string;
16-
1721
/**
1822
* The access token for authenticating with JIRA.
23+
* @visibility secret
1924
*/
2025
token: string;
26+
/**
27+
* what type of jira instance are you using, CLOUD/SERVER
28+
*/
29+
hostType: string;
2130
}>;
2231

2332
/**
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"name": "@janus-idp/backstage-plugin-feedback-backend-dynamic",
3+
"version": "1.2.0",
4+
"main": "dist/index.cjs.js",
5+
"types": "dist/index.d.ts",
6+
"license": "Apache-2.0",
7+
"publishConfig": {
8+
"access": "public",
9+
"main": "dist/index.cjs.js",
10+
"types": "dist/index.d.ts"
11+
},
12+
"backstage": {
13+
"role": "backend-plugin"
14+
},
15+
"exports": {
16+
".": {
17+
"require": "./dist/index.cjs.js",
18+
"default": "./dist/index.cjs.js"
19+
},
20+
"./alpha": {
21+
"require": "./dist/alpha.cjs.js",
22+
"default": "./dist/alpha.cjs.js"
23+
},
24+
"./package.json": "./package.json"
25+
},
26+
"scripts": {},
27+
"dependencies": {
28+
"@types/express": "*",
29+
"axios": "^1.6.4",
30+
"express": "^4.17.1",
31+
"express-promise-router": "^4.1.0",
32+
"knex": "^3.1.0",
33+
"node-fetch": "^2.6.7",
34+
"nodemailer": "^6.9.8",
35+
"short-uuid": "^4.2.2",
36+
"winston": "^3.2.1",
37+
"yn": "^4.0.0"
38+
},
39+
"devDependencies": {},
40+
"files": [
41+
"dist",
42+
"config.d.ts",
43+
"app-config.janus-idp.yaml",
44+
"migrations/**/*.{js,d.ts}",
45+
"dist-dynamic",
46+
"alpha"
47+
],
48+
"configSchema": "config.d.ts",
49+
"repository": "github:janus-idp/backstage-plugins",
50+
"keywords": [
51+
"backstage",
52+
"plugin"
53+
],
54+
"homepage": "https://janus-idp.io/",
55+
"bugs": "https://github.com/janus-idp/backstage-plugins/issues",
56+
"bundleDependencies": true,
57+
"peerDependencies": {
58+
"@backstage/backend-common": "^0.21.6",
59+
"@backstage/backend-plugin-api": "^0.6.16",
60+
"@backstage/catalog-client": "^1.6.3",
61+
"@backstage/catalog-model": "^1.4.5",
62+
"@backstage/config": "^1.2.0"
63+
},
64+
"overrides": {
65+
"@aws-sdk/util-utf8-browser": {
66+
"@smithy/util-utf8": "^2.0.0"
67+
}
68+
},
69+
"resolutions": {
70+
"@aws-sdk/util-utf8-browser": "npm:@smithy/util-utf8@~2"
71+
}
72+
}

0 commit comments

Comments
 (0)