Merge branch 'backstage:master' into master
This commit is contained in:
@@ -1,5 +1,20 @@
|
||||
# @backstage/plugin-adr-backend
|
||||
|
||||
## 0.4.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/plugin-adr-common@0.2.16-next.0
|
||||
- @backstage/plugin-search-common@1.2.6
|
||||
|
||||
## 0.4.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-adr-backend",
|
||||
"version": "0.4.2-next.0",
|
||||
"version": "0.4.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @backstage/plugin-adr
|
||||
|
||||
## 0.6.8-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 1204e7628e: Create an experimental `AdrSearchResultItemExtension` for declarative integration with Backstage; it can be accessed via the `/alpha` import.
|
||||
- Updated dependencies
|
||||
- @backstage/frontend-plugin-api@0.1.1-next.1
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-search-react@1.7.1-next.1
|
||||
- @backstage/integration-react@1.1.20-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/theme@0.4.2
|
||||
- @backstage/plugin-adr-common@0.2.16-next.0
|
||||
- @backstage/plugin-search-common@1.2.6
|
||||
|
||||
## 0.6.8-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -3,8 +3,16 @@
|
||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||
|
||||
```ts
|
||||
import { BackstagePlugin } from '@backstage/frontend-plugin-api';
|
||||
import { Extension } from '@backstage/frontend-plugin-api';
|
||||
import { TranslationRef } from '@backstage/core-plugin-api/alpha';
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const AdrSearchResultListItemExtension: Extension<{
|
||||
lineClamp: number;
|
||||
noTrack: boolean;
|
||||
}>;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const adrTranslationRef: TranslationRef<
|
||||
'adr',
|
||||
@@ -15,5 +23,9 @@ export const adrTranslationRef: TranslationRef<
|
||||
}
|
||||
>;
|
||||
|
||||
// @alpha (undocumented)
|
||||
const _default: BackstagePlugin;
|
||||
export default _default;
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
```
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"name": "@backstage/plugin-adr",
|
||||
"version": "0.6.8-next.0",
|
||||
"version": "0.6.8-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
"./alpha": "./src/alpha.ts",
|
||||
"./alpha": "./src/alpha.tsx",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
"alpha": [
|
||||
"src/alpha.ts"
|
||||
"src/alpha.tsx"
|
||||
],
|
||||
"package.json": [
|
||||
"package.json"
|
||||
@@ -45,6 +45,7 @@
|
||||
"@backstage/catalog-model": "workspace:^",
|
||||
"@backstage/core-components": "workspace:^",
|
||||
"@backstage/core-plugin-api": "workspace:^",
|
||||
"@backstage/frontend-plugin-api": "workspace:^",
|
||||
"@backstage/integration-react": "workspace:^",
|
||||
"@backstage/plugin-adr-common": "workspace:^",
|
||||
"@backstage/plugin-catalog-react": "workspace:^",
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2023 The Backstage Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import {
|
||||
createPlugin,
|
||||
createSchemaFromZod,
|
||||
} from '@backstage/frontend-plugin-api';
|
||||
import { createSearchResultListItemExtension } from '@backstage/plugin-search-react/alpha';
|
||||
import { AdrDocument } from '@backstage/plugin-adr-common';
|
||||
|
||||
export * from './translations';
|
||||
|
||||
function isAdrDocument(result: any): result is AdrDocument {
|
||||
return result.entityRef;
|
||||
}
|
||||
|
||||
/** @alpha */
|
||||
export const AdrSearchResultListItemExtension =
|
||||
createSearchResultListItemExtension({
|
||||
id: 'adr',
|
||||
configSchema: createSchemaFromZod(z =>
|
||||
z.object({
|
||||
// TODO: Define how the icon can be configurable
|
||||
noTrack: z.boolean().default(false),
|
||||
lineClamp: z.number().default(5),
|
||||
}),
|
||||
),
|
||||
predicate: result => result.type === 'adr',
|
||||
component: async ({ config }) => {
|
||||
const { AdrSearchResultListItem } = await import(
|
||||
'./search/AdrSearchResultListItem'
|
||||
);
|
||||
return ({ result, ...rest }) =>
|
||||
isAdrDocument(result) ? (
|
||||
<AdrSearchResultListItem {...rest} {...config} result={result} />
|
||||
) : null;
|
||||
},
|
||||
});
|
||||
|
||||
/** @alpha */
|
||||
export default createPlugin({
|
||||
id: 'adr',
|
||||
extensions: [AdrSearchResultListItemExtension],
|
||||
});
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-airbrake-backend
|
||||
|
||||
## 0.3.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
|
||||
## 0.3.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-airbrake-backend",
|
||||
"version": "0.3.2-next.0",
|
||||
"version": "0.3.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-airbrake
|
||||
|
||||
## 0.3.25-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/test-utils@1.4.4-next.1
|
||||
- @backstage/dev-utils@1.0.22-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.3.25-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-airbrake",
|
||||
"version": "0.3.25-next.0",
|
||||
"version": "0.3.25-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @backstage/plugin-allure
|
||||
|
||||
## 0.1.41-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.1.41-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-allure",
|
||||
"description": "A Backstage plugin that integrates with Allure",
|
||||
"version": "0.1.41-next.0",
|
||||
"version": "0.1.41-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @backstage/plugin-analytics-module-ga
|
||||
|
||||
## 0.1.34-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.1.34-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-analytics-module-ga",
|
||||
"version": "0.1.34-next.0",
|
||||
"version": "0.1.34-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @backstage/plugin-analytics-module-ga4
|
||||
|
||||
## 0.1.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.1.5-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-analytics-module-ga4",
|
||||
"version": "0.1.5-next.0",
|
||||
"version": "0.1.5-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-analytics-module-newrelic-browser
|
||||
|
||||
## 0.0.3-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/config@1.1.0
|
||||
|
||||
## 0.0.3-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-analytics-module-newrelic-browser",
|
||||
"version": "0.0.3-next.0",
|
||||
"version": "0.0.3-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @backstage/plugin-apache-airflow
|
||||
|
||||
## 0.2.16-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
|
||||
## 0.2.16-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-apache-airflow",
|
||||
"version": "0.2.16-next.0",
|
||||
"version": "0.2.16-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-api-docs
|
||||
|
||||
## 0.9.12-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog@1.14.0-next.1
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.9.12-next.0
|
||||
|
||||
### 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.9.12-next.0",
|
||||
"version": "0.9.12-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-apollo-explorer
|
||||
|
||||
## 0.1.16-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.1.16-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-apollo-explorer",
|
||||
"version": "0.1.16-next.0",
|
||||
"version": "0.1.16-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-app-backend
|
||||
|
||||
## 0.3.53-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/config-loader@1.5.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-app-node@0.1.5-next.1
|
||||
|
||||
## 0.3.53-next.0
|
||||
|
||||
### 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.53-next.0",
|
||||
"version": "0.3.53-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @backstage/plugin-app-node
|
||||
|
||||
## 0.1.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
|
||||
## 0.1.5-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-app-node",
|
||||
"description": "Node.js library for the app plugin",
|
||||
"version": "0.1.5-next.0",
|
||||
"version": "0.1.5-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @backstage/plugin-auth-backend-module-gcp-iap-provider
|
||||
|
||||
## 0.1.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/types@1.1.1
|
||||
|
||||
## 0.1.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend-module-gcp-iap-provider",
|
||||
"description": "A GCP IAP auth provider module for the Backstage auth backend",
|
||||
"version": "0.1.2-next.0",
|
||||
"version": "0.1.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-auth-backend-module-github-provider
|
||||
|
||||
## 0.1.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
|
||||
## 0.1.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend-module-github-provider",
|
||||
"description": "The github-provider backend module for the auth plugin.",
|
||||
"version": "0.1.2-next.0",
|
||||
"version": "0.1.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-auth-backend-module-gitlab-provider
|
||||
|
||||
## 0.1.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
|
||||
## 0.1.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend-module-gitlab-provider",
|
||||
"description": "The gitlab-provider backend module for the auth plugin.",
|
||||
"version": "0.1.2-next.0",
|
||||
"version": "0.1.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @backstage/plugin-auth-backend-module-google-provider
|
||||
|
||||
## 0.1.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
|
||||
## 0.1.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend-module-google-provider",
|
||||
"description": "A Google auth provider module for the Backstage auth backend",
|
||||
"version": "0.1.2-next.0",
|
||||
"version": "0.1.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-auth-backend-module-oauth2-provider
|
||||
|
||||
## 0.1.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
|
||||
## 0.1.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend-module-oauth2-provider",
|
||||
"description": "The oauth2-provider backend module for the auth plugin.",
|
||||
"version": "0.1.2-next.0",
|
||||
"version": "0.1.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# @backstage/plugin-auth-backend
|
||||
|
||||
## 0.19.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-backend-module-github-provider@0.1.2-next.1
|
||||
- @backstage/plugin-auth-backend-module-gitlab-provider@0.1.2-next.1
|
||||
- @backstage/plugin-auth-backend-module-oauth2-provider@0.1.2-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-auth-backend-module-gcp-iap-provider@0.1.2-next.1
|
||||
- @backstage/plugin-auth-backend-module-google-provider@0.1.2-next.1
|
||||
|
||||
## 0.19.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-backend",
|
||||
"description": "A Backstage backend plugin that handles authentication",
|
||||
"version": "0.19.2-next.0",
|
||||
"version": "0.19.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-auth-node
|
||||
|
||||
## 0.3.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/types@1.1.1
|
||||
|
||||
## 0.3.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-auth-node",
|
||||
"version": "0.3.2-next.0",
|
||||
"version": "0.3.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @backstage/plugin-azure-devops-backend
|
||||
|
||||
## 0.4.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/plugin-azure-devops-common@0.3.1
|
||||
|
||||
## 0.4.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-devops-backend",
|
||||
"version": "0.4.2-next.0",
|
||||
"version": "0.4.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-azure-devops
|
||||
|
||||
## 0.3.7-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/theme@0.4.2
|
||||
- @backstage/plugin-azure-devops-common@0.3.1
|
||||
|
||||
## 0.3.7-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-devops",
|
||||
"version": "0.3.7-next.0",
|
||||
"version": "0.3.7-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-azure-sites-backend
|
||||
|
||||
## 0.1.15-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/plugin-azure-sites-common@0.1.1
|
||||
|
||||
## 0.1.15-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-sites-backend",
|
||||
"version": "0.1.15-next.0",
|
||||
"version": "0.1.15-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-azure-sites
|
||||
|
||||
## 0.1.14-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/theme@0.4.2
|
||||
- @backstage/plugin-azure-sites-common@0.1.1
|
||||
|
||||
## 0.1.14-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-azure-sites",
|
||||
"version": "0.1.14-next.0",
|
||||
"version": "0.1.14-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-badges-backend
|
||||
|
||||
## 0.3.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 817f2acbb1: Make sure the default badge factory is used if nothing is defined
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
|
||||
## 0.3.2-next.0
|
||||
|
||||
### 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.3.2-next.0",
|
||||
"version": "0.3.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -20,6 +20,7 @@ import {
|
||||
createBackendPlugin,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import { createRouter } from './service/router';
|
||||
import { createDefaultBadgeFactories } from './badges';
|
||||
|
||||
/**
|
||||
* Badges backend plugin
|
||||
@@ -50,6 +51,7 @@ export const badgesPlugin = createBackendPlugin({
|
||||
await createRouter({
|
||||
config,
|
||||
logger: loggerToWinstonLogger(logger),
|
||||
badgeFactories: createDefaultBadgeFactories(),
|
||||
discovery,
|
||||
tokenManager,
|
||||
identity,
|
||||
|
||||
@@ -32,6 +32,7 @@ import { Logger } from 'winston';
|
||||
import { IdentityApi } from '@backstage/plugin-auth-node';
|
||||
import { getBearerTokenFromAuthorizationHeader } from '@backstage/plugin-auth-node';
|
||||
import { BadgesStore, DatabaseBadgesStore } from '../database/badgesStore';
|
||||
import { createDefaultBadgeFactories } from '../badges';
|
||||
|
||||
/** @public */
|
||||
export interface RouterOptions {
|
||||
@@ -54,7 +55,9 @@ export async function createRouter(
|
||||
options.catalog || new CatalogClient({ discoveryApi: options.discovery });
|
||||
const badgeBuilder =
|
||||
options.badgeBuilder ||
|
||||
new DefaultBadgeBuilder(options.badgeFactories || {});
|
||||
new DefaultBadgeBuilder(
|
||||
options.badgeFactories || createDefaultBadgeFactories(),
|
||||
);
|
||||
const router = Router();
|
||||
|
||||
const { config, logger, tokenManager, discovery, identity } = options;
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-badges
|
||||
|
||||
## 0.2.49-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.2.49-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-badges",
|
||||
"description": "A Backstage plugin that generates README badges for your entities",
|
||||
"version": "0.2.49-next.0",
|
||||
"version": "0.2.49-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @backstage/plugin-bazaar-backend
|
||||
|
||||
## 0.3.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/errors@1.2.2
|
||||
|
||||
## 0.3.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-bazaar-backend",
|
||||
"version": "0.3.2-next.0",
|
||||
"version": "0.3.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# @backstage/plugin-bazaar
|
||||
|
||||
## 0.2.17-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog@1.14.0-next.1
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/cli@0.23.0-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.2.17-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-bazaar",
|
||||
"version": "0.2.17-next.0",
|
||||
"version": "0.2.17-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @backstage/plugin-bitrise
|
||||
|
||||
## 0.1.52-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/core-components@0.13.6-next.1
|
||||
- @backstage/plugin-catalog-react@1.8.5-next.1
|
||||
- @backstage/core-plugin-api@1.7.0-next.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/theme@0.4.2
|
||||
|
||||
## 0.1.52-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-bitrise",
|
||||
"description": "A Backstage plugin that integrates towards Bitrise",
|
||||
"version": "0.1.52-next.0",
|
||||
"version": "0.1.52-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# @backstage/plugin-catalog-backend-module-aws
|
||||
|
||||
## 0.2.8-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/plugin-kubernetes-common@0.7.0-next.0
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/integration-aws-node@0.1.6
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
|
||||
## 0.2.8-next.0
|
||||
|
||||
### 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.2.8-next.0",
|
||||
"version": "0.2.8-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @backstage/plugin-catalog-backend-module-azure
|
||||
|
||||
## 0.1.24-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
|
||||
## 0.1.24-next.0
|
||||
|
||||
### 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.24-next.0",
|
||||
"version": "0.1.24-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @backstage/plugin-catalog-backend-module-bitbucket-cloud
|
||||
|
||||
## 0.1.20-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/plugin-bitbucket-cloud-common@0.2.13-next.0
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
- @backstage/plugin-events-node@0.2.14-next.1
|
||||
|
||||
## 0.1.20-next.0
|
||||
|
||||
### 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.20-next.0",
|
||||
"version": "0.1.20-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-catalog-backend-module-bitbucket-server
|
||||
|
||||
## 0.1.18-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
|
||||
## 0.1.18-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-bitbucket-server",
|
||||
"version": "0.1.18-next.0",
|
||||
"version": "0.1.18-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-catalog-backend-module-bitbucket
|
||||
|
||||
## 0.2.20-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-bitbucket-cloud-common@0.2.13-next.0
|
||||
|
||||
## 0.2.20-next.0
|
||||
|
||||
### 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.20-next.0",
|
||||
"version": "0.2.20-next.1",
|
||||
"deprecated": true,
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-catalog-backend-module-gcp
|
||||
|
||||
## 0.1.5-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/plugin-kubernetes-common@0.7.0-next.0
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
|
||||
## 0.1.5-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-gcp",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards GCP",
|
||||
"version": "0.1.5-next.0",
|
||||
"version": "0.1.5-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-catalog-backend-module-gerrit
|
||||
|
||||
## 0.1.21-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
|
||||
## 0.1.21-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-gerrit",
|
||||
"version": "0.1.21-next.0",
|
||||
"version": "0.1.21-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# @backstage/plugin-catalog-backend-module-github
|
||||
|
||||
## 0.4.3-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b4b1cbf9fa: Make `defaultUserTransformer` resolve to `UserEntity` instead of `Entity`
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-backend@1.14.0-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
- @backstage/plugin-events-node@0.2.14-next.1
|
||||
|
||||
## 0.4.3-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -24,12 +24,16 @@ import { ScmIntegrationRegistry } from '@backstage/integration';
|
||||
import { ScmLocationAnalyzer } from '@backstage/plugin-catalog-backend';
|
||||
import { TaskRunner } from '@backstage/backend-tasks';
|
||||
import { TokenManager } from '@backstage/backend-common';
|
||||
import { UserEntity } from '@backstage/catalog-model';
|
||||
|
||||
// @public
|
||||
export const defaultOrganizationTeamTransformer: TeamTransformer;
|
||||
|
||||
// @public
|
||||
export const defaultUserTransformer: UserTransformer;
|
||||
export const defaultUserTransformer: (
|
||||
item: GithubUser,
|
||||
_ctx: TransformerContext,
|
||||
) => Promise<UserEntity | undefined>;
|
||||
|
||||
// @public
|
||||
export class GithubDiscoveryProcessor implements CatalogProcessor {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-github",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards GitHub",
|
||||
"version": "0.4.3-next.0",
|
||||
"version": "0.4.3-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -58,9 +58,10 @@ export type TeamTransformer = (
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const defaultUserTransformer: UserTransformer = async (
|
||||
export const defaultUserTransformer = async (
|
||||
item: GithubUser,
|
||||
) => {
|
||||
_ctx: TransformerContext,
|
||||
): Promise<UserEntity | undefined> => {
|
||||
const entity: UserEntity = {
|
||||
apiVersion: 'backstage.io/v1alpha1',
|
||||
kind: 'User',
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @backstage/plugin-catalog-backend-module-gitlab
|
||||
|
||||
## 0.3.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 6ae7f12abb: Make sure the archived projects are skipped with the Gitlab API
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
|
||||
## 0.3.2-next.0
|
||||
|
||||
### 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.3.2-next.0",
|
||||
"version": "0.3.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -237,14 +237,6 @@ describe('GitlabDiscoveryProcessor', () => {
|
||||
web_url: 'https://gitlab.fake/3',
|
||||
path_with_namespace: '3',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
archived: true, // ARCHIVED
|
||||
default_branch: 'master',
|
||||
last_activity_at: '2021-08-05T11:03:05.774Z',
|
||||
web_url: 'https://gitlab.fake/4',
|
||||
path_with_namespace: '4',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
archived: false,
|
||||
|
||||
@@ -120,6 +120,14 @@ function setupFakeHasFileEndpoint(srv: SetupServer, apiBaseUrl: string) {
|
||||
);
|
||||
}
|
||||
|
||||
function setupFakeURLReturnEndpoint(srv: SetupServer, url: string) {
|
||||
srv.use(
|
||||
rest.get(url, (req, res, ctx) => {
|
||||
return res(ctx.json([{ endpoint: req.url.toString() }]));
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
describe('GitLabClient', () => {
|
||||
describe('isSelfManaged', () => {
|
||||
it('returns true if self managed instance', () => {
|
||||
@@ -933,3 +941,84 @@ describe('hasFile', () => {
|
||||
expect(hasFile).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('pagedRequest search params', () => {
|
||||
beforeEach(() => {
|
||||
// setup fake paginated endpoint with 4 pages each returning one item
|
||||
setupFakeURLReturnEndpoint(server, FAKE_PAGED_URL);
|
||||
});
|
||||
|
||||
it('no search params provided', async () => {
|
||||
const client = new GitLabClient({
|
||||
config: MOCK_CONFIG,
|
||||
logger: getVoidLogger(),
|
||||
});
|
||||
|
||||
const { items } = await client.pagedRequest<{ endpoint: string }>(
|
||||
FAKE_PAGED_ENDPOINT,
|
||||
);
|
||||
// fake page contains exactly one item
|
||||
expect(items).toHaveLength(1);
|
||||
expect(items).toEqual([
|
||||
{ endpoint: 'https://example.com/api/v4/some-endpoint' },
|
||||
]);
|
||||
});
|
||||
|
||||
it('defined numeric search params', async () => {
|
||||
const client = new GitLabClient({
|
||||
config: MOCK_CONFIG,
|
||||
logger: getVoidLogger(),
|
||||
});
|
||||
|
||||
const { items } = await client.pagedRequest<{ endpoint: string }>(
|
||||
FAKE_PAGED_ENDPOINT,
|
||||
{ page: 1, per_page: 50 },
|
||||
);
|
||||
// fake page contains exactly one item
|
||||
expect(items).toHaveLength(1);
|
||||
expect(items).toEqual([
|
||||
{
|
||||
endpoint: 'https://example.com/api/v4/some-endpoint?page=1&per_page=50',
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it('defined string search params', async () => {
|
||||
const client = new GitLabClient({
|
||||
config: MOCK_CONFIG,
|
||||
logger: getVoidLogger(),
|
||||
});
|
||||
|
||||
const { items } = await client.pagedRequest<{ endpoint: string }>(
|
||||
FAKE_PAGED_ENDPOINT,
|
||||
{ test: 'value', empty: '' },
|
||||
);
|
||||
// fake page contains exactly one item
|
||||
expect(items).toHaveLength(1);
|
||||
expect(items).toEqual([
|
||||
{
|
||||
endpoint: 'https://example.com/api/v4/some-endpoint?test=value',
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it('defined boolean search params', async () => {
|
||||
const client = new GitLabClient({
|
||||
config: MOCK_CONFIG,
|
||||
logger: getVoidLogger(),
|
||||
});
|
||||
|
||||
const { items } = await client.pagedRequest<{ endpoint: string }>(
|
||||
FAKE_PAGED_ENDPOINT,
|
||||
{ active: true, archived: false },
|
||||
);
|
||||
// fake page contains exactly one item
|
||||
expect(items).toHaveLength(1);
|
||||
expect(items).toEqual([
|
||||
{
|
||||
endpoint:
|
||||
'https://example.com/api/v4/some-endpoint?active=true&archived=false',
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -309,7 +309,7 @@ export class GitLabClient {
|
||||
): Promise<PagedResponse<T>> {
|
||||
const request = new URL(`${this.config.apiBaseUrl}${endpoint}`);
|
||||
for (const key in options) {
|
||||
if (options[key]) {
|
||||
if (options[key] !== undefined && options[key] !== '') {
|
||||
request.searchParams.append(key, options[key]!.toString());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @backstage/plugin-catalog-backend-module-incremental-ingestion
|
||||
|
||||
## 0.4.9-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-backend@1.14.0-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/plugin-events-node@0.2.14-next.1
|
||||
- @backstage/plugin-permission-common@0.7.8
|
||||
|
||||
## 0.4.9-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -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.4.9-next.0",
|
||||
"version": "0.4.9-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-catalog-backend-module-ldap
|
||||
|
||||
## 0.5.20-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
|
||||
## 0.5.20-next.0
|
||||
|
||||
### 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.20-next.0",
|
||||
"version": "0.5.20-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @backstage/plugin-catalog-backend-module-msgraph
|
||||
|
||||
## 0.5.12-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
|
||||
## 0.5.12-next.0
|
||||
|
||||
### 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.5.12-next.0",
|
||||
"version": "0.5.12-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-catalog-backend-module-openapi
|
||||
|
||||
## 0.1.22-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-backend@1.14.0-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
|
||||
## 0.1.22-next.0
|
||||
|
||||
### 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.22-next.0",
|
||||
"version": "0.1.22-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# @backstage/plugin-catalog-backend-module-puppetdb
|
||||
|
||||
## 0.1.10-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/types@1.1.1
|
||||
|
||||
## 0.1.10-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-puppetdb",
|
||||
"description": "A Backstage catalog backend module that helps integrate towards PuppetDB",
|
||||
"version": "0.1.10-next.0",
|
||||
"version": "0.1.10-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @backstage/plugin-catalog-backend-module-scaffolder-entity-model
|
||||
|
||||
## 0.1.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
- @backstage/plugin-scaffolder-common@1.4.1
|
||||
|
||||
## 0.1.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-scaffolder-entity-model",
|
||||
"description": "Adds support for the scaffolder specific entity model (e.g. the Template kind) to the catalog backend plugin.",
|
||||
"version": "0.1.2-next.0",
|
||||
"version": "0.1.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @backstage/plugin-catalog-backend-module-unprocessed
|
||||
|
||||
## 0.3.2-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
- @backstage/catalog-model@1.4.2
|
||||
|
||||
## 0.3.2-next.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@backstage/plugin-catalog-backend-module-unprocessed",
|
||||
"description": "Backstage Catalog module to view unprocessed entities",
|
||||
"version": "0.3.2-next.0",
|
||||
"version": "0.3.2-next.1",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
"license": "Apache-2.0",
|
||||
|
||||
@@ -1,5 +1,31 @@
|
||||
# @backstage/plugin-catalog-backend
|
||||
|
||||
## 1.14.0-next.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 7a2e2924c7: Marked the `LocationEntityProcessor` as deprecated, as it is no longer used internally since way back and can even be harmful at this point.
|
||||
- Updated dependencies
|
||||
- @backstage/backend-tasks@0.5.10-next.1
|
||||
- @backstage/plugin-catalog-node@1.4.6-next.1
|
||||
- @backstage/backend-common@0.19.7-next.1
|
||||
- @backstage/backend-plugin-api@0.6.5-next.1
|
||||
- @backstage/plugin-search-backend-module-catalog@0.1.9-next.1
|
||||
- @backstage/plugin-auth-node@0.3.2-next.1
|
||||
- @backstage/plugin-permission-node@0.7.16-next.1
|
||||
- @backstage/config@1.1.0
|
||||
- @backstage/backend-openapi-utils@0.0.4
|
||||
- @backstage/catalog-client@1.4.4
|
||||
- @backstage/catalog-model@1.4.2
|
||||
- @backstage/errors@1.2.2
|
||||
- @backstage/integration@1.7.1-next.0
|
||||
- @backstage/types@1.1.1
|
||||
- @backstage/plugin-catalog-common@1.0.16
|
||||
- @backstage/plugin-events-node@0.2.14-next.1
|
||||
- @backstage/plugin-permission-common@0.7.8
|
||||
- @backstage/plugin-scaffolder-common@1.4.1
|
||||
- @backstage/plugin-search-common@1.2.6
|
||||
|
||||
## 1.14.0-next.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user