Commit Graph

4081 Commits

Author SHA1 Message Date
Fredrik Adelöw 0434853a56 Reformulate the json types to break type recursion
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-15 21:32:29 +01:00
Patrik Oldsberg 8504934ae9 Merge pull request #4927 from backstage/mob/evolution
core-api: first steps towards independently evolvable and duplicatable core api
2021-03-15 15:20:27 +01:00
Patrik Oldsberg 6c6b549246 core-api: use ApiRegistry.with
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-15 14:50:02 +01:00
Fredrik Adelöw e589d1ecca Merge pull request #4939 from backstage/dependabot/npm_and_yarn/types/js-yaml-4.0.0
chore(deps-dev): bump @types/js-yaml from 3.12.5 to 4.0.0
2021-03-15 12:55:44 +01:00
Himanshu Mishra 4344ef8be8 Merge pull request #4935 from backstage/orkohunter/techdocs-rebuild-on-mixed-setup 2021-03-12 16:14:01 +01:00
Himanshu Mishra 2dd8cef6fc docs/techdocs: Add doc string about etag in Metadata type
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 11:34:39 +01:00
Himanshu Mishra a6067fe42d techdocs: Add missing await when checking for existing docs
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 11:23:35 +01:00
dependabot[bot] f7504fd789 chore(deps-dev): bump @types/js-yaml from 3.12.5 to 4.0.0
Bumps [@types/js-yaml](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/js-yaml) from 3.12.5 to 4.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/js-yaml)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 04:20:02 +00:00
dependabot[bot] 79e8614f88 chore(deps): bump ora from 4.0.4 to 5.3.0
Bumps [ora](https://github.com/sindresorhus/ora) from 4.0.4 to 5.3.0.
- [Release notes](https://github.com/sindresorhus/ora/releases)
- [Commits](https://github.com/sindresorhus/ora/compare/v4.0.4...v5.3.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 04:06:06 +00:00
Himanshu Mishra df905636ff techdocs: Missing type updates in tests
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 01:29:04 +01:00
Himanshu Mishra 5190e8d80a techdocs: Add etag as techdocs metadata type
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 00:58:41 +01:00
Emma Indal c8b54c3702 TechDocs Homepage (#4401)
* add tabs to homepage

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add new overview content component

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add new owned content component

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add types

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add test for owned content component

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add test for overview content

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* document name to link and change copy to clipboard link

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* rename changeset file

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* fix types

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* move home components out from reader dir to its own dir

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* Update plugins/techdocs/src/reader/components/OverviewContent.tsx

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* enable search in table

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add docs icon to core icons

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add example TechDocs support button config

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* use isOwnerOff and useOwnUser to see documents that are owned via group membership

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* update tests

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* cleanup imports

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* leave techdocs support config out of this PR

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* prettieeeeeer

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* copy paste useOwnUser hook over to techdocs plugin

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* delete unused package

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-11 19:23:32 +01:00
Patrik Oldsberg ab7bca3e8b core-api: memo app and api provider versioned value maps
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 19:12:36 +01:00
Fredrik Adelöw 3ece07ee8d Merge pull request #4903 from backstage/freben/errors
Introduce the @backstage/errors package
2021-03-11 17:06:23 +01:00
Patrik Oldsberg 99dad12b58 core-api: get or create all bridged contexts
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:41 +01:00
Patrik Oldsberg 0977b7b41b core-api: make ApiRef description optional
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:41 +01:00
Patrik Oldsberg 4d68d4d87d core-api: identify ApiRefs based on ID instead of reference
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:40 +01:00
Patrik Oldsberg 7d30365c67 core-api: migrate RoutingContext to use version bridge
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:40 +01:00
Patrik Oldsberg 0095873736 core-api: migrate AppContext to use version bridge
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:40 +01:00
Patrik Oldsberg d5c8bc8a01 core-api: migrate ApiContext to use version bridge
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:39 +01:00
Patrik Oldsberg 1f3321fbfc core-api: add versioned value types and helpers
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:39 +01:00
Patrik Oldsberg 386e7aa007 core-api: refactor global singleton access to get/set/getOrCreate
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:57:38 +01:00
Patrik Oldsberg 61f071cfcb Merge pull request #4925 from backstage/mob/storybrooks
cli: lint storybook file dependencies as if they were tests
2021-03-11 16:40:28 +01:00
Patrik Oldsberg 09eb54e014 graphiql,app: export icon and avoid routeRef usage in SidebarItem
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:14:34 +01:00
Patrik Oldsberg 84972540b0 cli: lint storybook file dependencies as if they were tests
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 16:01:14 +01:00
Fredrik Adelöw fda249ff6f fix review comments
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 14:31:21 +01:00
Fredrik Adelöw 8686eb38cf Introduce the @backstage/errors package.
Encode thrown errors in the backend as a JSON payload using a facility in that package, and render helpful frontend displays of those errors.

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 14:31:21 +01:00
github-actions[bot] 0e120c5c66 Version Packages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 13:45:44 +01:00
Fredrik Adelöw 00118cd922 fix master build error
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-11 13:07:40 +01:00
Fredrik Adelöw 7efdcfbedf Merge pull request #4893 from backstage/blam/fix-api-load-order
Wait for configApi to be ready before using featureFlagsApi to register plugin output
2021-03-11 12:08:57 +01:00
Patrik Oldsberg 6bd417b7b8 Merge pull request #4857 from backstage/rugvip/subroutes
core: add SubRoutesRefs and refactor routing system
2021-03-11 10:20:23 +01:00
Ben Lambert 7b0694586a Merge pull request #4915 from backstage/dependabot/npm_and_yarn/rollup/plugin-node-resolve-11.2.0
chore(deps): bump @rollup/plugin-node-resolve from 9.0.0 to 11.2.0
2021-03-11 09:58:20 +01:00
Fredrik Adelöw e7e8e48d40 Merge pull request #4914 from backstage/dependabot/npm_and_yarn/react-dev-utils-11.0.4
chore(deps): bump react-dev-utils from 10.2.1 to 11.0.4
2021-03-11 08:57:39 +01:00
dependabot[bot] 64f9d37a18 chore(deps): bump @rollup/plugin-node-resolve from 9.0.0 to 11.2.0
Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins) from 9.0.0 to 11.2.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/node-resolve-v9.0.0...node-resolve-v11.2.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-11 04:25:08 +00:00
dependabot[bot] 4a4999f5a4 chore(deps): bump react-dev-utils from 10.2.1 to 11.0.4
Bumps [react-dev-utils](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-dev-utils) from 10.2.1 to 11.0.4.
- [Release notes](https://github.com/facebook/create-react-app/releases)
- [Changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG-1.x.md)
- [Commits](https://github.com/facebook/create-react-app/commits/HEAD/packages/react-dev-utils)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-11 04:24:13 +00:00
Andrew Thauer c14affbb4d fix(core): ensure link component works with mailto
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
2021-03-10 20:55:36 -05:00
Patrik Oldsberg d79f3411aa Merge pull request #4910 from backstage/rugvip/data
core: add support for passing data fetch function to Table
2021-03-10 23:32:48 +01:00
Patrik Oldsberg d4e77ec5f9 integration: add support for resolving a URL to a line in a file
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-10 22:31:26 +01:00
Patrik Oldsberg ff4d666abc core: add support for passing data fetch function to Table
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-10 22:29:28 +01:00
Fredrik Adelöw 702b837b8b Remove all dot-folder imports everywhere
We aren't supposed to import from '.' or '../..' etc; point to the actual node being imported instead. I did allow e.g. '../../bigfolder' however. Going all the way to the individual file could be done too, but is a matter of taste perhaps.

Also ran Organize Imports on all the touched files :)

No changeset since there are no functional changes at all - only the imports changed

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-10 13:43:59 +01:00
Ben Lambert 0f85dfd5f2 Merge pull request #4899 from backstage/dependabot/npm_and_yarn/react-syntax-highlighter-15.4.3
chore(deps): bump react-syntax-highlighter from 13.5.3 to 15.4.3
2021-03-10 09:10:41 +01:00
Ben Lambert 8416da9ed4 Merge pull request #4881 from lowjoel/fix-aws-credentials-order
Implement proper AWS Credentials precedence
2021-03-10 08:37:33 +01:00
dependabot[bot] 4b1eade606 chore(deps): bump react-syntax-highlighter from 13.5.3 to 15.4.3
Bumps [react-syntax-highlighter](https://github.com/react-syntax-highlighter/react-syntax-highlighter) from 13.5.3 to 15.4.3.
- [Release notes](https://github.com/react-syntax-highlighter/react-syntax-highlighter/releases)
- [Changelog](https://github.com/react-syntax-highlighter/react-syntax-highlighter/blob/master/CHANGELOG.MD)
- [Commits](https://github.com/react-syntax-highlighter/react-syntax-highlighter/compare/v13.5.3...v15.4.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-10 04:07:06 +00:00
Dominik Henneke 52f613030a Support GitHub tree URLs in getGitHubFileFetchUrl
Co-authored-by: Oliver Sand <oliver.sand@sda-se.com>
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-03-09 17:49:17 +01:00
blam ce55c4c40c chore: wait for the configApi to be initialised before using the featureFlagsApi to register plugin output
Signed-off-by: ben@blam.sh
Signed-off-by: blam <ben@blam.sh>
2021-03-09 16:28:29 +01:00
Fredrik Adelöw 4cceeafa0b Merge pull request #4884 from backstage/freben/integration-frontend
add frontend-filtered config loading tests in integrations
2021-03-09 11:52:15 +01:00
Himanshu Mishra 38a8734d89 Merge pull request #4744 from backstage/orkohunter/move-runDockerContainer 2021-03-09 10:47:26 +01:00
Fredrik Adelöw 3afa8e1c2b add frontend-filtered config loading tests in integrations
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-09 10:33:38 +01:00
Joel Low 2ef5bc7ea1 Implement proper AWS Credentials precedence
This properly configures the precedence for explicit assume-role ARNs,
explicit AWS credentials (via access keys), and the default fallback for
the AWS SDK.

The general precedence of using:
 1. explicitly provided credentials
 2. AWS SDK config (AWS.config.credentials)
 3. AWS SDK credentials provider chain (AWS.config.credentialProviders)

has been respected. This removes the need to explicitly configure
`AWS.config.credentials` in Backstage installations also.

Signed-off-by: Joel Low <joel@joelsplace.sg>
2021-03-09 16:53:15 +08:00
Ben Lambert 1d849e5586 Merge pull request #4875 from backstage/freben/integration-gitlab-schema
Include missing fields in GitLab config schema
2021-03-09 08:04:31 +01:00