@backstage-community/plugin-sonarqube 0.19.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +46 -0
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @backstage-community/plugin-sonarqube
|
|
2
2
|
|
|
3
|
+
## 0.20.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6836ad6: new frontend system docs added
|
|
8
|
+
|
|
9
|
+
## 0.20.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 87abf0b: Backstage version bump to v1.44.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [87abf0b]
|
|
18
|
+
- @backstage-community/plugin-sonarqube-react@0.12.0
|
|
19
|
+
|
|
3
20
|
## 0.19.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -108,6 +108,52 @@ spec:
|
|
|
108
108
|
|
|
109
109
|
`YOUR_INSTANCE_NAME/` is optional and will query the default instance if not provided.
|
|
110
110
|
|
|
111
|
+
## New Frontend System
|
|
112
|
+
|
|
113
|
+
### Setup
|
|
114
|
+
|
|
115
|
+
If you're using [feature discovery](https://backstage.io/docs/frontend-system/architecture/app/#feature-discovery),
|
|
116
|
+
the plugin will be automatically discovered and enabled.
|
|
117
|
+
|
|
118
|
+
Otherwise, you can manually enable the plugin by adding it to your app:
|
|
119
|
+
|
|
120
|
+
```tsx
|
|
121
|
+
// packages/app/src/App.tsx
|
|
122
|
+
import sonarqubePlugin from '@backstage-community/plugin-sonarqube/alpha';
|
|
123
|
+
|
|
124
|
+
const app = createApp({
|
|
125
|
+
features: [
|
|
126
|
+
// ...
|
|
127
|
+
sonarqubePlugin,
|
|
128
|
+
],
|
|
129
|
+
});
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Extensions
|
|
133
|
+
|
|
134
|
+
The following extensions are available in the plugin:
|
|
135
|
+
|
|
136
|
+
- `api:sonarqube/sonarqube-api`
|
|
137
|
+
- `entity:sonarqube/entity-sonarqube-card`
|
|
138
|
+
- `entity:sonarqube/sonarqube-related-entities-overview`
|
|
139
|
+
|
|
140
|
+
### Legacy Frontend System
|
|
141
|
+
|
|
142
|
+
When using the legacy frontend system, customize through component props:
|
|
143
|
+
|
|
144
|
+
- **`EntitySonarQubeCard`** - Props: `variant`, `missingAnnotationReadMoreUrl`, `duplicationRatings`
|
|
145
|
+
- **`SonarQubeRelatedEntitiesOverview`** - Props: `relationType`, `entityKind`
|
|
146
|
+
- **`EntitySonarQubeContentPage`** - Props: `title`, `supportTitle`, `missingAnnotationReadMoreUrl`
|
|
147
|
+
|
|
148
|
+
Example:
|
|
149
|
+
|
|
150
|
+
```tsx
|
|
151
|
+
<EntitySonarQubeCard
|
|
152
|
+
variant="gridItem"
|
|
153
|
+
missingAnnotationReadMoreUrl="https://your-docs-url.com"
|
|
154
|
+
/>
|
|
155
|
+
```
|
|
156
|
+
|
|
111
157
|
### Integrating with `EntityPage` (New Frontend System)
|
|
112
158
|
|
|
113
159
|
Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-sonarqube",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -71,14 +71,14 @@
|
|
|
71
71
|
"test": "backstage-cli package test"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@backstage-community/plugin-sonarqube-react": "^0.
|
|
74
|
+
"@backstage-community/plugin-sonarqube-react": "^0.12.0",
|
|
75
75
|
"@backstage/catalog-model": "^1.7.5",
|
|
76
|
-
"@backstage/core-compat-api": "^0.5.
|
|
77
|
-
"@backstage/core-components": "^0.18.
|
|
78
|
-
"@backstage/core-plugin-api": "^1.11.
|
|
79
|
-
"@backstage/frontend-app-api": "^0.13.
|
|
80
|
-
"@backstage/frontend-plugin-api": "^0.12.
|
|
81
|
-
"@backstage/plugin-catalog-react": "^1.21.
|
|
76
|
+
"@backstage/core-compat-api": "^0.5.3",
|
|
77
|
+
"@backstage/core-components": "^0.18.2",
|
|
78
|
+
"@backstage/core-plugin-api": "^1.11.1",
|
|
79
|
+
"@backstage/frontend-app-api": "^0.13.1",
|
|
80
|
+
"@backstage/frontend-plugin-api": "^0.12.1",
|
|
81
|
+
"@backstage/plugin-catalog-react": "^1.21.2",
|
|
82
82
|
"@material-ui/core": "^4.12.2",
|
|
83
83
|
"@material-ui/icons": "^4.9.1",
|
|
84
84
|
"@material-ui/styles": "^4.10.0",
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"react-use": "^17.2.4"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@backstage/cli": "^0.34.
|
|
93
|
-
"@backstage/core-app-api": "^1.19.
|
|
94
|
-
"@backstage/dev-utils": "^1.1.
|
|
95
|
-
"@backstage/frontend-test-utils": "^0.
|
|
96
|
-
"@backstage/test-utils": "^1.7.
|
|
92
|
+
"@backstage/cli": "^0.34.4",
|
|
93
|
+
"@backstage/core-app-api": "^1.19.1",
|
|
94
|
+
"@backstage/dev-utils": "^1.1.15",
|
|
95
|
+
"@backstage/frontend-test-utils": "^0.4.0",
|
|
96
|
+
"@backstage/test-utils": "^1.7.12",
|
|
97
97
|
"@testing-library/dom": "^10.0.0",
|
|
98
98
|
"@testing-library/jest-dom": "^6.0.0",
|
|
99
99
|
"@testing-library/react": "^15.0.0",
|