Commit Graph

11353 Commits

Author SHA1 Message Date
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 8fdb4d8e00 techdocs: backend responds with an error if publisher type is not supported
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 11:40:12 +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 75941ca364 techdocs: techdocs_metadata.json could be missing, ignore the error
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 11:30:00 +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
Himanshu Mishra 37189b54ab Merge pull request #4933 from backstage/orkohunter/docs-techdocs-faq-about-annotation
docs: Add TechDocs FAQ about annotation value when using external build
2021-03-12 10:40:53 +01:00
Himanshu Mishra 11242ac41e Apply suggestions from code review
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 08:55:17 +01:00
Fredrik Adelöw 75ae6f6559 Merge pull request #4936 from backstage/dependabot/npm_and_yarn/ora-5.3.0
chore(deps): bump ora from 4.0.4 to 5.3.0
2021-03-12 07:46:08 +01:00
Fredrik Adelöw 83af2bc799 Merge pull request #4937 from backstage/dependabot/npm_and_yarn/testing-library/user-event-12.8.3
chore(deps): bump @testing-library/user-event from 12.0.7 to 12.8.3
2021-03-12 07:43:24 +01:00
Fredrik Adelöw 2cfdb35d96 Merge pull request #4938 from backstage/dependabot/npm_and_yarn/react-hot-loader-4.13.0
chore(deps): bump react-hot-loader from 4.12.21 to 4.13.0
2021-03-12 07:42:24 +01:00
dependabot[bot] fbb590df2d chore(deps): bump react-hot-loader from 4.12.21 to 4.13.0
Bumps [react-hot-loader](https://github.com/gaearon/react-hot-loader) from 4.12.21 to 4.13.0.
- [Release notes](https://github.com/gaearon/react-hot-loader/releases)
- [Changelog](https://github.com/gaearon/react-hot-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gaearon/react-hot-loader/commits/v4.13.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 04:19:09 +00:00
dependabot[bot] 48eb091c7a chore(deps): bump @testing-library/user-event from 12.0.7 to 12.8.3
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.0.7 to 12.8.3.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v12.0.7...v12.8.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-12 04:17:18 +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 784d39894a techdocs: Replace res.send with res.json
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 01:32:59 +01: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 424742dc1f techdocs: Add changeset
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 01:17:59 +01:00
Himanshu Mishra cf1b10f651 techdocs: When builder is set to local
1. Do not check for updates if a check has been done in last 60 seconds
2. Use stored etag from techdocs_metadata.json instead of in-memory storage
3. Enable re-building docs when in a mix of basic and recommended setup i.e. local builder with external storage

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-12 01:11:08 +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
Himanshu Mishra c1de2a809a docs: Add TechDocs FAQ about annotation value when using external build and storage
Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
2021-03-11 23:28:13 +01:00
Fredrik Adelöw e07b41751e Merge pull request #4922 from mclarke47/k8s-add-custom-hook-tests
add kubernetes custom hook tests
2021-03-11 22:01:18 +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
mclarke 62bd701335 fix accidental dependency update
Signed-off-by: mclarke <mclarke@spotify.com>
2021-03-11 16:51:40 +00:00
mclarke a8c1c9b434 merge master
Signed-off-by: mclarke <mclarke@spotify.com>
2021-03-11 16:13:24 +00: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 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 4c597d78a0 Merge pull request #4924 from backstage/mob/graphiql-sidebar
graphiql,app: export icon and avoid routeRef usage in SidebarItem
2021-03-11 16:40:13 +01:00
Patrik Oldsberg 1401bfc515 Merge pull request #4923 from backstage/rugvip/mob/use-no-desc
user-settings: avoid depending on descriptions from ApiRefs
2021-03-11 16:39:40 +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
Patrik Oldsberg 147b4c5b1f user-settings: avoid depending on descriptions from ApiRefs
Co-authored-by: Juan Lulkin <jmaiz@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 15:58:37 +01:00
mclarke 1df417bd3e changeset
Signed-off-by: mclarke <mclarke@spotify.com>
2021-03-11 14:46:07 +00:00
mclarke b16a480275 add kubernetes custom hook tests
Signed-off-by: mclarke <mclarke@spotify.com>
2021-03-11 14:44:10 +00: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
Fredrik Adelöw 9804a5273e Merge pull request #4814 from backstage/changeset-release/master
Version Packages
2021-03-11 14:27:52 +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 a5c3dd77fe Merge pull request #4919 from backstage/freben/master-built
fix master build error
2021-03-11 13:25:00 +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
Matthew Clarke e2c1b3fb6a Kubernetes: initial CRD framework (#4892)
* Kubernetes: initial CRD framework

Signed-off-by: mclarke <mclarke@spotify.com>

* use luxon instead of date-fns

Signed-off-by: mclarke <mclarke@spotify.com>

* fix test

Signed-off-by: mclarke <mclarke@spotify.com>

* update ui schema

Signed-off-by: mclarke <mclarke@spotify.com>

* update app config

Signed-off-by: mclarke <mclarke@spotify.com>

* rollout tests

Signed-off-by: mclarke <mclarke@spotify.com>

* add default custom resource component

Signed-off-by: mclarke <mclarke@spotify.com>

* make custom resources optional

Signed-off-by: mclarke <mclarke@spotify.com>

* add docs

Signed-off-by: mclarke <mclarke@spotify.com>

* prettier

Signed-off-by: mclarke <mclarke@spotify.com>

* replace core-api usage with core

Signed-off-by: mclarke <mclarke@spotify.com>
2021-03-11 10:32:41 +00: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
Fredrik Adelöw 011c0eed92 Merge pull request #4912 from andrewthauer/fix/link-to-mailto
fix(core): ensure link component works with mailto
2021-03-11 07:24:51 +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 47810a22f7 Merge pull request #4909 from backstage/rugvip/lines
integration: add support for resolving a URL to a line in a file
2021-03-10 23:32:15 +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