Commit Graph

2621 Commits

Author SHA1 Message Date
Marek Calus 7eaa056201 Merge remote-tracking branch 'upstream/master' into mcalus3/add-catalog-import-plugin 2020-11-29 18:18:11 +01:00
Adam Harvey 74175b988e Refactor typo in variable name (#3486) 2020-11-29 08:50:33 +01:00
Peter Colapietro 3f947b70d1 fix(react): use fragment (#3478)
The empty state's description is already wrapped in a Typography component so the one in MissingImplementsApisEmptyState is redundant.

https://github.com/backstage/backstage/blob/bbaadb63f88d0f7d42acb9fa1b1644f85bf1043e/packages/core/src/components/EmptyState/EmptyState.tsx#L57

By wrapping the EmptyState's description in a Typography the following warning is output to the console

```
react-dom.development.js?1930:89 Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>.
    in p (created by ForwardRef(Typography))
    in ForwardRef(Typography) (created by WithStyles(ForwardRef(Typography)))
    in WithStyles(ForwardRef(Typography)) (created by MissingImplementsApisEmptyState)
    in p (created by ForwardRef(Typography))
    in ForwardRef(Typography) (created by WithStyles(ForwardRef(Typography)))
    in WithStyles(ForwardRef(Typography)) (created by EmptyState)
    in div (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
    in WithStyles(ForwardRef(Grid)) (created by EmptyState)
    in div (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
    in WithStyles(ForwardRef(Grid)) (created by EmptyState)
    in div (created by ForwardRef(Grid))
    in ForwardRef(Grid) (created by WithStyles(ForwardRef(Grid)))
    in WithStyles(ForwardRef(Grid)) (created by EmptyState)
    in EmptyState (created by MissingImplementsApisEmptyState)
    in MissingImplementsApisEmptyState (created by Router)
    in Router (at EntityPage.tsx:78)
    in article (created by Content)
    in Content (created by Layout)
    in Layout (created by EntityPageLayout)
    in div (created by Page)
    in ThemeProvider (created by Page)
    in Page (created by EntityPageLayout)
    in EntityPageLayout (at EntityPage.tsx:64)
    in ServiceEntityPage (at EntityPage.tsx:127)
    in EntityPage (created by EntityPageSwitch)
    in EntityPageSwitch (created by Router)
    in EntityProvider (created by Router)
    in Route (created by Router)
    in Routes (created by Router)
    in Router (at App.tsx:46)
    in Route (at App.tsx:44)
    in Routes (at App.tsx:42)
    in div (created by SidebarPage)
    in SidebarPage (at App.tsx:40)
    in Route (created by AppRouter)
    in Routes (created by AppRouter)
    in Router (created by BrowserRouter)
    in BrowserRouter (created by AppRouter)
    in AppRouter (at App.tsx:39)
    in CssBaseline (created by WithStyles(CssBaseline))
    in WithStyles(CssBaseline) (created by AppThemeProvider)
    in ThemeProvider (created by AppThemeProvider)
    in AppThemeProvider (created by Provider)
    in AppContextProvider (created by Provider)
    in ApiProvider (created by Provider)
    in Provider (at App.tsx:36)
    in App (at src/index.tsx:6)
```

Co-authored-by: Peter Colapietro <petercolapietro@gmail.com>
2020-11-27 18:08:37 +01:00
Marek Calus b26e3dacd9 Fixdependency version 2020-11-27 16:37:48 +01:00
Patrik Oldsberg b08351ebb4 plugins: keep plugin package.json in sync 2020-11-27 14:15:08 +01:00
github-actions[bot] 892645b815 Version Packages 2020-11-27 12:51:09 +00:00
Himanshu Mishra d4704d14a0 Merge pull request #3452 from backstage/orkohunter/techdocs-page-edit-button 2020-11-27 13:42:07 +01:00
Himanshu Mishra dbca620ff9 Use fs-extra and async file read method 2020-11-26 20:41:40 +01:00
Oliver Sand 1ec19a3f4a Handle empty YAML documents
One of our users just run into this. Kubernetes has the same behavior and doesn't complain about an empty document.
2020-11-26 17:36:03 +01:00
Oliver Sand f76626c1c4 Merge pull request #3449 from SDA-SE/feat/provides-consumse-api
Replace implementsApis with providesApis and add consumesApis
2020-11-26 17:27:30 +01:00
Oliver Sand 032aba5920 Apply suggestions from code review
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2020-11-26 16:40:18 +01:00
Andrew Thauer 3a201c5d54 feat: add config schema for rollbar plugins (#3404)
* feat: add config schema for rollbar plugins

* remove rollbar from create-app template
2020-11-26 14:30:12 +01:00
Marek Calus 0dedb26e10 Revert catalog-backend version to 0.2.2 2020-11-26 11:54:20 +01:00
Govind 202da8ab36 Allow application to register custom AuthProviderFactory. Refs #1984 (#3329)
* Allow application to register custom `AuthProviderFactory`. Refs #1984

* PR comments: Explicit exports

* Export `OAuth` specific types from the package

* Update documentation on how to use the interfaces

* Re-export from base `index.ts` as per ADR-004

* pass `providerId` as a parameter to `AuthFactory` instead of hardcoding

Co-authored-by: Govindarajan Nagarajan <govindarajan.nagarajan@zalando.de>
2020-11-26 11:27:00 +01:00
Himanshu Mishra 4b53294a6c TechDocs: Update mkdocs.yml with repo_url when possible before building docs 2020-11-26 10:55:38 +01:00
Ben Lambert 8c58337a07 Merge pull request #3430 from jot-hub/bug/issue-3223
detect differing origin and indicate it at auth failure
2020-11-26 10:20:39 +01:00
Marek Calus 8bef6b9a5f Fix after merge 2020-11-26 10:18:45 +01:00
Marek Calus c0061218db Merge remote-tracking branch 'upstream/master' into mcalus3/add-catalog-import-plugin 2020-11-26 08:16:28 +01:00
jothisubaramaniam 039970d710 introduce data.type=config_info for the new postMessage in auth 2020-11-25 16:28:49 -05:00
Himanshu Mishra 266e93b478 TechDocs: Refactor metadata retrieval
1. Don't use mkdocs in name of APIs or variables. It is an implementation detail and liable to change in future.
2. techDocsApi.getMetadata('mkdocs') and techDocsAPI.getMetadata('entity') should be two separate functions just because their responses differ in structure. They should also be type checked.
3. Use either 'techdocs' or 'TechDocs' consistently. 'techDocs' seems like an unnecessary third way to write TechDocs, which can be avoided.
4. Remove unused /plugins/techdocs-backend/src/service/metadata.ts file
2020-11-25 19:39:48 +01:00
Oliver Sand 6f70ed7a95 Replace usage of implementsApis with relations 2020-11-25 17:30:11 +01:00
Oliver Sand ff1301d28f Warn if app-backend can't start-up because missing dir 2020-11-25 17:28:07 +01:00
Oliver Sand fb19e0241d Add providesApis and consumesApis to component spec 2020-11-25 16:01:34 +01:00
Ben Lambert 26f5d6d224 Merge pull request #3409 from bleathem/oidc-provider
Fixed the OIDC token refresh
2020-11-25 14:07:32 +01:00
Oliver Sand d94c70d866 Merge pull request #2987 from SDA-SE/feat/api-page
Make api-docs customizable
2020-11-25 13:44:03 +01:00
Askar 76ff21c2d5 fix(search): compile possible filter options from available entities (#3370)
* load filters from entities

* fix(search): compile possible filter options from available entities

* rename filter state and add text in case no filter can be applied
2020-11-25 11:06:39 +01:00
Fredrik Adelöw 2daf18e809 catalog: emit all common relations based on specs (#3408) 2020-11-25 10:51:22 +01:00
Fredrik Adelöw fae3fafcfa silence some new ts squigglies in the editor (#3435) 2020-11-25 09:57:16 +01:00
Himanshu Mishra 8fd5e64351 TechDocs: Tell users when index.md is missing (better error message) (#3429)
* TechDocs: Logger already prints the name of plugin

* TechDocs: Display a custom error message if provided

* TechDocs: throw custom error message if index.md is not present

* Language improvements. Thanks @freben

Co-authored-by: Fredrik Adelöw <freben@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
2020-11-25 09:52:19 +01:00
jothisubaramaniam 7e49365080 fix ci 2020-11-24 17:31:19 -05:00
jothisubaramaniam e338648910 add a postMessage with targetOrigin * 2020-11-24 16:52:56 -05:00
Brian Leathem 9c9d12e899 Added back the id_token when calling refresh 2020-11-24 11:30:25 -08:00
Brian Leathem cec3da2c90 Used ts private instead of _ naming convention 2020-11-24 10:26:39 -08:00
Brian Leathem 78177f24b7 Fixed a lint failure on the oidc provider test 2020-11-24 10:26:39 -08:00
Brian Leathem e3ad37e39d Fix broken tests 2020-11-24 10:26:39 -08:00
Brian Leathem 636cc58dca Fixed a TS type error in the OIDC provider test 2020-11-24 10:26:39 -08:00
Brian Leathem 5f1c1c2edf Fixed the OIDC token refresh 2020-11-24 10:26:39 -08:00
blam ad51b2d534 Merge branch 'changeset-release/master' of github.com:backstage/backstage into changeset-release/master
* 'changeset-release/master' of github.com:backstage/backstage:
  Version Packages
  feat: added config schema for k8s plugins
  Integrate review comments
  Link to substitutions instead of duplicating the content
  Document Substitutions In The Descriptor Format
2020-11-24 17:56:40 +01:00
github-actions[bot] 0c0c48bcc5 Version Packages 2020-11-24 16:56:00 +00:00
Ben Lambert 9f236fa426 Merge pull request #3427 from backstage/feat/kubernetes-config-schema
feat: added config schema for k8s plugins
2020-11-24 17:51:52 +01:00
blam 121af544b1 feat: added config schema for k8s plugins 2020-11-24 17:29:29 +01:00
blam e46a784bb9 Merge branch 'changeset-release/master' of github.com:backstage/backstage into changeset-release/master
* 'changeset-release/master' of github.com:backstage/backstage:
  Version Packages
  TechDocs: Document basic and recommended architecture
  TechDocs: Add basic and production deployment architecture diagrams
2020-11-24 14:43:18 +01:00
github-actions[bot] 7d564164fd Version Packages 2020-11-24 13:34:37 +00:00
blam a39968ca57 chore(diff): accept diff changes 2020-11-24 14:33:39 +01:00
Himanshu Mishra 1d55b1e976 Merge pull request #3336 from backstage/mob/techdocs-storage-solutions-spec 2020-11-24 14:30:42 +01:00
Oliver Sand f3bb55ee31 Make api-docs customizable 2020-11-24 11:53:14 +01:00
github-actions[bot] fefb0e18e0 Version Packages 2020-11-24 10:17:02 +00:00
Ben Lambert 8aba3e4c47 Merge pull request #3406 from backstage/orkohunter/fix-kubernetes-backend
fix(kubernetes-backend): Fix Typescript error stopping backend to start
2020-11-24 11:13:18 +01:00
Himanshu Mishra 05b916761d fix(kubernetes-backend): Fix Typescript error stopping backend to start 2020-11-23 21:06:44 +01:00
Marek Calus cb16f9ebfc Code review fixes 2020-11-23 19:34:15 +01:00