Merge branch 'master' of github.com:backstage/backstage into RoadieHQ-entity-peek-ahead
This commit is contained in:
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-adr-backend
|
||||
|
||||
## 0.2.4-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/plugin-search-common@1.2.0-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/plugin-adr-common@0.2.4-next.2
|
||||
|
||||
## 0.2.4-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-adr-backend",
|
||||
"version": "0.2.4-next.1",
|
||||
"version": "0.2.4-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-adr-common
|
||||
|
||||
## 0.2.4-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-search-common@1.2.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
|
||||
## 0.2.4-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-adr-common",
|
||||
"description": "Common functionalities for the adr plugin",
|
||||
"version": "0.2.4-next.1",
|
||||
"version": "0.2.4-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# @backstage/plugin-adr
|
||||
|
||||
## 0.2.4-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/plugin-search-react@1.3.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/plugin-search-common@1.2.0-next.2
|
||||
- @backstage/integration-react@1.1.7-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
- @backstage/plugin-adr-common@0.2.4-next.2
|
||||
|
||||
## 0.2.4-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-adr",
|
||||
"version": "0.2.4-next.1",
|
||||
"version": "0.2.4-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @backstage/plugin-airbrake-backend
|
||||
|
||||
## 0.2.12-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
|
||||
## 0.2.12-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-airbrake-backend",
|
||||
"version": "0.2.12-next.1",
|
||||
"version": "0.2.12-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-airbrake
|
||||
|
||||
## 0.3.12-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/dev-utils@1.0.9-next.2
|
||||
- @backstage/test-utils@1.2.3-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.3.12-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-airbrake",
|
||||
"version": "0.3.12-next.1",
|
||||
"version": "0.3.12-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
@@ -32,7 +32,6 @@
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@material-ui/lab": "4.0.0-alpha.57",
|
||||
"object-hash": "^3.0.0",
|
||||
"react-use": "^17.2.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -48,7 +47,6 @@
|
||||
"@testing-library/react": "^12.1.3",
|
||||
"@testing-library/user-event": "^14.0.0",
|
||||
"@types/node": "^16.11.26",
|
||||
"@types/object-hash": "^2.2.1",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"msw": "^0.49.0"
|
||||
},
|
||||
|
||||
@@ -13,9 +13,8 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Entity } from '@backstage/catalog-model';
|
||||
import React from 'react';
|
||||
import { Grid, Typography } from '@material-ui/core';
|
||||
import {
|
||||
EmptyState,
|
||||
ErrorPanel,
|
||||
@@ -23,12 +22,13 @@ import {
|
||||
MissingAnnotationEmptyState,
|
||||
Progress,
|
||||
} from '@backstage/core-components';
|
||||
import hash from 'object-hash';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { useApi } from '@backstage/core-plugin-api';
|
||||
import { airbrakeApiRef } from '../../api';
|
||||
import { BackstageTheme } from '@backstage/theme';
|
||||
import { Grid, Typography } from '@material-ui/core';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
import React from 'react';
|
||||
import useAsync from 'react-use/lib/useAsync';
|
||||
import { airbrakeApiRef } from '../../api';
|
||||
import { AIRBRAKE_PROJECT_ID_ANNOTATION, useProjectId } from '../useProjectId';
|
||||
|
||||
const useStyles = makeStyles<BackstageTheme>(() => ({
|
||||
@@ -64,8 +64,8 @@ export const EntityAirbrakeWidget = ({ entity }: { entity: Entity }) => {
|
||||
<Grid container spacing={3} direction="column">
|
||||
{value.groups?.map(group => (
|
||||
<Grid item key={group.id}>
|
||||
{group.errors?.map(groupError => (
|
||||
<InfoCard title={groupError.type} key={hash(groupError)}>
|
||||
{group.errors?.map((groupError, i) => (
|
||||
<InfoCard title={groupError.type} key={i}>
|
||||
<Typography variant="body1" className={classes.multilineText}>
|
||||
{groupError.message}
|
||||
</Typography>
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @backstage/plugin-allure
|
||||
|
||||
## 0.1.28-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.1.28-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-allure",
|
||||
"description": "A Backstage plugin that integrates with Allure",
|
||||
"version": "0.1.28-next.1",
|
||||
"version": "0.1.28-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-analytics-module-ga
|
||||
|
||||
## 0.1.23-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 9516b0c355: Added support for sending virtual pageviews on `search` events in order to enable
|
||||
Site Search functionality in GA. For more information consult [README](/plugins/analytics-module-ga/README.md#enabling-site-search)
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.1.23-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-analytics-module-ga",
|
||||
"version": "0.1.23-next.1",
|
||||
"version": "0.1.23-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @backstage/plugin-apache-airflow
|
||||
|
||||
## 0.2.5-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
|
||||
## 0.2.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-apache-airflow",
|
||||
"version": "0.2.5-next.1",
|
||||
"version": "0.2.5-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-api-docs
|
||||
|
||||
## 0.8.12-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog@1.7.0-next.2
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.8.12-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-api-docs",
|
||||
"description": "A Backstage plugin that helps represent API entities in the frontend",
|
||||
"version": "0.8.12-next.1",
|
||||
"version": "0.8.12-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-apollo-explorer
|
||||
|
||||
## 0.1.5-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.1.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-apollo-explorer",
|
||||
"version": "0.1.5-next.1",
|
||||
"version": "0.1.5-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-app-backend
|
||||
|
||||
## 0.3.39-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/config-loader@1.1.7-next.2
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.3.39-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-app-backend",
|
||||
"description": "A Backstage backend plugin that serves the Backstage frontend app",
|
||||
"version": "0.3.39-next.1",
|
||||
"version": "0.3.39-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-auth-backend
|
||||
|
||||
## 0.17.2-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/plugin-auth-node@0.2.8-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.17.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend",
|
||||
"description": "A Backstage backend plugin that handles authentication",
|
||||
"version": "0.17.2-next.1",
|
||||
"version": "0.17.2-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-auth-node
|
||||
|
||||
## 0.2.8-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
|
||||
## 0.2.8-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-node",
|
||||
"version": "0.2.8-next.1",
|
||||
"version": "0.2.8-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @backstage/plugin-azure-devops-backend
|
||||
|
||||
## 0.3.18-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- eaccf6d628: Updated installation documentation
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/plugin-azure-devops-common@0.3.0
|
||||
|
||||
## 0.3.18-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-devops-backend",
|
||||
"version": "0.3.18-next.1",
|
||||
"version": "0.3.18-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-azure-devops
|
||||
|
||||
## 0.2.3-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
- @backstage/plugin-azure-devops-common@0.3.0
|
||||
|
||||
## 0.2.3-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-devops",
|
||||
"version": "0.2.3-next.1",
|
||||
"version": "0.2.3-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-azure-sites-backend
|
||||
|
||||
## 0.1.1-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/plugin-azure-sites-common@0.1.0
|
||||
|
||||
## 0.1.1-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-sites-backend",
|
||||
"version": "0.1.1-next.1",
|
||||
"version": "0.1.1-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-azure-sites
|
||||
|
||||
## 0.1.1-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
- @backstage/plugin-azure-sites-common@0.1.0
|
||||
|
||||
## 0.1.1-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-sites",
|
||||
"version": "0.1.1-next.1",
|
||||
"version": "0.1.1-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @backstage/plugin-badges-backend
|
||||
|
||||
## 0.1.33-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
|
||||
## 0.1.33-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-badges-backend",
|
||||
"description": "A Backstage backend plugin that generates README badges for your entities",
|
||||
"version": "0.1.33-next.1",
|
||||
"version": "0.1.33-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-badges
|
||||
|
||||
## 0.2.36-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.2.36-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-badges",
|
||||
"description": "A Backstage plugin that generates README badges for your entities",
|
||||
"version": "0.2.36-next.1",
|
||||
"version": "0.2.36-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-bazaar-backend
|
||||
|
||||
## 0.2.2-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- c507aee8a2: Ensured typescript type checks in migration files.
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-test-utils@0.1.31-next.2
|
||||
- @backstage/plugin-auth-node@0.2.8-next.2
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
|
||||
## 0.2.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.up = async function up(knex) {
|
||||
await knex.schema.createTable('metadata', table => {
|
||||
table.comment('The table of Bazaar metadata');
|
||||
@@ -59,6 +64,9 @@ exports.up = async function up(knex) {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.down = async function down(knex) {
|
||||
await knex.schema.dropTable('metadata');
|
||||
await knex.schema.dropTable('members');
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.up = async function up(knex) {
|
||||
await knex.schema.alterTable('metadata', table => {
|
||||
table
|
||||
@@ -35,6 +40,9 @@ exports.up = async function up(knex) {
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.down = async function down(knex) {
|
||||
await knex.schema.alterTable('metadata', table => {
|
||||
table
|
||||
|
||||
@@ -14,6 +14,11 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.up = async function up(knex) {
|
||||
if (knex.client.config.client.includes('sqlite3')) {
|
||||
await knex.schema.dropTable('metadata');
|
||||
@@ -92,6 +97,9 @@ exports.up = async function up(knex) {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.down = async function down(knex) {
|
||||
if (knex.client.config.client.includes('sqlite3')) {
|
||||
await knex.schema.dropTable('metadata');
|
||||
|
||||
@@ -14,12 +14,20 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.up = async function up(knex) {
|
||||
await knex.schema.alterTable('members', table => {
|
||||
table.string('user_ref').nullable();
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.down = async function down(knex) {
|
||||
return knex.schema.table('members', table => {
|
||||
table.dropColumn('user_ref');
|
||||
|
||||
@@ -14,9 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
* @returns { Promise<void> }
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.up = async function up(knex) {
|
||||
await knex.schema.alterTable('metadata', table => {
|
||||
@@ -25,8 +26,7 @@ exports.up = async function up(knex) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
* @returns { Promise<void> }
|
||||
* @param {import('knex').Knex} knex
|
||||
*/
|
||||
exports.down = async function down(knex) {
|
||||
await knex.schema.alterTable('metadata', table => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-bazaar-backend",
|
||||
"version": "0.2.2-next.1",
|
||||
"version": "0.2.2-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# @backstage/plugin-bazaar
|
||||
|
||||
## 0.2.1-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 312962da30: Add `title` as optional parameter to `BazaarOverviewCard`
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog@1.7.0-next.2
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/cli@0.21.2-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
|
||||
## 0.2.1-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-bazaar",
|
||||
"version": "0.2.1-next.1",
|
||||
"version": "0.2.1-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @backstage/plugin-bitrise
|
||||
|
||||
## 0.1.39-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.1.39-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-bitrise",
|
||||
"description": "A Backstage plugin that integrates towards Bitrise",
|
||||
"version": "0.1.39-next.1",
|
||||
"version": "0.1.39-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @backstage/plugin-catalog-backend-module-aws
|
||||
|
||||
## 0.1.12-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.1.12-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-aws",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards AWS",
|
||||
"version": "0.1.12-next.1",
|
||||
"version": "0.1.12-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @backstage/plugin-catalog-backend-module-azure
|
||||
|
||||
## 0.1.10-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.1.10-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-azure",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards Azure",
|
||||
"version": "0.1.10-next.1",
|
||||
"version": "0.1.10-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# @backstage/plugin-catalog-backend-module-bitbucket-cloud
|
||||
|
||||
## 0.1.6-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- ce08e1798e: Refresh (potentially) updated catalog files on `repo:push` more efficiently.
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/plugin-bitbucket-cloud-common@0.2.2-next.1
|
||||
- @backstage/plugin-catalog-common@1.0.9-next.2
|
||||
- @backstage/plugin-events-node@0.2.0-next.2
|
||||
|
||||
## 0.1.6-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-bitbucket-cloud",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards Bitbucket Cloud",
|
||||
"version": "0.1.6-next.1",
|
||||
"version": "0.1.6-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @backstage/plugin-catalog-backend-module-bitbucket-server
|
||||
|
||||
## 0.1.4-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
|
||||
## 0.1.4-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-bitbucket-server",
|
||||
"version": "0.1.4-next.1",
|
||||
"version": "0.1.4-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-catalog-backend-module-bitbucket
|
||||
|
||||
## 0.2.6-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
- @backstage/plugin-bitbucket-cloud-common@0.2.2-next.1
|
||||
|
||||
## 0.2.6-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-bitbucket",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards Bitbucket",
|
||||
"version": "0.2.6-next.1",
|
||||
"version": "0.2.6-next.2",
|
||||
"deprecated": true,
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @backstage/plugin-catalog-backend-module-gerrit
|
||||
|
||||
## 0.1.7-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
|
||||
## 0.1.7-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-gerrit",
|
||||
"version": "0.1.7-next.1",
|
||||
"version": "0.1.7-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# @backstage/plugin-catalog-backend-module-github
|
||||
|
||||
## 0.2.2-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
- @backstage/plugin-catalog-common@1.0.9-next.2
|
||||
- @backstage/plugin-events-node@0.2.0-next.2
|
||||
|
||||
## 0.2.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-github",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards GitHub",
|
||||
"version": "0.2.2-next.1",
|
||||
"version": "0.2.2-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @backstage/plugin-catalog-backend-module-gitlab
|
||||
|
||||
## 0.1.10-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.1.10-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-gitlab",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards GitLab",
|
||||
"version": "0.1.10-next.1",
|
||||
"version": "0.1.10-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# @backstage/plugin-catalog-backend-module-incremental-ingestion
|
||||
|
||||
## 0.1.0-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- c507aee8a2: Ensured typescript type checks in migration files.
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- 61d4efe978: Make incremental providers more resilient to failures
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-test-utils@0.1.31-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/plugin-permission-common@0.7.2-next.1
|
||||
|
||||
## 0.1.0-next.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -13,11 +13,10 @@ Unfortunately, these two kinds of mutations are insufficient for very large data
|
||||
3. Addressing the above two use case with `full` mutation is not an option on very large datasets because a `full` mutation requires that all entities are in memory to create a diff. If your data source has 100k+ records, this can easily cause your processes to run out of memory.
|
||||
4. In cases when you can use `full` mutation, committing many entities into the processing pipeline fills up the processing queue and delays the processing of entities from other entity providers.
|
||||
|
||||
We created the Incremental Entity Provider to address all of the above issues. The Incremental Entity Provider addresses these issues with a combination of `delta` mutations and a mark-and-sweep mechanism. Instead of doing a single `full` mutation, it performs a series of bursts. At the end of each burst, the Incremental Entity Provider performs the following three operations,
|
||||
We created the Incremental Entity Provider to address all of the above issues. The Incremental Entity Provider addresses these issues with a combination of `delta` mutations and a mark-and-sweep mechanism. Instead of doing a single `full` mutation, it performs a series of bursts. At the end of each burst, the Incremental Entity Provider performs the following operations,
|
||||
|
||||
1. Marks each received entity in the database.
|
||||
2. Annotates each entity with `backstage/incremental-entity-provider: <entity-provider-id>` annotation.
|
||||
3. Commits all of the entities with a `delta` mutation.
|
||||
2. Commits all of the entities with a `delta` mutation.
|
||||
|
||||
Incremental Entity Providers will wait a configurable interval before proceeding to the next burst.
|
||||
|
||||
|
||||
@@ -30,10 +30,6 @@ export type EntityIteratorResult<T> =
|
||||
cursor?: T;
|
||||
};
|
||||
|
||||
// @public
|
||||
export const INCREMENTAL_ENTITY_PROVIDER_ANNOTATION =
|
||||
'backstage.io/incremental-provider-name';
|
||||
|
||||
// @public (undocumented)
|
||||
export class IncrementalCatalogBuilder {
|
||||
// (undocumented)
|
||||
@@ -66,6 +62,8 @@ export interface IncrementalEntityProviderOptions {
|
||||
backoff?: DurationObjectUnits[];
|
||||
burstInterval: DurationObjectUnits;
|
||||
burstLength: DurationObjectUnits;
|
||||
rejectEmptySourceCollections?: boolean;
|
||||
rejectRemovalsAbovePercentage?: number;
|
||||
restLength: DurationObjectUnits;
|
||||
}
|
||||
|
||||
|
||||
+8
-6
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
*/
|
||||
@@ -25,7 +27,7 @@ exports.up = async function up(knex) {
|
||||
table.comment('Tracks ingestion streams for very large data sets');
|
||||
|
||||
table
|
||||
.uuid('id', { primary: true })
|
||||
.uuid('id')
|
||||
.notNullable()
|
||||
.comment('Auto-generated ID of the ingestion');
|
||||
|
||||
@@ -85,7 +87,7 @@ exports.up = async function up(knex) {
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('ingestions', t => {
|
||||
t.primary('id');
|
||||
t.primary(['id']);
|
||||
t.index('provider_name', 'ingestion_provider_name_idx');
|
||||
t.unique(['provider_name', 'completion_ticket'], {
|
||||
indexName: 'ingestion_composite_index',
|
||||
@@ -100,7 +102,7 @@ exports.up = async function up(knex) {
|
||||
table.comment('tracks each step of an iterative ingestion');
|
||||
|
||||
table
|
||||
.uuid('id', { primary: true })
|
||||
.uuid('id')
|
||||
.notNullable()
|
||||
.comment('Auto-generated ID of the ingestion mark');
|
||||
|
||||
@@ -128,7 +130,7 @@ exports.up = async function up(knex) {
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('ingestion_marks', t => {
|
||||
t.primary('id');
|
||||
t.primary(['id']);
|
||||
t.index('ingestion_id', 'ingestion_mark_ingestion_id_idx');
|
||||
});
|
||||
|
||||
@@ -141,7 +143,7 @@ exports.up = async function up(knex) {
|
||||
);
|
||||
|
||||
table
|
||||
.uuid('id', { primary: true })
|
||||
.uuid('id')
|
||||
.notNullable()
|
||||
.comment('Auto-generated ID of the marked entity');
|
||||
|
||||
@@ -162,7 +164,7 @@ exports.up = async function up(knex) {
|
||||
});
|
||||
|
||||
await knex.schema.alterTable('ingestion_mark_entities', t => {
|
||||
t.primary('id');
|
||||
t.primary(['id']);
|
||||
t.index('ingestion_mark_id', 'ingestion_mark_entity_ingestion_mark_id_idx');
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-incremental-ingestion",
|
||||
"description": "An entity provider for streaming large asset sources into the catalog",
|
||||
"version": "0.1.0-next.0",
|
||||
"version": "0.1.0-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
+63
-33
@@ -19,7 +19,6 @@ import type { DeferredEntity } from '@backstage/plugin-catalog-backend';
|
||||
import { stringifyEntityRef } from '@backstage/catalog-model';
|
||||
import { Duration } from 'luxon';
|
||||
import { v4 } from 'uuid';
|
||||
import { INCREMENTAL_ENTITY_PROVIDER_ANNOTATION } from '../types';
|
||||
import {
|
||||
IngestionRecord,
|
||||
IngestionRecordUpdate,
|
||||
@@ -113,6 +112,20 @@ export class IncrementalIngestionDatabaseManager {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the last ingestion record for the named provider.
|
||||
* @param provider - string
|
||||
* @returns IngestionRecord | undefined
|
||||
*/
|
||||
async getPreviousIngestionRecord(provider: string) {
|
||||
return await this.client.transaction(async tx => {
|
||||
return await tx<IngestionRecord>('ingestions')
|
||||
.where('provider_name', provider)
|
||||
.andWhereNot('completion_ticket', 'open')
|
||||
.first();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes all entries from `ingestion_marks_entities`, `ingestion_marks`, and `ingestions`
|
||||
* for prior ingestions that completed (i.e., have a `completion_ticket` value other than 'open').
|
||||
@@ -286,39 +299,40 @@ export class IncrementalIngestionDatabaseManager {
|
||||
* @returns All entities to remove for this burst.
|
||||
*/
|
||||
async computeRemoved(provider: string, ingestionId: string) {
|
||||
const previousIngestion = await this.getPreviousIngestionRecord(provider);
|
||||
return await this.client.transaction(async tx => {
|
||||
const removed: { entity: string; ref: string }[] = await tx(
|
||||
'final_entities',
|
||||
)
|
||||
.select(
|
||||
tx.ref('final_entity').as('entity'),
|
||||
tx.ref('refresh_state.entity_ref').as('ref'),
|
||||
)
|
||||
const count = await tx('ingestion_mark_entities')
|
||||
.count({ total: 'ingestion_mark_entities.ref' })
|
||||
.join(
|
||||
'refresh_state',
|
||||
'refresh_state.entity_id',
|
||||
'final_entities.entity_id',
|
||||
'ingestion_marks',
|
||||
'ingestion_marks.id',
|
||||
'ingestion_mark_entities.ingestion_mark_id',
|
||||
)
|
||||
.join('search', 'search.entity_id', 'final_entities.entity_id')
|
||||
.whereNotIn(
|
||||
'entity_ref',
|
||||
tx('ingestion_marks')
|
||||
.join(
|
||||
'ingestion_mark_entities',
|
||||
'ingestion_marks.id',
|
||||
'ingestion_mark_entities.ingestion_mark_id',
|
||||
)
|
||||
.select('ingestion_mark_entities.ref')
|
||||
.where('ingestion_marks.ingestion_id', ingestionId),
|
||||
)
|
||||
.andWhere(
|
||||
'search.key',
|
||||
`metadata.annotations.${INCREMENTAL_ENTITY_PROVIDER_ANNOTATION}`,
|
||||
)
|
||||
.andWhere('search.value', provider);
|
||||
return removed.map(entity => {
|
||||
return { entity: JSON.parse(entity.entity) };
|
||||
});
|
||||
.join('ingestions', 'ingestions.id', 'ingestion_marks.ingestion_id')
|
||||
.where('ingestions.id', ingestionId);
|
||||
|
||||
const total = count.reduce((acc, cur) => acc + (cur.total as number), 0);
|
||||
|
||||
const removed: { entityRef: string }[] = [];
|
||||
if (previousIngestion) {
|
||||
const stale: { ref: string }[] = await tx('ingestion_mark_entities')
|
||||
.select('ingestion_mark_entities.ref')
|
||||
.join(
|
||||
'ingestion_marks',
|
||||
'ingestion_marks.id',
|
||||
'ingestion_mark_entities.ingestion_mark_id',
|
||||
)
|
||||
.join('ingestions', 'ingestions.id', 'ingestion_marks.ingestion_id')
|
||||
.where('ingestions.id', previousIngestion.id);
|
||||
|
||||
removed.push(
|
||||
...stale.map(e => {
|
||||
return { entityRef: e.ref };
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
return { total, removed };
|
||||
});
|
||||
}
|
||||
|
||||
@@ -546,12 +560,28 @@ export class IncrementalIngestionDatabaseManager {
|
||||
* @param entities - DeferredEntity[]
|
||||
*/
|
||||
async createMarkEntities(markId: string, entities: DeferredEntity[]) {
|
||||
const refs = entities.map(e => stringifyEntityRef(e.entity));
|
||||
|
||||
await this.client.transaction(async tx => {
|
||||
const existingRefsArray = (
|
||||
await tx<{ ref: string }>('ingestion_mark_entities')
|
||||
.select('ref')
|
||||
.whereIn('ref', refs)
|
||||
).map(e => e.ref);
|
||||
|
||||
const existingRefsSet = new Set(existingRefsArray);
|
||||
|
||||
const newRefs = refs.filter(e => !existingRefsSet.has(e));
|
||||
|
||||
await tx('ingestion_mark_entities')
|
||||
.update('ingestion_mark_id', markId)
|
||||
.whereIn('ref', existingRefsArray);
|
||||
|
||||
await tx('ingestion_mark_entities').insert(
|
||||
entities.map(entity => ({
|
||||
newRefs.map(ref => ({
|
||||
id: v4(),
|
||||
ingestion_mark_id: markId,
|
||||
ref: stringifyEntityRef(entity.entity),
|
||||
ref,
|
||||
})),
|
||||
);
|
||||
});
|
||||
|
||||
+47
-13
@@ -15,11 +15,7 @@
|
||||
*/
|
||||
|
||||
import type { DeferredEntity } from '@backstage/plugin-catalog-backend';
|
||||
import {
|
||||
INCREMENTAL_ENTITY_PROVIDER_ANNOTATION,
|
||||
IterationEngine,
|
||||
IterationEngineOptions,
|
||||
} from '../types';
|
||||
import { IterationEngine, IterationEngineOptions } from '../types';
|
||||
import { IncrementalIngestionDatabaseManager } from '../database/IncrementalIngestionDatabaseManager';
|
||||
import { performance } from 'perf_hooks';
|
||||
import { Duration, DurationObjectUnits } from 'luxon';
|
||||
@@ -268,22 +264,60 @@ export class IncrementalIngestionEngine implements IterationEngine {
|
||||
...deferred.entity.metadata,
|
||||
annotations: {
|
||||
...deferred.entity.metadata.annotations,
|
||||
[INCREMENTAL_ENTITY_PROVIDER_ANNOTATION]:
|
||||
this.options.provider.getProviderName(),
|
||||
},
|
||||
},
|
||||
},
|
||||
})) ?? [];
|
||||
|
||||
const removed: DeferredEntity[] = [];
|
||||
const removed: { entityRef: string }[] = [];
|
||||
|
||||
if (done) {
|
||||
removed.push(
|
||||
...(await this.manager.computeRemoved(
|
||||
this.options.provider.getProviderName(),
|
||||
id,
|
||||
)),
|
||||
this.options.logger.info(
|
||||
`incremental-engine: Ingestion '${id}': Final page reached, calculating removed entities`,
|
||||
);
|
||||
const result = await this.manager.computeRemoved(
|
||||
this.options.provider.getProviderName(),
|
||||
id,
|
||||
);
|
||||
|
||||
const { total } = result;
|
||||
|
||||
let doRemoval = true;
|
||||
if (this.options.rejectEmptySourceCollections) {
|
||||
if (total === 0) {
|
||||
this.options.logger.error(
|
||||
`incremental-engine: Ingestion '${id}': Rejecting empty entity collection!`,
|
||||
);
|
||||
doRemoval = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.options.rejectRemovalsAbovePercentage) {
|
||||
// If the total entities upserted in this ingestion is 0, then
|
||||
// 100% of entities are stale and marked for removal.
|
||||
const percentRemoved =
|
||||
total > 0 ? (result.removed.length / total) * 100 : 100;
|
||||
if (percentRemoved <= this.options.rejectRemovalsAbovePercentage) {
|
||||
this.options.logger.info(
|
||||
`incremental-engine: Ingestion '${id}': Removing ${result.removed.length} entities that have no matching assets`,
|
||||
);
|
||||
} else {
|
||||
const notice = `Attempted to remove ${percentRemoved}% of matching entities!`;
|
||||
this.options.logger.error(
|
||||
`incremental-engine: Ingestion '${id}': ${notice}`,
|
||||
);
|
||||
await this.manager.updateIngestionRecordById({
|
||||
ingestionId: id,
|
||||
update: {
|
||||
last_error: `REMOVAL_THRESHOLD exceeded on ingestion mark ${markId}: ${notice}`,
|
||||
},
|
||||
});
|
||||
doRemoval = false;
|
||||
}
|
||||
}
|
||||
if (doRemoval) {
|
||||
removed.push(...result.removed);
|
||||
}
|
||||
}
|
||||
|
||||
await this.options.connection.applyMutation({
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
export * from './module';
|
||||
export * from './service';
|
||||
export {
|
||||
INCREMENTAL_ENTITY_PROVIDER_ANNOTATION,
|
||||
type EntityIteratorResult,
|
||||
type IncrementalEntityProvider,
|
||||
type IncrementalEntityProviderOptions,
|
||||
|
||||
@@ -32,14 +32,6 @@ import type { DurationObjectUnits } from 'luxon';
|
||||
import type { Logger } from 'winston';
|
||||
import { IncrementalIngestionDatabaseManager } from './database/IncrementalIngestionDatabaseManager';
|
||||
|
||||
/**
|
||||
* Entity annotation containing the incremental entity provider.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const INCREMENTAL_ENTITY_PROVIDER_ANNOTATION =
|
||||
'backstage.io/incremental-provider-name';
|
||||
|
||||
/**
|
||||
* Ingest entities into the catalog in bite-sized chunks.
|
||||
*
|
||||
@@ -130,6 +122,22 @@ export interface IncrementalEntityProviderOptions {
|
||||
* `[{ minutes: 1}, { minutes: 5}, {minutes: 30 }, { hours: 3 }]`
|
||||
*/
|
||||
backoff?: DurationObjectUnits[];
|
||||
|
||||
/**
|
||||
* If an error occurs at a data source that results in a large
|
||||
* number of assets being inadvertently removed, it will result in
|
||||
* Backstage removing all associated entities. To avoid that, set
|
||||
* a percentage of entities past which removal will be disallowed.
|
||||
*/
|
||||
rejectRemovalsAbovePercentage?: number;
|
||||
|
||||
/**
|
||||
* Similar to the rejectRemovalsAbovePercentage, this option
|
||||
* prevents removals in circumstances where a data source has
|
||||
* improperly returned 0 assets. If set to `true`, Backstage will
|
||||
* reject removals when that happens.
|
||||
*/
|
||||
rejectEmptySourceCollections?: boolean;
|
||||
}
|
||||
|
||||
/** @public */
|
||||
@@ -154,4 +162,6 @@ export interface IterationEngineOptions {
|
||||
restLength: DurationObjectUnits;
|
||||
ready: Promise<void>;
|
||||
backoff?: IncrementalEntityProviderOptions['backoff'];
|
||||
rejectRemovalsAbovePercentage?: number;
|
||||
rejectEmptySourceCollections?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-catalog-backend-module-ldap
|
||||
|
||||
## 0.5.6-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.5.6-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-ldap",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards LDAP",
|
||||
"version": "0.5.6-next.1",
|
||||
"version": "0.5.6-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-catalog-backend-module-msgraph
|
||||
|
||||
## 0.4.5-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/backend-tasks@0.4.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
|
||||
## 0.4.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-msgraph",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards Microsoft Graph",
|
||||
"version": "0.4.5-next.1",
|
||||
"version": "0.4.5-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-catalog-backend-module-openapi
|
||||
|
||||
## 0.1.5-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.6.0-next.2
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
|
||||
## 0.1.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-openapi",
|
||||
"description": "A Backstage catalog backend module that helps with OpenAPI specifications",
|
||||
"version": "0.1.5-next.1",
|
||||
"version": "0.1.5-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,33 @@
|
||||
# @backstage/plugin-catalog-backend
|
||||
|
||||
## 1.6.0-next.2
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 3072ebfdd7: The search table also holds the original entity value now and the facets endpoint fetches the filtered entity data from the search table.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- c507aee8a2: Ensured typescript type checks in migration files.
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- eacc8e2b55: Make it possible for entity providers to supply only entity refs, instead of full entities, in `delta` mutation deletions.
|
||||
- 20a5161f04: Adds MySQL support for the catalog-backend
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-node@1.3.0-next.2
|
||||
- @backstage/backend-common@0.17.0-next.2
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/plugin-search-common@1.2.0-next.2
|
||||
- @backstage/plugin-permission-node@0.7.2-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
- @backstage/plugin-catalog-common@1.0.9-next.2
|
||||
- @backstage/plugin-permission-common@0.7.2-next.1
|
||||
- @backstage/plugin-scaffolder-common@1.2.3-next.1
|
||||
|
||||
## 1.6.0-next.1
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -27,7 +27,7 @@ exports.up = async function up(knex) {
|
||||
//
|
||||
.createTable('locations', table => {
|
||||
table.comment(
|
||||
'Registered locations that shall be contiuously scanned for catalog item updates',
|
||||
'Registered locations that shall be continuously scanned for catalog item updates',
|
||||
);
|
||||
table
|
||||
.uuid('id')
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
*/
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
// @ts-check
|
||||
|
||||
/**
|
||||
* @param { import("knex").Knex } knex
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend",
|
||||
"description": "The Backstage backend plugin that provides the Backstage catalog",
|
||||
"version": "1.6.0-next.1",
|
||||
"version": "1.6.0-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-catalog-common
|
||||
|
||||
## 1.0.9-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-search-common@1.2.0-next.2
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/plugin-permission-common@0.7.2-next.1
|
||||
|
||||
## 1.0.9-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-common",
|
||||
"description": "Common functionalities for the catalog plugin",
|
||||
"version": "1.0.9-next.1",
|
||||
"version": "1.0.9-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @internal/plugin-catalog-customized
|
||||
|
||||
## 0.0.5-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog@1.7.0-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
|
||||
## 0.0.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@internal/plugin-catalog-customized",
|
||||
"description": "The internal Backstage Customizable plugin for browsing the Backstage catalog",
|
||||
"version": "0.0.5-next.1",
|
||||
"version": "0.0.5-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-catalog-graph
|
||||
|
||||
## 0.2.24-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 454f2e90db: Set the default `maxDepth` prop for `EntityRelationsGraph` to a smaller value to provide better readability.
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
|
||||
## 0.2.24-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-graph",
|
||||
"version": "0.2.24-next.1",
|
||||
"version": "0.2.24-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @backstage/plugin-catalog-import
|
||||
|
||||
## 0.9.2-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-catalog-react@1.2.2-next.2
|
||||
- @backstage/integration-react@1.1.7-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/config@1.0.5-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/plugin-catalog-common@1.0.9-next.2
|
||||
|
||||
## 0.9.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-import",
|
||||
"description": "A Backstage plugin the helps you import entities into your catalog",
|
||||
"version": "0.9.2-next.1",
|
||||
"version": "0.9.2-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @backstage/plugin-catalog-node
|
||||
|
||||
## 1.3.0-next.2
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- eacc8e2b55: Make it possible for entity providers to supply only entity refs, instead of full entities, in `delta` mutation deletions.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 884d749b14: Refactored to use `coreServices` from `@backstage/backend-plugin-api`.
|
||||
- Updated dependencies
|
||||
- @backstage/backend-plugin-api@0.2.0-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/types@1.0.2-next.1
|
||||
- @backstage/plugin-catalog-common@1.0.9-next.2
|
||||
|
||||
## 1.2.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-node",
|
||||
"description": "The plugin-catalog-node module for @backstage/plugin-catalog-backend",
|
||||
"version": "1.2.2-next.1",
|
||||
"version": "1.3.0-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
import { PluginEndpointDiscovery } from '@backstage/backend-common';
|
||||
import {
|
||||
createBackendModule,
|
||||
createServiceFactory,
|
||||
coreServices,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import { startTestBackend } from '@backstage/backend-test-utils';
|
||||
@@ -27,15 +26,6 @@ import { catalogServiceRef } from './catalogService';
|
||||
describe('catalogServiceRef', () => {
|
||||
it('should return a catalogClient', async () => {
|
||||
expect.assertions(1);
|
||||
|
||||
const mockDiscoveryFactory = createServiceFactory({
|
||||
service: coreServices.discovery,
|
||||
deps: {},
|
||||
factory: async ({}) => {
|
||||
return async () => jest.fn() as unknown as PluginEndpointDiscovery;
|
||||
},
|
||||
});
|
||||
|
||||
const testModule = createBackendModule({
|
||||
moduleId: 'test',
|
||||
pluginId: 'test',
|
||||
@@ -52,7 +42,9 @@ describe('catalogServiceRef', () => {
|
||||
});
|
||||
|
||||
await startTestBackend({
|
||||
services: [mockDiscoveryFactory],
|
||||
services: [
|
||||
[coreServices.discovery, {} as unknown as PluginEndpointDiscovery],
|
||||
],
|
||||
features: [testModule()],
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# @backstage/plugin-catalog-react
|
||||
|
||||
## 1.2.2-next.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 6ffa47bb0a: Cleanup and small fixes for the kind selector
|
||||
- Updated dependencies
|
||||
- @backstage/core-plugin-api@1.2.0-next.2
|
||||
- @backstage/core-components@0.12.1-next.2
|
||||
- @backstage/plugin-permission-react@0.4.8-next.2
|
||||
- @backstage/catalog-client@1.2.0-next.1
|
||||
- @backstage/catalog-model@1.1.4-next.1
|
||||
- @backstage/errors@1.1.4-next.1
|
||||
- @backstage/integration@1.4.1-next.1
|
||||
- @backstage/theme@0.2.16
|
||||
- @backstage/types@1.0.2-next.1
|
||||
- @backstage/version-bridge@1.0.3-next.0
|
||||
- @backstage/plugin-catalog-common@1.0.9-next.2
|
||||
- @backstage/plugin-permission-common@0.7.2-next.1
|
||||
|
||||
## 1.2.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -175,6 +175,7 @@ export const EntityKindPicker: (
|
||||
|
||||
// @public
|
||||
export interface EntityKindPickerProps {
|
||||
allowedKinds?: string[];
|
||||
// (undocumented)
|
||||
hidden?: boolean;
|
||||
// (undocumented)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-react",
|
||||
"description": "A frontend library that helps other Backstage plugins interact with the catalog",
|
||||
"version": "1.2.2-next.1",
|
||||
"version": "1.2.2-next.2",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user