@backstage/plugin-scaffolder 1.7.0-next.1 → 1.7.0
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 +56 -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,61 @@
|
|
|
1
1
|
# @backstage/plugin-scaffolder
|
|
2
2
|
|
|
3
|
+
## 1.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f13d5f3f06: Add support for link to TechDocs and other links defined in template entity specification metadata on TemplateCard
|
|
8
|
+
- 05f22193c5: EntityPickers now support flags to control when to include default namespace
|
|
9
|
+
in result
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- e4f0a96424: Making the description of the GitLab repoUrl owner field more clearer by focusing it refers to the GitLab namespace.
|
|
14
|
+
- 92e490d6b4: Make the `/next` scaffolder work end to end with the old `TaskPage` view
|
|
15
|
+
- 8220f2fd83: Support custom layouts in dry run editor
|
|
16
|
+
- 1047baa926: Bump to `react-jsonschema-form@v5-beta` for the `NextRouter` under `@alpha` exports
|
|
17
|
+
- 98ae18b68f: Fixed a bug where the `allowed*` values for the `RepoUrlPicker` would be reset on render.
|
|
18
|
+
- 8960d83013: Add support for `allowedOrganizations` and `allowedOwners` to the `AzureRepoPicker`.
|
|
19
|
+
- b681275e69: Ignore .git directories in Template Editor, increase upload limit for dry-runs to 10MB.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @backstage/catalog-model@1.1.2
|
|
22
|
+
- @backstage/plugin-catalog-react@1.2.0
|
|
23
|
+
- @backstage/core-components@0.11.2
|
|
24
|
+
- @backstage/plugin-catalog-common@1.0.7
|
|
25
|
+
- @backstage/catalog-client@1.1.1
|
|
26
|
+
- @backstage/plugin-scaffolder-common@1.2.1
|
|
27
|
+
- @backstage/integration-react@1.1.5
|
|
28
|
+
- @backstage/core-plugin-api@1.0.7
|
|
29
|
+
- @backstage/config@1.0.3
|
|
30
|
+
- @backstage/errors@1.1.2
|
|
31
|
+
- @backstage/integration@1.3.2
|
|
32
|
+
- @backstage/theme@0.2.16
|
|
33
|
+
- @backstage/types@1.0.0
|
|
34
|
+
- @backstage/plugin-permission-react@0.4.6
|
|
35
|
+
|
|
36
|
+
## 1.7.0-next.2
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- 92e490d6b4: Make the `/next` scaffolder work end to end with the old `TaskPage` view
|
|
41
|
+
- 1047baa926: Bump to `react-jsonschema-form@v5-beta` for the `NextRouter` under `@alpha` exports
|
|
42
|
+
- 98ae18b68f: Fixed a bug where the `allowed*` values for the `RepoUrlPicker` would be reset on render.
|
|
43
|
+
- Updated dependencies
|
|
44
|
+
- @backstage/plugin-catalog-common@1.0.7-next.2
|
|
45
|
+
- @backstage/plugin-catalog-react@1.2.0-next.2
|
|
46
|
+
- @backstage/plugin-permission-react@0.4.6-next.2
|
|
47
|
+
- @backstage/catalog-client@1.1.1-next.2
|
|
48
|
+
- @backstage/catalog-model@1.1.2-next.2
|
|
49
|
+
- @backstage/config@1.0.3-next.2
|
|
50
|
+
- @backstage/core-components@0.11.2-next.2
|
|
51
|
+
- @backstage/core-plugin-api@1.0.7-next.2
|
|
52
|
+
- @backstage/errors@1.1.2-next.2
|
|
53
|
+
- @backstage/integration@1.3.2-next.2
|
|
54
|
+
- @backstage/integration-react@1.1.5-next.2
|
|
55
|
+
- @backstage/theme@0.2.16
|
|
56
|
+
- @backstage/types@1.0.0
|
|
57
|
+
- @backstage/plugin-scaffolder-common@1.2.1-next.2
|
|
58
|
+
|
|
3
59
|
## 1.7.0-next.1
|
|
4
60
|
|
|
5
61
|
### 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
|