@backstage/plugin-scaffolder 1.7.0-next.0 → 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 +45 -0
- package/README.md +42 -0
- package/alpha/package.json +1 -1
- package/dist/esm/{Router-7e8b8be7.esm.js → Router-4521e309.esm.js} +6 -5
- package/dist/esm/Router-4521e309.esm.js.map +1 -0
- package/dist/esm/{default-21c262f6.esm.js → default-bdf322b4.esm.js} +2 -2
- package/dist/esm/{default-21c262f6.esm.js.map → default-bdf322b4.esm.js.map} +1 -1
- package/dist/esm/{index-5cc08bb9.esm.js → index-bac377e4.esm.js} +40 -25
- package/dist/esm/index-bac377e4.esm.js.map +1 -0
- package/dist/esm/{index-f96a52f0.esm.js → index-e49d2205.esm.js} +35 -16
- 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/Router-7e8b8be7.esm.js.map +0 -1
- package/dist/esm/index-5cc08bb9.esm.js.map +0 -1
- package/dist/esm/index-f96a52f0.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
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
|
+
|
|
26
|
+
## 1.7.0-next.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- e4f0a96424: Making the description of the GitLab repoUrl owner field more clearer by focusing it refers to the GitLab namespace.
|
|
31
|
+
- 8220f2fd83: Support custom layouts in dry run editor
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
- @backstage/plugin-catalog-react@1.2.0-next.1
|
|
34
|
+
- @backstage/catalog-client@1.1.1-next.1
|
|
35
|
+
- @backstage/core-components@0.11.2-next.1
|
|
36
|
+
- @backstage/core-plugin-api@1.0.7-next.1
|
|
37
|
+
- @backstage/catalog-model@1.1.2-next.1
|
|
38
|
+
- @backstage/config@1.0.3-next.1
|
|
39
|
+
- @backstage/errors@1.1.2-next.1
|
|
40
|
+
- @backstage/integration@1.3.2-next.1
|
|
41
|
+
- @backstage/integration-react@1.1.5-next.1
|
|
42
|
+
- @backstage/theme@0.2.16
|
|
43
|
+
- @backstage/types@1.0.0
|
|
44
|
+
- @backstage/plugin-catalog-common@1.0.7-next.1
|
|
45
|
+
- @backstage/plugin-permission-react@0.4.6-next.1
|
|
46
|
+
- @backstage/plugin-scaffolder-common@1.2.1-next.1
|
|
47
|
+
|
|
3
48
|
## 1.7.0-next.0
|
|
4
49
|
|
|
5
50
|
### Minor 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';
|
|
@@ -1908,7 +1908,7 @@ function TemplateEditorForm(props) {
|
|
|
1908
1908
|
}))));
|
|
1909
1909
|
}
|
|
1910
1910
|
function TemplateEditorFormDirectoryEditorDryRun(props) {
|
|
1911
|
-
const { setErrorText, fieldExtensions = [] } = props;
|
|
1911
|
+
const { setErrorText, fieldExtensions = [], layouts } = props;
|
|
1912
1912
|
const dryRun = useDryRun();
|
|
1913
1913
|
const directoryEditor = useDirectoryEditor();
|
|
1914
1914
|
const { selectedFile } = directoryEditor;
|
|
@@ -1936,7 +1936,8 @@ function TemplateEditorFormDirectoryEditorDryRun(props) {
|
|
|
1936
1936
|
setErrorText,
|
|
1937
1937
|
content,
|
|
1938
1938
|
data,
|
|
1939
|
-
onUpdate: setData
|
|
1939
|
+
onUpdate: setData,
|
|
1940
|
+
layouts
|
|
1940
1941
|
});
|
|
1941
1942
|
}
|
|
1942
1943
|
TemplateEditorForm.DirectoryEditorDryRun = TemplateEditorFormDirectoryEditorDryRun;
|
|
@@ -2591,4 +2592,4 @@ const Router = (props) => {
|
|
|
2591
2592
|
};
|
|
2592
2593
|
|
|
2593
2594
|
export { Router };
|
|
2594
|
-
//# sourceMappingURL=Router-
|
|
2595
|
+
//# sourceMappingURL=Router-4521e309.esm.js.map
|