Commit Graph

20 Commits

Author SHA1 Message Date
Minn Soe 5a3ce34072 refactor: migrate from deprecated database manager
Changes:
- Swaps out `SingleConnectionDatabaseManager` to `DatabaseManager`
  across the repo.
- Updates `backend-test-utils` to generate test plugin names prefixed
  with db to satisfy plugin naming constraint, e.g. 0 becomes db0.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Minn Soe 2976f3bae3 refactor: rename and deprecate database manager
Changes:
- Deprecates SingleConnectionManager and aliases to DatabaseManager.
- Simplifies database config typing in `config.d.ts`.
- Drops implementation specific assert in SingleConnectionManager test.
- Move database prefix reference and drop static property for default value.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Minn Soe 772dbdb511 feat: add database manager with per plugin config
This commit introduces:
- a new backwards compatible database manager which allows the end-user
  to set global and per plugin database configuration.
- an early iteration of a database connector interface.
- provides helper functions for each of the database connectors to
  meet the new interface.

Signed-off-by: Minn Soe <contributions@minn.io>
2021-06-10 11:14:40 +01:00
Eric Peterson d6936dcbde Swap out cache-manager for Keyv implementation.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 17:11:04 +02:00
Eric Peterson 93ff8275dd WIP store-agnostic cache manager.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:24:40 +02:00
Oliver Sand b42531cfed Support configuration of file storage for SQLite databases
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-13 17:48:21 +02:00
Fredrik Adelöw c2450d458f integration: take over the config 2021-01-20 13:50:06 +01:00
Patrik Oldsberg 4211198c30 Merge pull request #4128 from backstage/rugvip/fetch
backend-common: lock down UrlReader to only read from allowed URLs
2021-01-18 18:53:19 +01:00
Patrik Oldsberg a283dcc43b backend-common: include port in url reader allow list check 2021-01-18 14:21:34 +01:00
Patrik Oldsberg 5345a1f983 backend-common: lock down UrlReader to only read from allowed URLs 2021-01-18 14:17:04 +01:00
Patrik Oldsberg 09a3704264 backend-common: remove deprecated HTTPS config 2020-12-30 13:52:48 +01:00
Patrik Oldsberg 751f58ff7c backend-common: replace generated cert params with a simple bool switch, and fix certificate generation 2020-12-30 12:57:29 +01:00
Patrik Oldsberg 6123682748 backend-common: allow port in config to be both a number or a string 2020-12-01 12:07:54 +01:00
Patrik Oldsberg b3d4e4e57a backend-common: move the frontend visibility of config to @backstage/integration 2020-11-26 22:28:38 +01:00
Fredrik Adelöw 3aa7efb3ff backend-common: add support for passing false as a CSP field value, to drop it from the defaults (#3437) 2020-11-25 10:51:35 +01:00
Patrik Oldsberg b47dce06fc backend-common: make integrations host and urls visibile in the frontend 2020-11-23 17:20:35 +01:00
Patrik Oldsberg 0b97a89f55 address config schema review comments 2020-11-18 11:31:19 +01:00
Patrik Oldsberg 9f6f39ce5f backend-common: integration configs aren't required 2020-11-18 11:31:17 +01:00
Patrik Oldsberg b8eba8219e config-loader: enable validation of required props in d.ts definitions + fix issues 2020-11-18 11:31:16 +01:00
Patrik Oldsberg 567ce7804a backend-common: port config schema to d.ts and fill out 2020-11-18 11:31:14 +01:00