@backstage/plugin-scaffolder-backend-module-rails 0.4.7 → 0.4.8-next.0

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,47 @@
1
1
  # @backstage/plugin-scaffolder-backend-module-rails
2
2
 
3
+ ## 0.4.8-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - e4c0240445: Added `catalogFilter` field to OwnerPicker and EntityPicker components to support filtering options by any field(s) of an entity.
8
+
9
+ The `allowedKinds` field has been deprecated. Use `catalogFilter` instead. This field allows users to specify a filter on the shape of [EntityFilterQuery](https://github.com/backstage/backstage/blob/774c42003782121d3d6b2aa5f2865d53370c160e/packages/catalog-client/src/types/api.ts#L74), which can be passed into the CatalogClient. See examples below:
10
+
11
+ - Get all entities of kind `Group`
12
+
13
+ ```yaml
14
+ owner:
15
+ title: Owner
16
+ type: string
17
+ description: Owner of the component
18
+ ui:field: OwnerPicker
19
+ ui:options:
20
+ catalogFilter:
21
+ - kind: Group
22
+ ```
23
+
24
+ - Get entities of kind `Group` and spec.type `team`
25
+ ```yaml
26
+ owner:
27
+ title: Owner
28
+ type: string
29
+ description: Owner of the component
30
+ ui:field: OwnerPicker
31
+ ui:options:
32
+ catalogFilter:
33
+ - kind: Group
34
+ spec.type: team
35
+ ```
36
+
37
+ - Updated dependencies
38
+ - @backstage/plugin-scaffolder-backend@1.9.1-next.0
39
+ - @backstage/backend-common@0.17.0
40
+ - @backstage/config@1.0.5
41
+ - @backstage/errors@1.1.4
42
+ - @backstage/integration@1.4.1
43
+ - @backstage/types@1.0.2
44
+
3
45
  ## 0.4.7
4
46
 
5
47
  ### Patch Changes
package/README.md CHANGED
@@ -74,16 +74,16 @@ spec:
74
74
  description: Owner of the component
75
75
  ui:field: OwnerPicker
76
76
  ui:options:
77
- allowedKinds:
78
- - Group
77
+ catalogFilter:
78
+ kind: Group
79
79
  system:
80
80
  title: System
81
81
  type: string
82
82
  description: System of the component
83
83
  ui:field: EntityPicker
84
84
  ui:options:
85
- allowedKinds:
86
- - System
85
+ catalogFilter:
86
+ kind: System
87
87
  defaultKind: System
88
88
 
89
89
  - title: Choose a location
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend-module-rails",
3
3
  "description": "A module for the scaffolder backend that lets you template projects using Rails",
4
- "version": "0.4.7",
4
+ "version": "0.4.8-next.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -27,13 +27,13 @@
27
27
  "@backstage/config": "^1.0.5",
28
28
  "@backstage/errors": "^1.1.4",
29
29
  "@backstage/integration": "^1.4.1",
30
- "@backstage/plugin-scaffolder-backend": "^1.9.0",
30
+ "@backstage/plugin-scaffolder-backend": "^1.9.1-next.0",
31
31
  "@backstage/types": "^1.0.2",
32
32
  "command-exists": "^1.2.9",
33
33
  "fs-extra": "^10.0.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@backstage/cli": "^0.22.0",
36
+ "@backstage/cli": "^0.22.1-next.0",
37
37
  "@types/command-exists": "^1.2.0",
38
38
  "@types/fs-extra": "^9.0.1",
39
39
  "@types/mock-fs": "^4.13.0",