@backstage/plugin-search-backend 2.1.3 → 2.1.4-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 +31 -0
- package/package.json +16 -16
- package/config.d.ts +0 -49
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @backstage/plugin-search-backend
|
|
2
2
|
|
|
3
|
+
## 2.1.4-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-permission-node@0.11.2-next.0
|
|
9
|
+
- @backstage/plugin-search-backend-node@1.4.6-next.0
|
|
10
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
11
|
+
- @backstage/backend-openapi-utils@0.6.11-next.0
|
|
12
|
+
|
|
3
13
|
## 2.1.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"search": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"maxPageLimit": {
|
|
9
|
+
"type": "number",
|
|
10
|
+
"description": "Sets the maximum max page limit size. Defaults to 100."
|
|
11
|
+
},
|
|
12
|
+
"maxTermLength": {
|
|
13
|
+
"type": "number",
|
|
14
|
+
"description": "Sets the maximum term length for the search string. Defaults to 100."
|
|
15
|
+
},
|
|
16
|
+
"permissions": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"queryLatencyBudgetMs": {
|
|
20
|
+
"type": "number",
|
|
21
|
+
"description": "Limits the amount of time the search backend will spend retrieving and authorizing results from the search engine when permissions are enabled. When the latency of the query endpoint reaches this threshold, the results obtained up until that point will be returned, even if the page is incomplete.\n\nThis limit is only expected to be hit for broad queries from users with extremely restrictive visibility, or for very high page offsets.",
|
|
22
|
+
"default": 1000
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"description": "Options related to the search integration with the Backstage permissions system"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"description": "Configuration options for the search plugin"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-search-backend",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4-next.0",
|
|
4
4
|
"description": "The Backstage backend plugin that provides your backstage app with search",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"files": [
|
|
58
58
|
"dist",
|
|
59
|
-
"config.
|
|
59
|
+
"config.schema.json"
|
|
60
60
|
],
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "backstage-cli package build",
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
"test": "backstage-cli package test"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@backstage/backend-openapi-utils": "
|
|
74
|
-
"@backstage/backend-plugin-api": "
|
|
75
|
-
"@backstage/config": "
|
|
76
|
-
"@backstage/errors": "
|
|
77
|
-
"@backstage/plugin-permission-common": "
|
|
78
|
-
"@backstage/plugin-permission-node": "
|
|
79
|
-
"@backstage/plugin-search-backend-node": "
|
|
80
|
-
"@backstage/plugin-search-common": "
|
|
81
|
-
"@backstage/types": "
|
|
73
|
+
"@backstage/backend-openapi-utils": "0.6.11-next.0",
|
|
74
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
75
|
+
"@backstage/config": "1.3.8",
|
|
76
|
+
"@backstage/errors": "1.3.1",
|
|
77
|
+
"@backstage/plugin-permission-common": "0.9.9",
|
|
78
|
+
"@backstage/plugin-permission-node": "0.11.2-next.0",
|
|
79
|
+
"@backstage/plugin-search-backend-node": "1.4.6-next.0",
|
|
80
|
+
"@backstage/plugin-search-common": "1.2.24",
|
|
81
|
+
"@backstage/types": "1.2.2",
|
|
82
82
|
"dataloader": "^2.0.0",
|
|
83
83
|
"express": "^4.22.0",
|
|
84
84
|
"lodash": "^4.17.21",
|
|
@@ -86,13 +86,13 @@
|
|
|
86
86
|
"zod": "^3.25.76 || ^4.0.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@backstage/backend-defaults": "
|
|
90
|
-
"@backstage/backend-test-utils": "
|
|
91
|
-
"@backstage/cli": "
|
|
92
|
-
"@backstage/repo-tools": "
|
|
89
|
+
"@backstage/backend-defaults": "0.17.4-next.0",
|
|
90
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
91
|
+
"@backstage/cli": "0.36.4-next.0",
|
|
92
|
+
"@backstage/repo-tools": "0.17.4-next.0",
|
|
93
93
|
"@types/express": "^4.17.6",
|
|
94
94
|
"@types/supertest": "^2.0.8",
|
|
95
95
|
"supertest": "^7.0.0"
|
|
96
96
|
},
|
|
97
|
-
"configSchema": "config.
|
|
97
|
+
"configSchema": "config.schema.json"
|
|
98
98
|
}
|
package/config.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2021 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
|
-
export interface Config {
|
|
18
|
-
/** Configuration options for the search plugin */
|
|
19
|
-
search?: {
|
|
20
|
-
/**
|
|
21
|
-
* Sets the maximum max page limit size. Defaults to 100.
|
|
22
|
-
*/
|
|
23
|
-
maxPageLimit?: number;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Sets the maximum term length for the search string. Defaults to 100.
|
|
27
|
-
*/
|
|
28
|
-
maxTermLength?: number;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Options related to the search integration with the Backstage permissions system
|
|
32
|
-
*/
|
|
33
|
-
permissions?: {
|
|
34
|
-
/**
|
|
35
|
-
* Limits the amount of time the search backend will spend retrieving and
|
|
36
|
-
* authorizing results from the search engine when permissions are
|
|
37
|
-
* enabled. When the latency of the query endpoint reaches this threshold,
|
|
38
|
-
* the results obtained up until that point will be returned, even if the
|
|
39
|
-
* page is incomplete.
|
|
40
|
-
*
|
|
41
|
-
* This limit is only expected to be hit for broad queries from users with
|
|
42
|
-
* extremely restrictive visibility, or for very high page offsets.
|
|
43
|
-
*
|
|
44
|
-
* @default 1000
|
|
45
|
-
*/
|
|
46
|
-
queryLatencyBudgetMs?: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
}
|