@backstage/plugin-scaffolder 1.7.0-next.1 → 1.7.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +42 -0
- package/alpha/package.json +1 -1
- package/dist/esm/{Router-825957a6.esm.js → Router-4521e309.esm.js} +3 -3
- package/dist/esm/{Router-825957a6.esm.js.map → Router-4521e309.esm.js.map} +1 -1
- package/dist/esm/{default-93ca10ec.esm.js → default-bdf322b4.esm.js} +2 -2
- package/dist/esm/{default-93ca10ec.esm.js.map → default-bdf322b4.esm.js.map} +1 -1
- package/dist/esm/{index-b0f75505.esm.js → index-bac377e4.esm.js} +40 -25
- package/dist/esm/index-bac377e4.esm.js.map +1 -0
- package/dist/esm/{index-d658652f.esm.js → index-e49d2205.esm.js} +34 -15
- package/dist/esm/index-e49d2205.esm.js.map +1 -0
- package/dist/index.alpha.d.ts +43 -0
- package/dist/index.beta.d.ts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.esm.js +1 -1
- package/package.json +22 -18
- package/dist/esm/index-b0f75505.esm.js.map +0 -1
- package/dist/esm/index-d658652f.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.7.0-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 92e490d6b4: Make the `/next` scaffolder work end to end with the old `TaskPage` view
|
|
8
|
+
- 1047baa926: Bump to `react-jsonschema-form@v5-beta` for the `NextRouter` under `@alpha` exports
|
|
9
|
+
- 98ae18b68f: Fixed a bug where the `allowed*` values for the `RepoUrlPicker` would be reset on render.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @backstage/plugin-catalog-common@1.0.7-next.2
|
|
12
|
+
- @backstage/plugin-catalog-react@1.2.0-next.2
|
|
13
|
+
- @backstage/plugin-permission-react@0.4.6-next.2
|
|
14
|
+
- @backstage/catalog-client@1.1.1-next.2
|
|
15
|
+
- @backstage/catalog-model@1.1.2-next.2
|
|
16
|
+
- @backstage/config@1.0.3-next.2
|
|
17
|
+
- @backstage/core-components@0.11.2-next.2
|
|
18
|
+
- @backstage/core-plugin-api@1.0.7-next.2
|
|
19
|
+
- @backstage/errors@1.1.2-next.2
|
|
20
|
+
- @backstage/integration@1.3.2-next.2
|
|
21
|
+
- @backstage/integration-react@1.1.5-next.2
|
|
22
|
+
- @backstage/theme@0.2.16
|
|
23
|
+
- @backstage/types@1.0.0
|
|
24
|
+
- @backstage/plugin-scaffolder-common@1.2.1-next.2
|
|
25
|
+
|
|
3
26
|
## 1.7.0-next.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -79,6 +79,48 @@ export const Root = ({ children }: PropsWithChildren<{}>) => (
|
|
|
79
79
|
</Sidebar>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
+
### Troubleshooting
|
|
83
|
+
|
|
84
|
+
If you encounter the [issue of closing EventStream](https://github.com/backstage/backstage/issues/5535)
|
|
85
|
+
which auto-updates logs during task execution, you can enable long polling. To do so,
|
|
86
|
+
update your `packages/app/src/apis.ts` file to register a `ScaffolderClient` with the
|
|
87
|
+
`useLongPollingLogs` set to `true`. By default, it is `false`.
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
import {
|
|
91
|
+
createApiFactory,
|
|
92
|
+
discoveryApiRef,
|
|
93
|
+
fetchApiRef,
|
|
94
|
+
identityApiRef,
|
|
95
|
+
} from '@backstage/core-plugin-api';
|
|
96
|
+
import {
|
|
97
|
+
scaffolderApiRef,
|
|
98
|
+
ScaffolderClient,
|
|
99
|
+
} from '@backstage/plugin-scaffolder';
|
|
100
|
+
|
|
101
|
+
export const apis: AnyApiFactory[] = [
|
|
102
|
+
createApiFactory({
|
|
103
|
+
api: scaffolderApiRef,
|
|
104
|
+
deps: {
|
|
105
|
+
discoveryApi: discoveryApiRef,
|
|
106
|
+
identityApi: identityApiRef,
|
|
107
|
+
scmIntegrationsApi: scmIntegrationsApiRef,
|
|
108
|
+
fetchApi: fetchApiRef,
|
|
109
|
+
},
|
|
110
|
+
factory: ({ scmIntegrationsApi, discoveryApi, identityApi, fetchApi }) =>
|
|
111
|
+
new ScaffolderClient({
|
|
112
|
+
discoveryApi,
|
|
113
|
+
identityApi,
|
|
114
|
+
scmIntegrationsApi,
|
|
115
|
+
fetchApi,
|
|
116
|
+
useLongPollingLogs: true,
|
|
117
|
+
}),
|
|
118
|
+
}),
|
|
119
|
+
// ... other factories
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
This replaces the default implementation of the `scaffolderApiRef`.
|
|
123
|
+
|
|
82
124
|
## Links
|
|
83
125
|
|
|
84
126
|
- [scaffolder-backend](https://github.com/backstage/backstage/tree/master/plugins/scaffolder-backend)
|
package/alpha/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { useNavigate, Navigate, useOutlet, Routes, Route } from 'react-router';
|
|
|
3
3
|
import { ItemCardHeader, MarkdownContent, Button, ContentHeader, Progress, WarningPanel, Link as Link$1, Content, ItemCardGrid, Page, Header, CreateButton, SupportButton, StructuredMetadataTable, InfoCard, ErrorPage, ErrorPanel, LogViewer, StatusError, StatusOK, StatusPending, Lifecycle, EmptyState, Table as Table$1 } from '@backstage/core-components';
|
|
4
4
|
import { useApp, useRouteRef, useApi, errorApiRef, featureFlagsApiRef, useApiHolder, useRouteRefParams, alertApiRef, useElementFilter } from '@backstage/core-plugin-api';
|
|
5
5
|
import { getEntityRelations, getEntitySourceLocation, FavoriteEntity, EntityRefLinks, useEntityList, EntityListProvider, CatalogFilterLayout, EntitySearchBar, EntityKindPicker, UserListPicker, EntityTagPicker, catalogApiRef, humanizeEntityRef, EntityRefLink } from '@backstage/plugin-catalog-react';
|
|
6
|
-
import { s as selectedTemplateRouteRef, v as viewTechDocRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, S as SecretsContext, c as scaffolderApiRef, d as scaffolderTaskRouteRef, f as rootRouteRef, g as TaskStatusStepper, h as TaskPageLinks, F as FIELD_EXTENSION_WRAPPER_KEY, i as FIELD_EXTENSION_KEY, L as LAYOUTS_WRAPPER_KEY, j as LAYOUTS_KEY, l as legacySelectedTemplateRouteRef, k as SecretsContextProvider, m as TaskPage } from './index-
|
|
6
|
+
import { s as selectedTemplateRouteRef, v as viewTechDocRouteRef, e as editRouteRef, a as actionsRouteRef, b as scaffolderListTaskRouteRef, r as registerComponentRouteRef, T as TemplateTypePicker, S as SecretsContext, c as scaffolderApiRef, d as scaffolderTaskRouteRef, f as rootRouteRef, g as TaskStatusStepper, h as TaskPageLinks, F as FIELD_EXTENSION_WRAPPER_KEY, i as FIELD_EXTENSION_KEY, L as LAYOUTS_WRAPPER_KEY, j as LAYOUTS_KEY, l as legacySelectedTemplateRouteRef, k as SecretsContextProvider, m as TaskPage } from './index-e49d2205.esm.js';
|
|
7
7
|
import { RELATION_OWNED_BY, parseEntityRef, stringifyEntityRef, DEFAULT_NAMESPACE } from '@backstage/catalog-model';
|
|
8
8
|
import { makeStyles, useTheme, Card, CardMedia, CardContent, Box, Typography, Chip, CardActions, Tooltip, IconButton, Link, Stepper, Step, StepLabel, StepContent, Button as Button$1, Paper, LinearProgress, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Divider as Divider$1, FormControl, InputLabel, Select, MenuItem as MenuItem$1, List as List$2, ListItemIcon as ListItemIcon$1, ListItemText as ListItemText$1 } from '@material-ui/core';
|
|
9
9
|
import { scmIntegrationsApiRef, ScmIntegrationIcon } from '@backstage/integration-react';
|
|
@@ -66,7 +66,7 @@ import SettingsIcon from '@material-ui/icons/Settings';
|
|
|
66
66
|
import AllIcon from '@material-ui/icons/FontDownload';
|
|
67
67
|
import { DateTime, Interval } from 'luxon';
|
|
68
68
|
import humanizeDuration from 'humanize-duration';
|
|
69
|
-
import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-
|
|
69
|
+
import { D as DEFAULT_SCAFFOLDER_FIELD_EXTENSIONS } from './default-bdf322b4.esm.js';
|
|
70
70
|
import '@backstage/errors';
|
|
71
71
|
import 'zen-observable';
|
|
72
72
|
import '@material-ui/core/FormControl';
|
|
@@ -2592,4 +2592,4 @@ const Router = (props) => {
|
|
|
2592
2592
|
};
|
|
2593
2593
|
|
|
2594
2594
|
export { Router };
|
|
2595
|
-
//# sourceMappingURL=Router-
|
|
2595
|
+
//# sourceMappingURL=Router-4521e309.esm.js.map
|