@backstage/plugin-search-backend-module-catalog 0.3.16 → 0.3.17-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 +10 -0
- package/config.schema.json +200 -0
- package/package.json +15 -15
- package/config.d.ts +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage/plugin-search-backend-module-catalog
|
|
2
2
|
|
|
3
|
+
## 0.3.17-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-search-backend-node@1.4.6-next.0
|
|
9
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
10
|
+
- @backstage/plugin-catalog-node@2.2.3-next.0
|
|
11
|
+
- @backstage/catalog-client@1.16.1-next.0
|
|
12
|
+
|
|
3
13
|
## 0.3.16
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"search": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"collators": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"catalog": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"locationTemplate": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "A templating string with placeholders, to form the final location of the entity.\n\nDefaults to '/catalog/:namespace/:kind/:name'"
|
|
17
|
+
},
|
|
18
|
+
"filter": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "object"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "object"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"description": "A filter expression passed to the catalog client, to select what entities to collate.\n\nDefaults to no filter, ie indexing all entities."
|
|
31
|
+
},
|
|
32
|
+
"batchSize": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"description": "The number of entities to process at a time. Keep this at a reasonable number to avoid overloading either the catalog or the search backend.\n\nDefaults to 500"
|
|
35
|
+
},
|
|
36
|
+
"schedule": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"frequency": {
|
|
40
|
+
"anyOf": [
|
|
41
|
+
{
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"cron": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "A crontab style string."
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"cron"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"years": {
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
"months": {
|
|
63
|
+
"type": "number"
|
|
64
|
+
},
|
|
65
|
+
"weeks": {
|
|
66
|
+
"type": "number"
|
|
67
|
+
},
|
|
68
|
+
"days": {
|
|
69
|
+
"type": "number"
|
|
70
|
+
},
|
|
71
|
+
"hours": {
|
|
72
|
+
"type": "number"
|
|
73
|
+
},
|
|
74
|
+
"minutes": {
|
|
75
|
+
"type": "number"
|
|
76
|
+
},
|
|
77
|
+
"seconds": {
|
|
78
|
+
"type": "number"
|
|
79
|
+
},
|
|
80
|
+
"milliseconds": {
|
|
81
|
+
"type": "number"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"description": "Human friendly durations object."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "object",
|
|
88
|
+
"properties": {
|
|
89
|
+
"trigger": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"const": "manual"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"trigger"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"description": "How often you want the task to run. The system does its best to avoid overlapping invocations."
|
|
100
|
+
},
|
|
101
|
+
"timeout": {
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"years": {
|
|
110
|
+
"type": "number"
|
|
111
|
+
},
|
|
112
|
+
"months": {
|
|
113
|
+
"type": "number"
|
|
114
|
+
},
|
|
115
|
+
"weeks": {
|
|
116
|
+
"type": "number"
|
|
117
|
+
},
|
|
118
|
+
"days": {
|
|
119
|
+
"type": "number"
|
|
120
|
+
},
|
|
121
|
+
"hours": {
|
|
122
|
+
"type": "number"
|
|
123
|
+
},
|
|
124
|
+
"minutes": {
|
|
125
|
+
"type": "number"
|
|
126
|
+
},
|
|
127
|
+
"seconds": {
|
|
128
|
+
"type": "number"
|
|
129
|
+
},
|
|
130
|
+
"milliseconds": {
|
|
131
|
+
"type": "number"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"description": "Human friendly durations object."
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"description": "The maximum amount of time that a single task invocation can take, before it's considered timed out and gets \"released\" such that a new invocation is permitted to take place (possibly, then, on a different worker)."
|
|
138
|
+
},
|
|
139
|
+
"initialDelay": {
|
|
140
|
+
"anyOf": [
|
|
141
|
+
{
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"type": "object",
|
|
146
|
+
"properties": {
|
|
147
|
+
"years": {
|
|
148
|
+
"type": "number"
|
|
149
|
+
},
|
|
150
|
+
"months": {
|
|
151
|
+
"type": "number"
|
|
152
|
+
},
|
|
153
|
+
"weeks": {
|
|
154
|
+
"type": "number"
|
|
155
|
+
},
|
|
156
|
+
"days": {
|
|
157
|
+
"type": "number"
|
|
158
|
+
},
|
|
159
|
+
"hours": {
|
|
160
|
+
"type": "number"
|
|
161
|
+
},
|
|
162
|
+
"minutes": {
|
|
163
|
+
"type": "number"
|
|
164
|
+
},
|
|
165
|
+
"seconds": {
|
|
166
|
+
"type": "number"
|
|
167
|
+
},
|
|
168
|
+
"milliseconds": {
|
|
169
|
+
"type": "number"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"description": "Human friendly durations object."
|
|
173
|
+
}
|
|
174
|
+
],
|
|
175
|
+
"description": "The amount of time that should pass before the first invocation happens."
|
|
176
|
+
},
|
|
177
|
+
"scope": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"enum": [
|
|
180
|
+
"global",
|
|
181
|
+
"local"
|
|
182
|
+
],
|
|
183
|
+
"description": "Sets the scope of concurrency control / locking to apply for invocations of this task."
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"frequency",
|
|
188
|
+
"timeout"
|
|
189
|
+
],
|
|
190
|
+
"description": "The schedule for how often to run the collation job."
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"description": "Configuration options for `@backstage/plugin-search-backend-module-catalog`"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-backend-module-catalog",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17-next.0",
|
|
4
4
|
"description": "A module for the search backend that exports catalog modules",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"types": "dist/index.d.ts",
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
|
-
"config.
|
|
29
|
+
"config.schema.json"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "backstage-cli package build",
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"test": "backstage-cli package test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@backstage/backend-plugin-api": "
|
|
42
|
-
"@backstage/catalog-client": "
|
|
43
|
-
"@backstage/catalog-model": "
|
|
44
|
-
"@backstage/config": "
|
|
45
|
-
"@backstage/errors": "
|
|
46
|
-
"@backstage/plugin-catalog-common": "
|
|
47
|
-
"@backstage/plugin-catalog-node": "
|
|
48
|
-
"@backstage/plugin-permission-common": "
|
|
49
|
-
"@backstage/plugin-search-backend-node": "
|
|
50
|
-
"@backstage/plugin-search-common": "
|
|
41
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
42
|
+
"@backstage/catalog-client": "1.16.1-next.0",
|
|
43
|
+
"@backstage/catalog-model": "1.9.0",
|
|
44
|
+
"@backstage/config": "1.3.8",
|
|
45
|
+
"@backstage/errors": "1.3.1",
|
|
46
|
+
"@backstage/plugin-catalog-common": "1.1.10",
|
|
47
|
+
"@backstage/plugin-catalog-node": "2.2.3-next.0",
|
|
48
|
+
"@backstage/plugin-permission-common": "0.9.9",
|
|
49
|
+
"@backstage/plugin-search-backend-node": "1.4.6-next.0",
|
|
50
|
+
"@backstage/plugin-search-common": "1.2.24"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@backstage/backend-test-utils": "
|
|
54
|
-
"@backstage/cli": "
|
|
53
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
54
|
+
"@backstage/cli": "0.36.4-next.0"
|
|
55
55
|
},
|
|
56
|
-
"configSchema": "config.
|
|
56
|
+
"configSchema": "config.schema.json",
|
|
57
57
|
"typesVersions": {
|
|
58
58
|
"*": {
|
|
59
59
|
"package.json": [
|
package/config.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import { SchedulerServiceTaskScheduleDefinitionConfig } from '@backstage/backend-plugin-api';
|
|
18
|
-
|
|
19
|
-
export interface Config {
|
|
20
|
-
search?: {
|
|
21
|
-
collators?: {
|
|
22
|
-
/**
|
|
23
|
-
* Configuration options for `@backstage/plugin-search-backend-module-catalog`
|
|
24
|
-
*/
|
|
25
|
-
catalog?: {
|
|
26
|
-
/**
|
|
27
|
-
* A templating string with placeholders, to form the final location of
|
|
28
|
-
* the entity.
|
|
29
|
-
*
|
|
30
|
-
* Defaults to '/catalog/:namespace/:kind/:name'
|
|
31
|
-
*/
|
|
32
|
-
locationTemplate?: string;
|
|
33
|
-
/**
|
|
34
|
-
* A filter expression passed to the catalog client, to select what
|
|
35
|
-
* entities to collate.
|
|
36
|
-
*
|
|
37
|
-
* Defaults to no filter, ie indexing all entities.
|
|
38
|
-
*/
|
|
39
|
-
filter?: object | object[];
|
|
40
|
-
/**
|
|
41
|
-
* The number of entities to process at a time. Keep this at a
|
|
42
|
-
* reasonable number to avoid overloading either the catalog or the
|
|
43
|
-
* search backend.
|
|
44
|
-
*
|
|
45
|
-
* Defaults to 500
|
|
46
|
-
*/
|
|
47
|
-
batchSize?: number;
|
|
48
|
-
/**
|
|
49
|
-
* The schedule for how often to run the collation job.
|
|
50
|
-
*/
|
|
51
|
-
schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
}
|