Commit Graph

4481 Commits

Author SHA1 Message Date
Patrik Oldsberg 7f6981164d Merge pull request #5691 from backstage/rugvip/observable
core-api: updated Observable type to support interop
2021-05-17 14:14:53 +02:00
Patrik Oldsberg e6f0180242 core-api: updated Observable type to support interop
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-05-17 13:24:44 +02:00
Patrik Oldsberg baf13afd3f dev-utils: fix for scm integrations API factory not being provided
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-05-17 13:20:57 +02:00
Fredrik Adelöw 3d2dcbcbd6 Merge pull request #5666 from backstage/dependabot/npm_and_yarn/json-schema-merge-allof-0.8.1
chore(deps): bump json-schema-merge-allof from 0.7.0 to 0.8.1
2021-05-17 12:28:52 +02:00
Fredrik Adelöw 715f3a0e1f Merge pull request #5654 from backstage/mob/status
Add the `status` field to the Entity envelope
2021-05-17 11:44:29 +02:00
dependabot[bot] 2904052760 chore(deps): bump json-schema-merge-allof from 0.7.0 to 0.8.1
Bumps [json-schema-merge-allof](https://github.com/mokkabonna/json-schema-merge-allof) from 0.7.0 to 0.8.1.
- [Release notes](https://github.com/mokkabonna/json-schema-merge-allof/releases)
- [Commits](https://github.com/mokkabonna/json-schema-merge-allof/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-17 11:37:21 +02:00
Fredrik Adelöw 68fdbf014e Add the status field to the Entity envelope
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-05-12 14:47:02 +02:00
blam 5b8638c15e chore: fix the create-app version
Signed-off-by: blam <ben@blam.sh>
2021-05-12 11:55:23 +02:00
github-actions[bot] df31bdca8f Version Packages 2021-05-12 09:39:51 +00:00
Ben Lambert e5a8582d5d Merge pull request #5651 from backstage/mob/fix-vpo
Fixing Changelog formatting
2021-05-12 11:01:04 +02:00
blam aee7212366 Updating changelogs
Signed-off-by: blam <ben@blam.sh>
2021-05-12 11:00:37 +02:00
Fredrik Adelöw a66c6f986c Revert "Introduce @backstage/backend-testing, with TestDatabases to start off"
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-05-12 10:30:32 +02:00
Fredrik Adelöw b3988ffb51 Merge pull request #5634 from backstage/freben/database-tests
Introduce `@backstage/backend-testing`, with `TestDatabases` to start off
2021-05-12 10:03:09 +02:00
Fredrik Adelöw dd8a0df53a Merge pull request #5625 from backstage/freben/mysql-prep
Prep work for mysql support in backend-common
2021-05-12 10:00:18 +02:00
Fredrik Adelöw babe473dd1 Introduce @backstage/backend-testing, with TestDatabases to start off
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-05-12 08:48:43 +02:00
Fredrik Adelöw f3f09dda34 Merge pull request #5551 from backstage/iameap/cache
Add a storage-agnostic cache manager to backend-common
2021-05-11 16:57:35 +02:00
blam 90385750c9 chore: fixing user-event versioning for create-plugin templates
Signed-off-by: blam <ben@blam.sh>
2021-05-11 14:31:00 +02:00
dependabot[bot] ee103bc710 chore(deps): bump @testing-library/user-event from 12.8.3 to 13.1.8
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 12.8.3 to 13.1.8.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/master/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v12.8.3...v13.1.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 14:30:59 +02:00
Johan Haals 6f02dacdc8 Merge pull request #5601 from backstage/mob/dryrun
Catalog/next: Add support for dryRun
2021-05-11 11:36:26 +02:00
Eric Peterson a8c70b3ae4 Maybe not THAT transparent.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-10 18:45:31 +02:00
Ben Lambert 48fa6b03a6 Merge pull request #5630 from mtlewis/alert-stack
Show number of older messages in AlertDisplay
2021-05-10 14:25:02 +02:00
Himanshu Mishra e4b48f9d51 Merge pull request #5617 from backstage/iameap/spaces-in-doc-objects 2021-05-10 12:27:03 +02:00
Fredrik Adelöw f9fb4a205e Prep work for mysql support in backend-common
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-05-10 11:30:11 +02:00
Eric Peterson 0c491a1c5e Clean up tests and imports
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-10 11:25:11 +02:00
Ben Lambert 72ac10b135 Merge pull request #5623 from BA1RY/feat/cli-context-version-bump
cli: context for version:bump about version change
2021-05-10 11:15:03 +02:00
Mike Lewis 3f988cb632 Add count of older messages in Snackbar alert
Adds "(n older messages)" suffix to the message contents in the
core AlertDisplay when there are multiple messages to show. Some
considerations that led to this:

* It seems like if we're going to show only one message, it should be
  the most recent message (which is the current behavior).
* Just showing a message count (e.g. '1/4', '4/4') seems open
  to interpretation about whether the count starts at the oldest or
  newest.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-05-10 09:56:49 +01:00
Mike Lewis 0494d0a946 Remove unnecessary message prop from Snackbar
When the Snackbar has children, the message prop is ignored, so we can
remove it from here to simplify the component.

cf. https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Snackbar/Snackbar.js#L247

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-05-10 09:52:05 +01:00
Ben Lambert 12518e2420 Merge pull request #5392 from backstage/eide/shortcut-plugin
[plugin]: Shortcuts plugin for the Sidebar
2021-05-10 10:47:31 +02:00
Johan Haals b0d711e718 Catalog/next: Add support for dryRun
which is used by the catalog-import plugin.

Co-authored-by: Ben Lambert <ben@blam.sh>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-05-10 10:06:54 +02:00
Fredrik Adelöw d36f262904 Merge pull request #5618 from backstage/blam/fixbrokenchangeset
chore: trying to fix the version packages PR as there's some horrible formatting issues
2021-05-10 09:45:13 +02:00
Ben Lambert effdfff204 Merge pull request #5610 from brethubbard/master
Improve error messages when schema validation fails
2021-05-10 09:31:46 +02:00
Eric Peterson 6e2b9a92d6 Updating backend-common API
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 18:16:24 +02:00
Eric Peterson 03ae33c064 Prettier
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 18:08:57 +02:00
Eric Peterson 38e943da0c Implement a NoStore cache backend, and do not provide a cache backend by default.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 17:52:06 +02: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 884c2bd54f Update docs to reflect changes
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:34 +02:00
Eric Peterson 7ff6a75575 Add an onError config to enable plugin devs to catch and handle underlying client errors
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:34 +02:00
Eric Peterson 368a5158cc Return an explicit undefined on no data.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:34 +02:00
Eric Peterson b71c230beb Refactor CacheManager.fromConfig
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:34 +02:00
Eric Peterson cc60475127 Clarify default TTL behavior.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:34 +02:00
Eric Peterson b73dc5f46e Clean up some types
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:34 +02:00
Eric Peterson ac8f7e4666 Dev dependency.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:25:30 +02:00
Eric Peterson 669ff5ee2e Declare new public API
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:24:47 +02:00
Eric Peterson b57fa279c5 Clean up and document exported types
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:24:47 +02:00
Eric Peterson c7fa03cd76 Test coverage for CacheManager and CacheClient
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:24:47 +02:00
Eric Peterson 6e0be00e1d Wrap cache clients in a Backstage-specific CacheClient to handle key normalization and error handling + allow us the freedom to move away from cache-manager in the future if necessary.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:24:47 +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
Eric Peterson 4042b6e140 Decode req.path before loading object from OpenStack Swift
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:20:08 +02:00
Eric Peterson 9570335f24 Decode req.path before loading object from Azure
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:20:08 +02:00
Eric Peterson 3ebfa8f189 Decode req.path before loading object from S3 bucket.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:20:08 +02:00