Commit Graph

2067 Commits

Author SHA1 Message Date
Stefan Ålund 8d666e43bd Use MissingAnnotationEmptyState for plugins (#2824) 2020-10-09 15:11:15 +02:00
Fredrik Adelöw 84a22ed475 chore(catalog-backend): removing redudant classes and some functions 2020-10-09 12:15:20 +02:00
Fredrik Adelöw 6e99d20134 Merge pull request #2821 from spotify/freben/concur
feat(catalog-backend): add batch concurrency
2020-10-09 11:53:01 +02:00
Fredrik Adelöw 6d5e0d90de feat(catalog-backend): add batch concurrency 2020-10-09 11:13:17 +02:00
Himanshu Mishra c852e7b09d Merge pull request #2812 from spotify/sebastianq/techdocs-new-component-url
[TechDocs] Use new url scheme for techdocs
2020-10-09 10:41:47 +02:00
Fredrik Adelöw 3418ea3388 Merge pull request #2810 from spotify/freben/batch
feat(catalog-backend): introduce batching, speed up reading and writing of large datasets
2020-10-09 10:36:02 +02:00
Fredrik Adelöw a1540e7286 feat(catalog-backend): introduce batching, speed up reading and writing of large datasets 2020-10-09 09:55:34 +02:00
Mattias Frinnström b46863b88b Techdocs: add Azure DevOps prepare support (#2748)
* Update to latest git-url-parse

* Add Azure DevOps preparer to techdocs

* Upgraded git-url-parse in backend-common

* Switch to AZURE_TOKEN

Co-authored-by: Mattias Frinnström <mattias.frinnstrom@husqvarnagroup.com>
2020-10-09 09:37:20 +02:00
Fredrik Adelöw 03e0eef930 Merge pull request #2697 from lowjoel/database-refactor
refactor: Expose types to handle Database management
2020-10-09 07:16:26 +02:00
Mahmood Hosseini 4295a248e9 feat(techdocs-header): Show breadcrumbs on docs page (#2786) 2020-10-08 23:26:41 +02:00
Sebastian Qvarfordt ae499a55ff Use new url scheme for techdocs 2020-10-08 16:59:30 +02:00
Oliver Sand 49d70ccab1 feat: remove LocationProcessor.processEntity
Instead, pass the `UrlReader` into the constructor of your `LocationProcessor`.
2020-10-08 16:57:49 +02:00
Oliver Sand 512d709736 feat: use the new UrlReader in the CodeOwnersProcessor 2020-10-08 16:31:04 +02:00
Oliver Sand c6d1f4846f Merge pull request #2803 from SDA-SE/feat/remove-api-annotation
feat: remove the backstage.io/definition-at-location annotation
2020-10-08 16:25:31 +02:00
Oliver Sand 3880e616dc Merge pull request #2798 from SDA-SE/feat/deprecate-api-annotation
feat: use new UrlReader in PlaceholderProcessor
2020-10-08 16:24:58 +02:00
Oliver Sand ce1f553981 feat: use new UrlReader in PlaceholderProcessor 2020-10-08 15:58:15 +02:00
Oliver Sand e6b00e3af9 feat: remove the backstage.io/definition-at-location annotation
The annotation was superseded by the placeholder processor.
2020-10-08 15:50:16 +02:00
Fredrik Adelöw c87655914c Merge pull request #2804 from SDA-SE/feat/proxy-headers
feat(proxy-backend): limit the forwarded http headers to a safe set
2020-10-08 15:41:47 +02:00
Marcus Eide ba0e6fa4ea Merge pull request #2795 from spotify/eide/storybook-categories
storybook: Group components in the sidebar
2020-10-08 15:30:11 +02:00
Marcus Eide 88bd2452ac Merge pull request #2799 from taras/scaffolder-add-github-auth-to-preparer
fix: Add authentication to GitHub preparer
2020-10-08 15:29:34 +02:00
Marcus Eide 6bbfe533e1 Merge pull request #2729 from Marvin9/fix/token-name-inconsistency
feat: environment variables token name inconsistency
2020-10-08 15:21:54 +02:00
Patrik Oldsberg 0b22eb872d Merge pull request #2796 from mclarke47/k8s-show-status-code-in-ui
show response status code from k8s API in UI
2020-10-08 14:49:34 +02:00
Dominik Henneke 9226c2aaa0 feat(proxy-backend): limit the forwarded http headers to a safe set 2020-10-08 14:30:56 +02:00
Taras Mankovski d69da85a27 Add a test for when token is passed in 2020-10-08 08:02:21 -04:00
Taras Mankovski 4837a166c2 Make token optional 2020-10-08 07:45:29 -04:00
Fredrik Adelöw 4922f1dff9 Merge pull request #2778 from spotify/freben/no-redundant-columns
feat(catalog-backend): remove redundant columns in entities
2020-10-08 13:37:28 +02:00
Fredrik Adelöw faf9029765 Merge pull request #2777 from spotify/freben/data-column
feat(catalog-backend): store entity json in data column, not separate metadata+spec
2020-10-08 13:36:50 +02:00
Taras Mankovski 4df660e37f Add authentication to GitHub preparer 2020-10-08 07:31:42 -04:00
Fredrik Adelöw 10827989b6 Merge pull request #2776 from spotify/freben/test-db
feat(catalog-backend): temporary named test db support to aid in debugging
2020-10-08 13:19:58 +02:00
Sebastian Qvarfordt 29ec8c2f09 TechDocs: Fix reload when clicking internal docs pages (#2784)
* Check to see if links start with window.location.origin to see if we should handle it as a internal docs link

* Fixed failing test

* Fix lint issues
2020-10-08 11:26:46 +02:00
mclarke47 99b26cff87 show response status code from k8s API in UI 2020-10-08 10:26:09 +01:00
Marcus Eide 5ea40dce6b Add categories to stories 2020-10-08 09:52:06 +02:00
Marcus Eide c6f8310a11 Merge pull request #2659 from spotify/eide/user-settings-plugin
Plugin: user-settings
2020-10-08 09:23:48 +02:00
Marvin9 f05e4b9608 re: make consistent environment variables
GITHUB_PRIVATE_TOKEN & GITHUB_ACCESS_TOKEN => GITHUB_TOKEN
GITLAB_PRIVATE_TOKEN, GITLAB_ACCESS_TOKEN & SCAFFOLDER_GITLAB_PRIVATE_TOKEN => GITLAB_TOKEN
AZURE_PRIVATE_TOKEN => AZURE_TOKEN
GHE_PRIVATE_TOKEN => GHE_TOKEN
2020-10-08 10:34:06 +05:30
Niklas Ek e958ff0dd2 Merge pull request #2768 from Marvin9/feat/rel-to-anchor
feat: inject appropriate rel tag to <Link> & <a>
2020-10-07 17:31:03 +02:00
Niklas Ek 8680f14ec1 Merge pull request #2709 from RoadieHQ/lighthouse-widget
Add Lighthouse card & tab
2020-10-07 16:53:39 +02:00
Matthew Clarke eaa5275ac2 update kubernetes readmes (#2781) 2020-10-07 15:49:49 +01:00
Marcus Eide 52c4cfc257 Update Readme 2020-10-07 16:34:12 +02:00
James Wen 108ce37949 Allow for Kubernetes cluster authentication via google auth (#2691)
* Allow for Kubernetes cluster authentication via google auth

- For the kubernetes and kubernetes-backend plugins
  - The kubernetes (front-end) plugin uses the googleAuthApi and goes
    through oauth flow to fetch a Google auth token for the current user
    and pass that in a request to the kubernetes-backend plugin, which
    uses this token as the service account token (and hence as the
    authentication token for making K8s API requests).
- Related to https://github.com/spotify/backstage/issues/2552

* Use KubernetesAuthProvider and KubernetesAuthTranslator interfaces for K8s auth

- Implementations of KubernetesAuthProvider decorate the bodies of requests (for
  Kubernetes resources) sent from the kubernetes plugin (frontend) to the
  kubernetes-backend plugin (backend) with whatever information is
  needed for K8s authentication
- Implementations of KubernetesAuthTranslator take the contents of these request
  bodies sent from the kubernetes plugin (frontend) to the kubernetes-backend plugin
  (backend) and use specific values in the bodies to properly set up tokens for K8s auth
- Start with KubernetesAuthProvider + KubernetesAuthTranslator
  implementations for 'serviceAccount' and 'google' as auth providers
- Implementation of what was proposed at https://github.com/spotify/backstage/issues/2552#issuecomment-702545382
- Load in and prepare KubernetesAuthProvider implementations at plugin
  startup time via KubernetesAuthProviders API (that essentially stores
  or wraps these KubernetesAuthProvider instances)
- Related to https://github.com/spotify/backstage/issues/2552
2020-10-07 15:21:40 +01:00
Ben Lambert fbb0676fdc Merge pull request #2758 from erictnilsson/master
#2534 Refactored WorkflowRunStatus to also account for the build run's conclusion
2020-10-07 13:15:12 +02:00
Joel Low b083c97f84 Replace PluginDatabaseClientFactory with PluginDatabaseManager 2020-10-07 09:32:44 +08:00
Joel Low 8c78b4e9dd Fix review comments
- Combine the various exported types; the only API surface is now the
  `PluginDatabaseClientFactory` which is a free function.
- Rename to the SingleConnectionManager class.
- Refactor the PluginEnvironment type to use databaseClientFactory for
  clarity.
- Fix mergeDatabaseConfig to not override the input dictionary.
2020-10-07 09:32:43 +08:00
Joel Low e277c5dfa5 Expose types to handle Database management
This implements several types to own and manage databases on a database
server. The current SimpleDatabase* classes preserve the present
behaviour; future implementations can segregate databases to be owned by
different roles.
2020-10-07 09:32:42 +08:00
Fredrik Adelöw c2e2d92000 feat(catalog-backend): remove redundant columns in entities 2020-10-06 20:53:44 +02:00
Fredrik Adelöw a9e7685a48 feat(catalog-backend): store entity json in data column, not separate metadata+spec
part of #2749
2020-10-06 20:27:15 +02:00
Fredrik Adelöw 5aeb0024b9 feat(catalog-backend): temporary named test db support to aid in debugging
Fully aware that this isn't pretty. But since I am in the process of debugging migrations and catalog stuff and want to easily run manually against several databases while waiting for proper testcontainers and e2e tests, this at least lets me gain some confidence short term.
2020-10-06 19:40:40 +02:00
Marvin9 7db0ffb6e5 feat: add rel to <a> & few <Link> tags 2020-10-06 21:19:31 +05:30
Marcus Eide b47299806e Fix test 2020-10-06 15:19:56 +02:00
Marcus Eide 28f2d1e030 Move story into this plugin 2020-10-06 15:02:23 +02:00
Marcus Eide d03a7646f5 Handle empties 2020-10-06 15:00:41 +02:00