Commit Graph

77 Commits

Author SHA1 Message Date
Emma Indal 497675538c TechDocs: browse metadata (#2682)
* feat(techdocs): TechDocsPageWrapper to take in labels prop and use TechDocsHeader component

* feat(techdocs): new TechDocsHeader component as wrapper around Header from core

* feat(techdocs): TechDocsPage metadata

* feat(techdocs): TechDocsMetadata class responsible for reading metadata from generated techdocs metadata json file

* fix(techdocs): delete TechDocsPageWrapper component

* fix(app-config): delete /docs from request url

* feat(techdocs): TechDocsHeader with labels to browse metadata

* fix(techdocs): move metadata to backend plugin

* feat(techdocs-backend): introduce two new metadata routes

* feat(techdocs): new techdocs api to be responsible to request metadata from backend

* feat(techdocs): register new api for plugin

* fix(techdocs): reader to take in onReady prop

* fix(techdocs): TechDocsHome component to use its own header

* fix(techdocs): TechDocsPage responsible to get metadata and pass it down to the TechDocsHeader

* fix(techdocs): component tests for both TechDocsHeader and TechDocsPage

* fix(techdocs): adjust api to use /docs in url since it was taken away in requestURL

* fix(tests): move assertion into act

* fix(techdocs): rename TechDocsHeader to TechDocsPageHeader

* fix(techdocs): rename TechDocsHeader to TechDocsPageHeader

* fix(techdocs-backend): add some logs

* Update plugins/techdocs/src/reader/components/TechDocsPage.test.tsx

* delete unused import
2020-10-01 10:12:24 +02:00
Althaf Hameez a06a13c30d Read from App Config to configure HomepageTimer (#2673)
* Read from Config for timezone timers

* Remove recusrive dependency on backstage/core and fix tsc errors

* Modify to use ConfigArray instead of fixed Config

* Fix lint and tsc errors

* Cean up app-config.yaml

* add back newline

* Fix prettier error on app-config.yaml

* Address review comments
2020-09-30 20:47:06 +02:00
Fredrik Adelöw dc6b1e7c79 Merge pull request #2669 from spotify/freben/github-org
feat(catalog-backend): implement github org entity ingestion
2020-09-30 15:08:24 +02:00
Fredrik Adelöw c6ba9cba49 feat(catalog-backend): implement github org entity ingestion 2020-09-30 07:33:49 +02:00
Ben Lambert 2d37f700a2 Merge pull request #2543 from mfrinnstrom/azure-scaffolder-prepare
Add Azure DevOps support to the scaffolder
2020-09-28 23:44:19 +02:00
Ryan Vazquez 0c2ed5979d Merge pull request #2637 from spotify/plugin-cost-insights
Cost Insights Plugin
2020-09-28 15:46:02 -04:00
Ryan Vazquez a4281932fb add cost insights plugin 2020-09-28 15:20:31 -04:00
Ben Lambert 2c33a29c7c Merge pull request #2621 from andrewthauer/fix/circleci-proxy-config
fix(circleci): add api route prefix to proxy rewrite path
2020-09-28 15:28:10 +02:00
Marek Calus 0ed398633a Integrate with travis-ci plugin 2020-09-28 14:39:58 +02:00
Mattias Frinnström 0f732731ef Restructure config for Azure DevOps scaffolder 2020-09-28 14:19:20 +02:00
Mattias Frinnström 56a9f8389b Add Azure DevOps publisher to scaffolder 2020-09-28 14:19:20 +02:00
Mattias Frinnström c109cbe4df Add Azure prepare stage to scaffolder 2020-09-28 14:19:19 +02:00
Andrew Thauer 572abfe121 fix(circleci): add api route prefix to proxy rewrite path 2020-09-26 06:06:51 -04:00
Fredrik Adelöw ad90193d2a fix(backend): make csp configurable to unbreak app-backend served apps not being able to fetch 2020-09-25 12:20:21 +02:00
Matthew Clarke b16e164815 K8s add cluster lookup (#2571)
* Kubernetes plugins boilerplate

* pr feedback; check for k8s annotation

* temp

* fix config

* add example local setup

* dice rolelr

* rever yarn lock update

* forgotten prettier

* prettier again

* master lock

* update lock with k8s deps

* prettier

* router tests

* internal error

* fix package.json

* PR feedback

* more pr feedback

* rename component file

* kubernetes fetcher tests

* fix test

* option constructor
2020-09-24 16:30:48 +01:00
Patrik Oldsberg 521728348d backend: change the default backend plugin mount point to /api 2020-09-23 09:39:47 +02:00
Fredrik Adelöw f7a57e89d0 Merge pull request #2501 from spotify/freben/more-github
fix(catalog-backend): unify github and github/api, and use git-url-parse
2020-09-18 15:06:18 +02:00
Sebastian Qvarfordt f097c32b59 TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
* Use a flag to determine wether to use techdocs-container or local install of mkdocs

* Updated techdocs generator to look at app-config string instead of argument to decide how to run the generator

* Removed console log...

* Reverted scaffolder file that was accidentally committed.

* Fixed lint issues

* Added config to create-app template
2020-09-18 14:02:35 +02:00
Fredrik Adelöw a4e563ed2d fix(catalog-backend): unify github and github/api, and use git-url-parse 2020-09-17 15:32:40 +02:00
Björn Marschollek 55542797a9 Add GitLab integration for scaffolder
This adds a GitLab integration for the scaffolder backend.

We're introduceing a preparer and a publisher for GitLab so that we can
read templates from GitLab and publish them to a configured GitLab
instance. The two instances don't need to be the same. For instance,
templates could be public on gitlab.com, but the created repos will live
in a hosted GitLab somewhere else.

The publisher gets its own config object in `app-config.yaml` where the
target instance and token can be specified.

The service catalogue defines both `gitlab` and `gitlab/api` as
processors. They are both handled by the same preparer.

Closes #2372
2020-09-17 12:39:05 +02:00
Fredrik Adelöw 4077b424fa feat(catalog-backend): support GHE and other GitHub providers 2020-09-17 09:04:35 +02:00
Tim Jacomb 702546b8e3 Add scaffolder config to monorepo (#2492) 2020-09-17 08:45:11 +02:00
Alex Landovskis 155f6d3e39 app-config.yaml: Add missing config for GithubReaderProcessor. 2020-09-12 18:34:32 -04:00
Patrik Oldsberg 75c7a055c1 app-config: use catalog.locations + aggregating location entities 2020-09-12 15:27:26 +02:00
Sebastian Qvarfordt d865f88344 [TechDocs] Rebuild docs if the github source is newer than last docs build (#2353)
* Added age check for documentation in github to make sure it's up to date

* Updated failing tests

* Updated docs to explain requestUrl and storageUrl

* Updated failing tests

* Update packages/create-app/templates/default-app/app-config.yaml.hbs

* Update docs/features/techdocs/getting-started.md

Co-authored-by: Emma Indal <emmai@spotify.com>
2020-09-09 16:05:28 +02:00
Ivan Shmidt f3acee2537 Merge branch 'master' of github.com:spotify/backstage into shmidt-i/circle-ci-plugin-new-route-api 2020-09-07 22:15:12 +02:00
Patrik Oldsberg b104ebce53 app-config: split cors and urls out to separate development config 2020-09-06 20:01:21 +02:00
Patrik Oldsberg b045b166b6 run prettier 2020-09-05 16:37:30 +02:00
Ivan Shmidt b9c523f3f5 Merge branch 'master' of github.com:spotify/backstage into shmidt-i/circle-ci-plugin-new-route-api 2020-09-04 16:51:32 +02:00
Ivan Shmidt ecafe1b54d feat(circleci): use token from the proxy 2020-09-04 15:53:40 +02:00
Patrik Oldsberg 46bdf1f0ca Merge pull request #2268 from spotify/rugvip/authref
auth-backend: refactor to split lib, move types closer to home, update docs, renaming things
2020-09-04 09:59:58 +02:00
Stefan Ålund 6cc3fb47e1 Add API examples 2020-09-03 14:32:03 +02:00
Patrik Oldsberg fb2d4cf241 auth-backend: refactor EnvironmentHandler to be OAuth-specific and move env config to be a provider concern 2020-09-03 13:10:45 +02:00
Dominik Henneke 1b658f4bc3 fix: use correct rules syntax 2020-09-01 13:32:22 +02:00
Patrik Oldsberg 81cb294dac config,docs: add templates as allowed kind and document process 2020-09-01 10:40:19 +02:00
Fredrik Adelöw 761fd82d2e Merge pull request #2171 from andrewthauer/lighthouse-config
Make lighthouse url configurable in example app
2020-08-31 14:02:41 +02:00
Omer Farooq 298a9881dd update casing 2020-08-30 19:43:43 +12:00
Andrew Thauer d8877d4b7c feat: make lighthouse url configurable 2020-08-29 17:25:38 -04:00
Omer Farooq 36376778ec move processor config to catalog from backend 2020-08-29 22:22:19 +12:00
Omer Farooq a711b6fab4 rename ingestionProcessors to processors 2020-08-29 22:12:27 +12:00
Omer Farooq dd3963093d Update ingestion processors to use config system 2020-08-29 15:34:09 +12:00
Fredrik Adelöw 6d774764cd feat(proxy-backend): more proxy config tweaks and docs 2020-08-28 14:36:13 +02:00
Fredrik Adelöw a164990658 fix(create-app): updated the backend template to match new functionality 2020-08-28 11:59:29 +02:00
Tim Jacomb 827eea8a5e Remove unused config values 2020-08-28 07:47:25 +01:00
Fredrik Adelöw ddad61d824 reload the filtered entities context instead of direct fetch 2020-08-26 11:47:31 +02:00
Twisha Saraiya ddc7030731 move add mock data button to CatalogTable 2020-08-26 09:57:19 +02:00
Chris Simmons d4a6bc5504 udpated env vars to match provider name 2020-08-21 16:32:04 +12:00
Chris Simmons b253c56526 add microsoft azure auth provider + add to example app 2020-08-21 15:46:17 +12:00
Patrik Oldsberg b3fa6ffadd plugins/auth-backend: refactor providers for exporting with consistent casing 2020-08-20 11:15:34 +02:00
Patrik Oldsberg 1d9007184c app-config: remove unnecessary auth config 2020-08-19 11:37:04 +02:00