Commit Graph

4476 Commits

Author SHA1 Message Date
Chongyang Adrian, Ke b57db403ac use UrlSearchParams
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-05-18 10:35:40 +08:00
Chongyang Adrian, Ke 5001de9088 GitlabUrlReader compare SHA commits for filepath if given
Signed-off-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
2021-05-17 09:57:08 +08: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
Eric Peterson 4916a6e23d Decode req.path before loading object from GCS
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2021-05-09 15:20:08 +02:00
Shashank Bairy R d40316a7fd use Array.from instead of spread operator
Signed-off-by: Shashank Bairy R <shashank.bairy04@gmail.com>
2021-05-09 12:00:05 +05:30
Shashank Bairy R 80f07624cd Add context for versions:bump about version change and update tests
Signed-off-by: Shashank Bairy R <shashank.bairy04@gmail.com>
2021-05-09 00:02:50 +05:30
Marcus Eide 699bca6725 Merge branch 'master' into eide/shortcut-plugin 2021-05-07 17:06:23 +02:00
blam 85978cb28a chore: trying to fix the version packages PR as there's some horrible formatting in there somehow
Signed-off-by: blam <ben@blam.sh>
2021-05-07 16:38:00 +02:00