@backstage/plugin-catalog-backend 1.23.0-next.0 → 1.23.0-next.2
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 +36 -0
- package/alpha/package.json +1 -1
- package/dist/alpha.cjs.js +1 -1
- package/dist/cjs/{CatalogBuilder-sgw5u_c3.cjs.js → CatalogBuilder-D6-74CoP.cjs.js} +5 -2
- package/dist/cjs/CatalogBuilder-D6-74CoP.cjs.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +14 -14
- package/dist/cjs/CatalogBuilder-sgw5u_c3.cjs.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend
|
|
2
2
|
|
|
3
|
+
## 1.23.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/backend-plugin-api@0.6.19-next.2
|
|
9
|
+
- @backstage/backend-common@0.23.0-next.2
|
|
10
|
+
- @backstage/integration@1.12.0-next.0
|
|
11
|
+
- @backstage/plugin-permission-node@0.7.30-next.2
|
|
12
|
+
- @backstage/backend-openapi-utils@0.1.12-next.1
|
|
13
|
+
- @backstage/backend-tasks@0.5.24-next.2
|
|
14
|
+
- @backstage/plugin-catalog-node@1.12.1-next.1
|
|
15
|
+
- @backstage/plugin-events-node@0.3.5-next.1
|
|
16
|
+
- @backstage/plugin-search-backend-module-catalog@0.1.25-next.2
|
|
17
|
+
- @backstage/catalog-client@1.6.5
|
|
18
|
+
- @backstage/catalog-model@1.5.0
|
|
19
|
+
- @backstage/config@1.2.0
|
|
20
|
+
- @backstage/errors@1.2.4
|
|
21
|
+
- @backstage/types@1.1.1
|
|
22
|
+
- @backstage/plugin-catalog-common@1.0.23
|
|
23
|
+
- @backstage/plugin-permission-common@0.7.13
|
|
24
|
+
|
|
25
|
+
## 1.23.0-next.1
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- d779e3b: Added a regex test to check commit hash. If url is from git commit branch ignore the edit url.
|
|
30
|
+
- Updated dependencies
|
|
31
|
+
- @backstage/backend-tasks@0.5.24-next.1
|
|
32
|
+
- @backstage/backend-plugin-api@0.6.19-next.1
|
|
33
|
+
- @backstage/plugin-permission-node@0.7.30-next.1
|
|
34
|
+
- @backstage/backend-common@0.23.0-next.1
|
|
35
|
+
- @backstage/plugin-catalog-node@1.12.1-next.0
|
|
36
|
+
- @backstage/plugin-events-node@0.3.5-next.0
|
|
37
|
+
- @backstage/plugin-search-backend-module-catalog@0.1.25-next.1
|
|
38
|
+
|
|
3
39
|
## 1.23.0-next.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
package/alpha/package.json
CHANGED
package/dist/alpha.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var alpha = require('@backstage/plugin-catalog-common/alpha');
|
|
6
6
|
var pluginPermissionNode = require('@backstage/plugin-permission-node');
|
|
7
|
-
var CatalogBuilder = require('./cjs/CatalogBuilder-
|
|
7
|
+
var CatalogBuilder = require('./cjs/CatalogBuilder-D6-74CoP.cjs.js');
|
|
8
8
|
var backendPluginApi = require('@backstage/backend-plugin-api');
|
|
9
9
|
var pluginEventsNode = require('@backstage/plugin-events-node');
|
|
10
10
|
var alpha$1 = require('@backstage/plugin-catalog-node/alpha');
|
|
@@ -180,6 +180,7 @@ class CodeOwnersProcessor {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
const commitHashRegExp = /\b[0-9a-f]{40,}\b/;
|
|
183
184
|
class AnnotateLocationEntityProcessor {
|
|
184
185
|
constructor(options) {
|
|
185
186
|
this.options = options;
|
|
@@ -195,7 +196,9 @@ class AnnotateLocationEntityProcessor {
|
|
|
195
196
|
if (location.type === "url") {
|
|
196
197
|
const scmIntegration = integrations.byUrl(location.target);
|
|
197
198
|
viewUrl = location.target;
|
|
198
|
-
|
|
199
|
+
if (!commitHashRegExp.test(location.target)) {
|
|
200
|
+
editUrl = scmIntegration?.resolveEditUrl(location.target);
|
|
201
|
+
}
|
|
199
202
|
const sourceUrl = scmIntegration?.resolveUrl({
|
|
200
203
|
url: "./",
|
|
201
204
|
base: location.target
|
|
@@ -7253,4 +7256,4 @@ exports.createCatalogPermissionRule = createCatalogPermissionRule;
|
|
|
7253
7256
|
exports.createRandomProcessingInterval = createRandomProcessingInterval;
|
|
7254
7257
|
exports.parseEntityYaml = parseEntityYaml;
|
|
7255
7258
|
exports.permissionRules = permissionRules;
|
|
7256
|
-
//# sourceMappingURL=CatalogBuilder-
|
|
7259
|
+
//# sourceMappingURL=CatalogBuilder-D6-74CoP.cjs.js.map
|