Merge branch 'master' into mobile-sidebar

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2022-01-03 10:31:12 +01:00
233 changed files with 2907 additions and 1378 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-rollbar-backend': patch
---
Moved `@backstage/test-utils` to `devDependencies`.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/backend-test-utils': patch
---
Lazy-load `testcontainers` module in order to avoid side-effects.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': patch
---
Replaces the usage of `got` with `node-fetch` in the `getUserPhoto` method of the Microsoft provider
-24
View File
@@ -1,24 +0,0 @@
---
'@backstage/create-app': patch
---
removed inline and internal CSS from index.html
To make this change to an existing app, apply the following changes to the `packages/app/public/index.html` file:
Remove internal style
```diff
- <style>
- #root {
- min-height: 100%;
- }
- </style>
```
Remove inline style from the body tag
```diff
- <body style="margin: 0">
+ <body>
```
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-cost-insights': patch
---
Fixed an accidental re-export of `@backstage/test-utils` that broke this plugin in the most recent release.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/test-utils': patch
---
JSON serialize and freeze values stored by the `MockStorageApi`.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/techdocs-common': patch
---
Bump `@azure/identity` from `^1.5.0` to `^2.0.1`.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/backend-common': patch
---
In-memory cache clients instantiated from the same cache manager now share the same memory space.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/backend-common': patch
---
Use the default CSP policy provided by `helmet` directly rather than a copy.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': patch
---
Update `auth0` and `onelogin` providers to allow for `authHandler` and `signIn.resolver` configuration.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': patch
---
Fixed bug on refresh token on Okta provider, now it gets the refresh token and it sends it into providerInfo
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-tech-insights': minor
---
fixes api auth in tech-insights plugin
-29
View File
@@ -1,29 +0,0 @@
---
'@backstage/plugin-auth-backend': minor
---
Avoid ever returning OAuth refresh tokens back to the client, and always exchange refresh tokens for a new one when available for all providers.
This comes with a breaking change to the TypeScript API for custom auth providers. The `refresh` method of `OAuthHandlers` implementation must now return a `{ response, refreshToken }` object rather than a direct response. Existing `refresh` implementations are typically migrated by changing an existing return expression that looks like this:
```ts
return await this.handleResult({
fullProfile,
params,
accessToken,
refreshToken,
});
```
Into the following:
```ts
return {
response: await this.handleResult({
fullProfile,
params,
accessToken,
}),
refreshToken,
};
```
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-search': patch
---
Internal cleanup of the exports structure
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-search': patch
---
Fix missing search context issue with `HomePageSearchBar`
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/create-app': patch
---
Removed unused templating asset.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-app-backend': patch
---
Set `X-Frame-Options: deny` rather than the default `sameorigin` for all content served by the `app-backend`.`
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Fix issue with plugin:serve for Plugins not using Lerna monorepo.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
remove inline CSS from serve_index.html
-9
View File
@@ -1,9 +0,0 @@
---
'@backstage/backend-common': patch
'@backstage/plugin-catalog': patch
'@backstage/plugin-catalog-backend': patch
'@backstage/plugin-scaffolder': patch
'@backstage/plugin-scaffolder-backend': patch
---
Uptake changes to the GitHub Credentials Provider interface.
-7
View File
@@ -1,7 +0,0 @@
---
'@backstage/plugin-catalog-react': patch
---
When a user has zero owned entities when viewing an entity kind in the catalog
page, it will be automatically redirected to see all the entities. Furthermore,
for the kind User and Group there are no longer the owned selector.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/create-app': patch
---
Add a comment to the default backend about the fallback 404 handler.
-6
View File
@@ -1,6 +0,0 @@
---
'@backstage/plugin-techdocs': patch
---
Add the techdocs.sanitizer.allowedIframeHosts config.
This config allows all iframes which have the host of the attribute src in the 'allowedIframehosts' list to be displayed in the documentation.
-5
View File
@@ -1,5 +0,0 @@
---
'@techdocs/cli': patch
---
remove internal and inline CSS from index.html
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-rollbar-backend': patch
---
Replace the usage of `axios` with `node-fetch` in the Rollbar API
-7
View File
@@ -1,7 +0,0 @@
---
'@backstage/plugin-scaffolder': patch
'@backstage/plugin-scaffolder-backend': patch
'@backstage/plugin-scaffolder-common': patch
---
Support navigating back to pre-filled templates to update inputs of scaffolder tasks for resubmission
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': patch
---
Add Override Components for Components in @backstage/plugin-catalog-react
-7
View File
@@ -1,7 +0,0 @@
---
'@backstage/plugin-search': patch
---
Introduces a `<SearchType.Accordion />` variant, which operates on the same part of a search query as the existing `<SearchType />`, but in a more opinionated way (as a single-select control surface suitable for faceted search UIs).
Check the [search plugin storybook](https://backstage.io/storybook/?path=/story/plugins-search-searchtype--accordion) to see how it can be used.
@@ -1,5 +0,0 @@
---
'@backstage/plugin-search': patch
---
Captures the search term entered in the SearchBarBase as a `search` event.
-58
View File
@@ -1,58 +0,0 @@
---
'@backstage/create-app': patch
---
The `<SearchType />` filter in the composed `SearchPage.tsx` was replaced with the `<SearchType.Accordion />` variant.
This is an entirely optional change; if you wish to display a control surface for search `types` as a single-select accordion (as opposed to the current multi-select of checkboxes), you can make the following (or similar) changes to your search page layout:
```diff
--- a/packages/app/src/components/search/SearchPage.tsx
+++ b/packages/app/src/components/search/SearchPage.tsx
@@ -11,7 +11,7 @@ import {
SearchType,
DefaultResultListItem,
} from '@backstage/plugin-search';
-import { Content, Header, Page } from '@backstage/core-components';
+import { CatalogIcon, Content, DocsIcon, Header, Page } from '@backstage/core-components';
const useStyles = makeStyles((theme: Theme) => ({
bar: {
@@ -19,6 +19,7 @@ const useStyles = makeStyles((theme: Theme) => ({
},
filters: {
padding: theme.spacing(2),
+ marginTop: theme.spacing(2),
},
filter: {
'& + &': {
@@ -41,12 +42,23 @@ const SearchPage = () => {
</Paper>
</Grid>
<Grid item xs={3}>
+ <SearchType.Accordion
+ name="Result Type"
+ defaultValue="software-catalog"
+ types={[
+ {
+ value: 'software-catalog',
+ name: 'Software Catalog',
+ icon: <CatalogIcon />,
+ },
+ {
+ value: 'techdocs',
+ name: 'Documentation',
+ icon: <DocsIcon />,
+ },
+ ]}
+ />
<Paper className={classes.filters}>
- <SearchType
- values={['techdocs', 'software-catalog']}
- name="type"
- defaultValue="software-catalog"
- />
<SearchFilter.Select
className={classes.filter}
name="kind"
```
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-techdocs-backend': patch
---
Add support for API auth in DefaultTechDocsCollator
+7
View File
@@ -0,0 +1,7 @@
---
'@backstage/plugin-kubernetes': patch
'@backstage/plugin-kubernetes-backend': patch
'@backstage/plugin-kubernetes-common': patch
---
implement dashboard link formatter for GKE
-13
View File
@@ -1,13 +0,0 @@
---
'@backstage/integration': minor
---
Create an interface for the GitHub credentials provider in order to support providing implementations.
We have changed the name of the `GithubCredentialsProvider` to `SingleInstanceGithubCredentialsProvider`.
`GithubCredentialsProvider` is now an interface that maybe implemented to provide a custom mechanism to retrieve GitHub credentials.
In a later release we will support configuring URL readers, scaffolder tasks, and processors with customer GitHub credentials providers.
If you want to uptake this release, you will need to replace all references to `GithubCredentialsProvider.create` with `SingleInstanceGithubCredentialsProvider.create`.
-41
View File
@@ -1,41 +0,0 @@
---
'@backstage/create-app': patch
---
Add a `scheduler` to the plugin environment, which can schedule collaborative tasks across backends. To apply the same change in your backend, follow the steps below.
First install the package:
```shell
# From the Backstage repository root
cd packages/backend
yarn add @backstage/backend-tasks
```
Add the scheduler to your plugin environment type:
```diff
// In packages/backend/src/types.ts
+import { PluginTaskScheduler } from '@backstage/backend-tasks';
export type PluginEnvironment = {
+ scheduler: PluginTaskScheduler;
```
And finally make sure to add such an instance to each plugin's environment:
```diff
// In packages/backend/src/index.ts
+import { TaskScheduler } from '@backstage/backend-tasks';
function makeCreateEnv(config: Config) {
// ...
+ const taskScheduler = TaskScheduler.fromConfig(config);
return (plugin: string): PluginEnvironment => {
// ...
+ const scheduler = taskScheduler.forPlugin(plugin);
return {
+ scheduler,
// ...
```
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-tech-insights': patch
---
Export `techInsightsApiRef` and associated types.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-tech-insights': patch
---
remove unnecessary http request when running all checks
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/config-loader': patch
---
Bump `typescript-json-schema` from `^0.51.0` to `^0.52.0`.
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-tech-insights-backend-module-jsonfc': patch
---
ability to add custom operators
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/cli': patch
---
Add option to build command for minifying the generated code
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-api-docs': patch
'@backstage/plugin-catalog': patch
---
Support customizing index page layouts via outlets
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-auth-backend': patch
---
Enforce cookie SSL protection when in production for auth-backend sessions
+9
View File
@@ -0,0 +1,9 @@
---
'@backstage/backend-tasks': patch
---
Updated README to clarify the following:
- Dashes cannot be used in the `id`, changed to an underscore in the example
- The `timeout` is required, this was also added to the example
- Added a note about tasks not running as expected for local development using persistent database
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-api-docs': patch
---
Display entity title on `ApiDefinitionCard` if defined