Commit Graph

336 Commits

Author SHA1 Message Date
Ben Lambert 80e92b8f48 Merge pull request #5034 from lunarway/feature/catalog-mode
Add readonly mode to catalog-backend
2021-03-26 15:13:56 +01:00
Crevil f1b2c1d2c2 Add readonly mode to catalog
This change includes a new `mode` concept to the catalog backend. This gives us
the handle to configure catalog in a `readonly` mode as discussed in #3348.

The new `catalog.mode` field configures that catalog in either `readwrite` or
`readonly`.

- `readwrite` is the current mode that allows users to register components at
  startup through `catalog.locations` and with eg. plugin `catalog-import`

- `readonly` is the new mode which, for now, disables the mutating `location`
  APIs

Signed-off-by: Crevil <bjoern.soerensen@gmail.com>
2021-03-25 20:59:33 +01:00
github-actions[bot] 844da89090 Version Packages 2021-03-25 17:46:13 +00:00
Eric Peterson bb378ac6f2 Merge pull request #4515 from backstage/iameap/search-indexer
[Search] Foundation: plugins and types
2021-03-25 13:15:33 +01:00
dependabot[bot] d42f055d48 chore(deps): bump express-promise-router from 3.0.3 to 4.1.0
Bumps [express-promise-router](https://github.com/express-promise-router/express-promise-router) from 3.0.3 to 4.1.0.
- [Release notes](https://github.com/express-promise-router/express-promise-router/releases)
- [Changelog](https://github.com/express-promise-router/express-promise-router/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/express-promise-router/express-promise-router/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-23 04:26:33 +00:00
Eric Peterson fb2ff7dfb0 Provide useful logging in the IndexBuilder.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:49 +01:00
Eric Peterson 44ec2571b6 Use Catalog REST API instead of assuming local process.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:49 +01:00
Eric Peterson 3560405cab Call a builder a builder.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:49 +01:00
Anders Näsman 5a045906c2 remove singleton pattern from indexer
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:49 +01:00
Anders Näsman 51fc8de48c Tweak Collator/Decorator to be classes instead of methods
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:48 +01:00
Anders Näsman 124b93bff4 rename plugin-search-indexer to plugin-search-backend-node
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:45 +01:00
Anders Näsman 0057692401 move collation to search plugin
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:04 +01:00
Anders Näsman b7cb59dd7b standard TODO syntax
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:03 +01:00
Eric Peterson 3e9d8427b6 Illustrate potential software catalog indexing.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:42:00 +01:00
Eric Peterson b7b4cc319c Wire up search backend to app backend testbed.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-03-19 09:41:15 +01:00
Andreas Stenius 5a09c681d7 badges: refactoring to use badge factories to create dynamic badges.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:41:13 +01:00
Andreas Stenius 6a68e79217 badges-backend: drop support for defining badges in app config.
Signed-off-by: Andreas Stenius <andreas.stenius@svenskaspel.se>
2021-03-19 08:41:13 +01:00
Andreas Stenius ac17aeb35d badges: load default badges from code rather than config. #4457.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:12 +01:00
Andreas Stenius 798002ee03 badges-backend: refactor to use badge definitions in config. #4457
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:11 +01:00
Andreas Stenius 61078ba14d badges: introduce badges field on entity about card.
Signed-off-by: Andreas Stenius <git@astekk.se>
2021-03-19 08:41:11 +01:00
github-actions[bot] 718eea4f08 Version Packages 2021-03-18 12:31:44 +00:00
Patrik Oldsberg 2eeb884353 todo-backend: implement TodoScmReader
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 18:02:02 +01:00
Patrik Oldsberg 76e6336312 todo-backend: full TodoReaderService implementation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 18:02:01 +01:00
Patrik Oldsberg 117286b313 todo-backend: create layered shell with types and mock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 18:02:01 +01:00
Patrik Oldsberg be0721c6c6 backend: add todo plugin
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-11 18:02:00 +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
dependabot[bot] 7616988312 chore(deps): bump knex from 0.21.18 to 0.95.1
Bumps [knex](https://github.com/knex/knex) from 0.21.18 to 0.95.1.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-08 10:26:45 +01:00
github-actions[bot] ff2ab4fade Version Packages 2021-03-04 13:11:10 +00:00
Johan Haals b335415fa4 Rename urlReader to reader
Co-authored-by: Ben Lambert <ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:58 +01:00
blam 6fa98f941b feat: new actions work nicely and publish to github as expected
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-03-02 10:21:57 +01:00
dependabot[bot] 9a582c60a9 chore(deps): bump @typescript-eslint/eslint-plugin from 4.14.0 to 4.15.2
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.14.0 to 4.15.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.15.2/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-25 11:21:15 +01:00
github-actions[bot] 4ae0467c2f Version Packages 2021-02-23 10:31:40 +01:00
blam d50ddbd1d3 Merge branch 'master' of github.com:backstage/backstage into mob/scaffolder-frontend
* 'master' of github.com:backstage/backstage: (118 commits)
  cli: Fix handling of dynamic imports in esm.js files
  minor typo in migration
  chore(deps): bump archiver from 5.1.0 to 5.2.0
  dockerfile: mention build-image command
  Apply suggestions from code review
  update backend Dockerfile to use config example and fix comment
  docs: add full docker deployment docs
  chore: fix code review
  chore: fixing syntax
  docs: fixing custom implementations of utitiy apis
  a small start to the integrations section of the config
  TechDocs: Add changeset about Docker permission fix
  Updated unit tests for the new UI
  TechDocs: Pass user and group ID when invoking docker container
  Replace logging erro and return undefined for a throw new Error
  @types/react 16 not 17
  Use a more strict type for `variant` of cards
  docs(TechDocs): Add more context with AWS docs hyperlinks
  Added missing dep on @types/react
  Removed unused import
  ...
2021-02-18 11:41:34 +01:00
Patrik Oldsberg 38fe527d97 dockerfile: mention build-image command 2021-02-17 21:23:12 +01:00
Patrik Oldsberg 92d7a8eedf switch docker build to use backend:bundle 2021-02-16 23:48:03 +01:00
Johan Haals 17d1d909e4 Replace EntityClient with CatalogClient
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-16 11:23:06 +01:00
Johan Haals 1ae69b890a scaffolder: Add registration step
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-12 08:38:20 +01:00
github-actions[bot] aa49ca2284 Version Packages 2021-02-11 10:15:47 +00:00
Johan Haals dfc1270f85 Merge pull request #4360 from backstage/mob/stateless-scaffolder
Introduce stateless v2 scaffolder API
2021-02-08 13:39:27 +01:00
github-actions[bot] 6794967d20 Version Packages 2021-02-04 13:02:30 +00:00
Johan Haals 71dc78b01f Wire up database and rename database classes
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: blam<ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-02-02 16:38:02 +01:00
github-actions[bot] cda741034d Version Packages 2021-01-28 10:46:08 +00:00
github-actions[bot] c5584b62c2 Version Packages 2021-01-21 13:13:05 +00:00
Ben Lambert dd0872a645 Merge pull request #3900 from backstage/blam/move-scaffolder-to-integrations
Deprecate Scaffolder config, prefer integrations config instead
2021-01-21 08:50:32 +01:00
Johan Haals 64826f9e2b Re-add logger to preparer
Co-authored-by: blam<ben@blam.sh>
2021-01-20 11:52:36 +01:00
blam c0a7910db5 chore: migrate the rest of the scaffolding to the new way for instegration config 2021-01-19 19:04:06 +01:00
Johan Haals a532d9d124 Add fromConfig remove logging 2021-01-19 11:51:19 +01:00
Nir Gazit 895eb46961 Merge remote-tracking branch 'upstream/master' into master 2021-01-15 22:13:55 +02:00
Patrik Oldsberg e82504c1b4 Merge pull request #4076 from SDA-SE/feat/remove-types-helmet
Removes the @types/helmet dependency
2021-01-14 18:39:09 +01:00
Oliver Sand 8b800caaf9 Removes the @types/hemlet dependency
We are using hemlet 4.0.0+ which has tpying included. The typing dependency is not needed anymore.
2021-01-14 14:44:44 +01:00