@backstage-community/plugin-sonarqube 0.8.7 → 0.8.9
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage-community/plugin-sonarqube
|
|
2
2
|
|
|
3
|
+
## 0.8.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f6e08b0: Updating missingAnnotationReadMoreUrl attribute on documentation
|
|
8
|
+
|
|
9
|
+
## 0.8.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e657f8d: Add default filtering based on required annotation to the new frontend system components
|
|
14
|
+
|
|
3
15
|
## 0.8.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ The "Read more" link that shows in the MissingAnnotationEmptyState is also confi
|
|
|
49
49
|
<EntityAboutCard variant="gridItem" />
|
|
50
50
|
</Grid>
|
|
51
51
|
+ <Grid item md={6}>
|
|
52
|
-
+ <EntitySonarQubeCard variant="gridItem"
|
|
52
|
+
+ <EntitySonarQubeCard variant="gridItem" missingAnnotationReadMoreUrl={MISSING_ANNOTATION_READ_MORE_URL} />
|
|
53
53
|
+ </Grid>
|
|
54
54
|
</Grid>
|
|
55
55
|
);
|
|
@@ -85,7 +85,7 @@ spec:
|
|
|
85
85
|
|
|
86
86
|
Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
Import `sonarQubePlugin` in your `App.tsx` and add it to your app's `features` array:
|
|
89
89
|
|
|
90
90
|
```typescript
|
|
91
91
|
import sonarQubePlugin from '@backstage-community/plugin-sonarqube/alpha';
|
|
@@ -101,28 +101,6 @@ export const app = createApp({
|
|
|
101
101
|
});
|
|
102
102
|
```
|
|
103
103
|
|
|
104
|
-
2. Next, enable your desired extensions in `app-config.yaml`
|
|
105
|
-
|
|
106
|
-
```yaml
|
|
107
|
-
app:
|
|
108
|
-
extensions:
|
|
109
|
-
- entity-content:sonarqube/entity
|
|
110
|
-
- entity-card:sonarqube/card
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
3. Whichever extensions you've enabled should now appear in your entity page.
|
|
114
|
-
|
|
115
|
-
You can also control which [entity kinds](https://backstage.io/docs/features/software-catalog/system-model) the sonarqube card appears on by adding a config underneath the entity-content, like so:
|
|
116
|
-
|
|
117
|
-
```yaml
|
|
118
|
-
# app-config.yaml
|
|
119
|
-
app:
|
|
120
|
-
extensions:
|
|
121
|
-
- entity-content:sonarqube/entity
|
|
122
|
-
config:
|
|
123
|
-
filter: kind:component,system
|
|
124
|
-
```
|
|
125
|
-
|
|
126
104
|
## Links
|
|
127
105
|
|
|
128
106
|
- [Sonarqube Backend](../sonarqube-backend/README.md)
|
package/alpha/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { compatWrapper } from '@backstage/core-compat-api';
|
|
2
2
|
import { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
3
|
+
import { isSonarQubeAvailable } from '@backstage-community/plugin-sonarqube-react';
|
|
3
4
|
import React from 'react';
|
|
4
5
|
|
|
5
6
|
const entitySonarQubeCard = EntityCardBlueprint.make({
|
|
6
7
|
name: "card",
|
|
7
8
|
params: {
|
|
8
|
-
filter:
|
|
9
|
+
filter: isSonarQubeAvailable,
|
|
9
10
|
loader: () => import('../components/SonarQubeCard/index.esm.js').then(
|
|
10
11
|
(m) => compatWrapper(/* @__PURE__ */ React.createElement(m.SonarQubeCard, null))
|
|
11
12
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityCard.esm.js","sources":["../../src/alpha/entityCard.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport React from 'react';\n\n/**\n * @alpha\n */\nexport const entitySonarQubeCard: any = EntityCardBlueprint.make({\n name: 'card',\n params: {\n filter:
|
|
1
|
+
{"version":3,"file":"entityCard.esm.js","sources":["../../src/alpha/entityCard.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { compatWrapper } from '@backstage/core-compat-api';\nimport { EntityCardBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isSonarQubeAvailable } from '@backstage-community/plugin-sonarqube-react';\nimport React from 'react';\n\n/**\n * @alpha\n */\nexport const entitySonarQubeCard: any = EntityCardBlueprint.make({\n name: 'card',\n params: {\n filter: isSonarQubeAvailable,\n loader: () =>\n import('../components/SonarQubeCard').then(m =>\n compatWrapper(<m.SonarQubeCard />),\n ),\n },\n});\n"],"names":[],"mappings":";;;;;AAuBa,MAAA,mBAAA,GAA2B,oBAAoB,IAAK,CAAA;AAAA,EAC/D,IAAM,EAAA,MAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,MAAQ,EAAA,oBAAA;AAAA,IACR,MAAQ,EAAA,MACN,OAAO,0CAA6B,CAAE,CAAA,IAAA;AAAA,MAAK,OACzC,aAAc,iBAAA,KAAA,CAAA,aAAA,CAAC,CAAE,CAAA,aAAA,EAAF,IAAgB,CAAE,CAAA;AAAA,KACnC;AAAA,GACJ;AACF,CAAC;;;;"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
3
|
+
import { isSonarQubeAvailable } from '@backstage-community/plugin-sonarqube-react';
|
|
3
4
|
|
|
4
5
|
const entitySonarQubeContent = EntityContentBlueprint.make({
|
|
5
6
|
name: "entity",
|
|
6
7
|
params: {
|
|
7
8
|
defaultPath: "sonarqube",
|
|
8
9
|
defaultTitle: "SonarQube",
|
|
9
|
-
filter:
|
|
10
|
+
filter: isSonarQubeAvailable,
|
|
10
11
|
loader: () => import('../components/SonarQubeContentPage/index.esm.js').then((m) => /* @__PURE__ */ React.createElement(m.SonarQubeContentPage, null))
|
|
11
12
|
}
|
|
12
13
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\n/**\n * @alpha\n */\nexport const entitySonarQubeContent = EntityContentBlueprint.make({\n name: 'entity',\n params: {\n defaultPath: 'sonarqube',\n defaultTitle: 'SonarQube',\n filter:
|
|
1
|
+
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isSonarQubeAvailable } from '@backstage-community/plugin-sonarqube-react';\n\n/**\n * @alpha\n */\nexport const entitySonarQubeContent = EntityContentBlueprint.make({\n name: 'entity',\n params: {\n defaultPath: 'sonarqube',\n defaultTitle: 'SonarQube',\n filter: isSonarQubeAvailable,\n loader: () =>\n import('../components/SonarQubeContentPage').then(m => (\n <m.SonarQubeContentPage />\n )),\n },\n});\n"],"names":[],"mappings":";;;;AAsBa,MAAA,sBAAA,GAAyB,uBAAuB,IAAK,CAAA;AAAA,EAChE,IAAM,EAAA,QAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,WAAA;AAAA,IACb,YAAc,EAAA,WAAA;AAAA,IACd,MAAQ,EAAA,oBAAA;AAAA,IACR,MAAA,EAAQ,MACN,OAAO,iDAAoC,CAAA,CAAE,IAAK,CAAA,CAAA,CAAA,qBAC/C,KAAA,CAAA,aAAA,CAAA,CAAA,CAAE,oBAAF,EAAA,IAAuB,CACzB,CAAA;AAAA,GACL;AACF,CAAC;;;;"}
|