Commit Graph

152 Commits

Author SHA1 Message Date
Patrik Oldsberg bc9f536545 Merge pull request #2994 from spotify/rugvip/conflagrate
config-loader: switch to using --config options to load in config
2020-10-22 18:01:21 +02:00
Patrik Oldsberg 4a6a5149df backend-common: fix for args.config not always being an array 2020-10-22 10:52:06 +02:00
Patrik Oldsberg 8c2b76e45f config-loader: switch to using --config options to load in config 2020-10-22 10:52:06 +02:00
blam 681c861d25 Merge remote-tracking branch 'origin' into migrate-to-msw
* origin:
  fix: ts
  fix: forwardRef to SidebarItem
  fix(cli): one more await in the test
  backend-common: make loadBackendConfig return config directly and log all resolved app-configs
2020-10-21 13:57:40 +02:00
blam 3825cb8d04 chore(fetchReader): actually return the response of the reader 2020-10-21 10:09:36 +02:00
Patrik Oldsberg 7bbeb049fe backend-common: make loadBackendConfig return config directly and log all resolved app-configs 2020-10-20 00:10:28 +02:00
blam 101978963d Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (139 commits)
  Cleanup
  Update PinButton.test.tsx
  feat: update github insights plugin version (#2973)
  Ignore IntelliJ *.iml files (#2971)
  chore(deps): bump rollup-plugin-dts from 1.4.11 to 1.4.13
  fix the plugin card on plugins page
  align 'Add to Marketplace' button on plugins page
  fix the PluginGrid on mobiles sizes
  use getBy query instead of queryBy when asserting for elements present in document (#2951)
  Update PinButton.tsx
  Add test case for Progress component (#2953)
  fix the styling of footer copy on mobile
  add changeset
  handle the case where no entities are available to show
  core-api: work around issue with ApiRef export const declarations
  core-api: move utility api system implementation into apis/system
  Update docs regarding npm config ignore-scripts flag
  Another try
  Fix Core Features configuration id (#2948)
  Fix test?
  ...
2020-10-19 23:57:40 +02:00
Patrik Oldsberg 9f3ddfacde cli: split and bump eslint dependencies + fix issues 2020-10-17 15:04:37 +02:00
Fredrik Adelöw 99710b102d feat(catalog-backend): make a builder to help wire up the catalog 2020-10-14 09:28:59 +02:00
blam e44cb85b22 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (66 commits)
  chore: fix lerna linting
  v0.1.1-alpha.25
  Add Code Insights plugin to sample app and marketplace (#2833)
  Improve main CI build status badge in README (#2866)
  Update roadmap: Design System 🚢 (#2858)
  github/codecov: switch to informational mode
  github/workflows: use the tip of master as the base for comparing PR code coverage
  make saml provider path from globalConfig (#2855)
  fix(catalog-backend): limit search value lengths
  Update project Copyright (#2852)
  fix(catalog-backend): actually use modified entity output (default namespace was broken)
  remove unnecessary center keyword
  Move card header bg to up contrast, fix #2558
  Update name of env authentication env vars
  Fix feedback from dtuite
  Remove chart testing workflow for now
  Only lint charts on Pull Requests
  Move the k8s deployment docs to its own helm deployment page
  Remove line in initdb script that creates backend db
  Use app-config.development.yaml to provide configuration instead of local
  ...
2020-10-13 03:56:13 +02:00
blam 46960a61ec v0.1.1-alpha.25 2020-10-12 22:42:54 +02:00
Patrik Oldsberg 8afce088ac Use APP_ENV to determine what config to load, falling back to NODE_ENV 2020-10-10 17:41:03 +02:00
Patrik Oldsberg 468d4a2dae Merge pull request #2684 from themousepotato/lintrule-dirname-fix
Add a lint rule to avoid using __dirname
2020-10-09 21:03:13 +02:00
blam b33353dd39 Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: (110 commits)
  chore(catalog-backend): removing redudant classes and some functions
  chore(deps-dev): bump @types/webpack from 4.41.21 to 4.41.22 (#2765)
  move codecov.yml to .github
  feat(catalog-backend): add batch concurrency
  create-app: remove build step
  cli: simplify jest transform ignore regex
  feat(catalog-backend): introduce batching, speed up reading and writing of large datasets
  Techdocs: add Azure DevOps prepare support (#2748)
  feat(techdocs-header): Show breadcrumbs on docs page (#2786)
  changesets: add entry for create-app template location fix
  create-app: revert to github location type for example templates
  fix: make catalog filter work again
  Use new url scheme for techdocs
  feat: remove LocationProcessor.processEntity
  Add Dockerfile for helm chart
  feat: use the new UrlReader in the CodeOwnersProcessor
  feat: use new UrlReader in PlaceholderProcessor
  feat: remove the backstage.io/definition-at-location annotation
  Update loud-lamps-visit.md
  feat(proxy-backend): limit the forwarded http headers to a safe set
  ...
2020-10-09 14:48:32 +02:00
blam f36e1e9fe7 chore: remove node-fetch from the project 2020-10-09 14:14:53 +02:00
blam a45a5d9418 chore(backend-common): reworking backend common to use cross-fetch and new msw 2020-10-09 14:02:07 +02:00
Navaneeth Suresh bbeaff9daf Add a lint rule to avoid using __dirname 2020-10-09 15:03:29 +05:30
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
Joel Low 7471a46d27 Use resetAllMocks and toHaveBeenCalledTimes 2020-10-07 14:59:09 +08:00
Joel Low 0bc45e0d3a Fix additional review comments 2020-10-07 10:44:08 +08:00
Joel Low c990535157 Remove support for alternative plugin databases 2020-10-07 09:32:44 +08:00
Joel Low f88cc8846b Add missing @param declarations in API docs 2020-10-07 09:32:44 +08:00
Joel Low 906e593a54 Implement tests 2020-10-07 09:32:44 +08: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
Patrik Oldsberg 46b71700ee v0.1.1-alpha.24 2020-10-05 15:45:33 +02:00
Patrik Oldsberg 2527afac9e backend-common: refactor UrlReaders to only expose static methods 2020-10-03 16:52:31 +02:00
Patrik Oldsberg e6a6f2f264 backend-common: refactor reader types 2020-10-03 16:39:36 +02:00
Patrik Oldsberg e6ac72b59e backend-common: we support reading from more than just gitlab.com 2020-10-03 16:19:07 +02:00
Patrik Oldsberg d3265666af backend-common: refactor GitlabUrlReader test and restore raw url functionality 2020-10-03 16:18:31 +02:00
Patrik Oldsberg 02eafc7091 backend-common: refactor BitbucketUrlReader test and exported symbols 2020-10-03 15:10:34 +02:00
Patrik Oldsberg 77c42b3fd3 backend-common: refactor AzureUrlReader to test public methods using msw 2020-10-03 15:06:55 +02:00
Patrik Oldsberg 69b3c03473 backend-common: added toString methods for all readers + log in backend instead of at creation 2020-10-03 11:55:24 +02:00
Patrik Oldsberg 3289598526 backend-common: remove UrlReaderHostMux 2020-10-03 11:55:23 +02:00
Patrik Oldsberg b971534dfb backend-common: added FetchUrlReader and use as fallback by default 2020-10-03 11:55:23 +02:00
Patrik Oldsberg 07d19aad96 backend-common: fix GithubUrlReader tests 2020-10-03 11:55:22 +02:00
Patrik Oldsberg 1e97419d30 backend-common: merge GitlabReaderProcessor functionality into GitlabUrlReader 2020-10-03 11:55:22 +02:00
Patrik Oldsberg f50a233a4f backend-common: port GitlabUrlReader 2020-10-03 11:55:21 +02:00
Patrik Oldsberg ce32eb3c69 backend-common: port AzureUrlReader 2020-10-03 11:55:21 +02:00
Patrik Oldsberg 4cdac4624e backend-common: port BitbucketUrlReader 2020-10-03 11:55:21 +02:00
Patrik Oldsberg 683181837b catalog-backend: move over remaining to-be UrlReaders 2020-10-03 11:55:21 +02:00
Patrik Oldsberg 41d55e8d76 backend-common: refactor UrlReaders and factories to be centered around predicates 2020-10-03 11:55:20 +02:00
Patrik Oldsberg 0fbe965b43 backend-common: add UrlReaderPredicateMux 2020-10-03 11:55:20 +02:00
Patrik Oldsberg 44c8816db5 backend-common: add UrlReaders for constructing a reader from config 2020-10-03 11:55:20 +02:00
Patrik Oldsberg b461b367d7 backend-common: port GithubUrlReader 2020-10-03 11:55:19 +02:00
Patrik Oldsberg 8a3e63e590 catalog-backend: move GithubReaderProcessor to backend-common readers 2020-10-03 11:55:19 +02:00
Patrik Oldsberg 1473523c88 backend-common: add UrlReaderHostMux 2020-10-03 11:55:18 +02:00
Patrik Oldsberg bb553ed284 backend-common: add UrlReader interface 2020-10-03 11:55:18 +02:00
Joel Low 3f2ec3c080 Let the Backend manage creating databases 2020-10-01 13:21:44 +08:00