Commit Graph

18390 Commits

Author SHA1 Message Date
Andre Wanlin 75a865215c Added duration and identity as well as minor refactoring
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-23 11:47:54 -05:00
Kenneth Feng 7a5cb137b5 Always use base64 encoding to prevent interpreting binary files as utf-8 text files
Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
2021-10-22 21:45:04 -04:00
Fredrik Adelöw 4b243fbb96 Merge pull request #7747 from backstage/freben/stop-it-with-the-config
Remove all internal usage of the deprecated json and observable types
2021-10-22 20:40:48 +02:00
Fredrik Adelöw 2a0ad49da0 fix some of the ae-missing-release-tag warnings in core-components
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-22 16:59:54 +02:00
Nicolas Arnold 8c93478a4e Update api docs
Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-10-22 15:24:19 +01:00
Fredrik Adelöw 10615525f3 Do Observable too
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-22 16:13:25 +02:00
Fredrik Adelöw 56f182dde2 Remove all internal usage of the Json types
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-22 16:11:35 +02:00
Kenneth Feng b960209976 fix style issues
Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
2021-10-22 10:01:55 -04:00
Fredrik Adelöw 73aff6c039 Merge pull request #7743 from backstage/freben/release-types
release @backstage/types
2021-10-22 15:54:06 +02:00
OscarDHdz 5df2435892 Scaffolder: Enable buttons if template fails to execute
Signed-off-by: OscarDHdz <v-ohernandez@expediagroup.com>
2021-10-22 08:23:43 -05:00
Fredrik Adelöw 89950060ef release @backstage/types
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-22 15:02:34 +02:00
Nicolas Arnold 7714547af5 Fixing types
Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-10-22 10:40:37 +01:00
Nicolas Arnold f86173221c Add callback to allow users to override state
This is a slightly different implementation. It allows the user to pass in a reference to a callback so that the state
can be set. It was a suggestion from @Rugvip on a discussion we had offline.

The callback is an async function that returns a Promise<string>

Note: due to the way the OAuthAdapter works, this callback must include an env + nonce. Without them, your oauth request will fail.

Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-10-22 10:33:04 +01:00
Patrik Oldsberg 86086e36c9 Merge pull request #7742 from backstage/rugvip/fixup
types: fix cli dep version query
2021-10-22 11:27:59 +02:00
Nicolas Arnold 3b767f19c9 Adopt extra field for OAuth state
Currently, the OAuth state is very limited. It only accepts three field:
* env
* nonce
* origin

This does not give the user much flexibility when passing in other fields to the state. Origin is set based on the window location.
Env determined by the running environment of backstage. Nonce, randomly generated every time.

If a user wanted to verify other fields in the state, they would be unable to do so.
For example, let's say you have a GitHub app that serves multiple installations. In order for this to work you need a middle service between github and backstage.
This service needs to programaticaly determine where to redirect the requests to (GitHub apps only allow one redirect url).
Your intermediate service requires you to redirect to other paths on backstage based on the type of request the Github ap
p receives.
By adding in the `extraState` to the Github Provider Options, this can now be achieved. You can set the field to `{'redirect_url': '/some/path/to/redirect/to'}` to complete
 the OAuth flow.

Although this is a very specific use case, I believe this will be useful across all the providers.

Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-10-22 10:23:44 +01:00
Patrik Oldsberg d4d07abec0 types: fix cli dep version query
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-22 10:39:13 +02:00
Fredrik Adelöw 0ede1cebca Merge pull request #7724 from backstage/freben/core-types
introduce `@backstage/types`
2021-10-22 10:25:32 +02:00
Johan Haals 76a85113bc pass with no tests
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:39:24 +02:00
Johan Haals 1ed3eb4527 remove unused dependencies
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:39:23 +02:00
Johan Haals adb27441e6 use setupRequestMockHandlers inside msw
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:39:23 +02:00
Johan Haals c976066b05 Update wording in changeset
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:39:23 +02:00
Johan Haals 379e186332 Remove all exports from test-utils-core
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:39:23 +02:00
Johan Haals 925a967f36 Replace usage of test-utils-core with test-utils
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:39:21 +02:00
Johan Haals bb12aae352 Add changeset
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:38:23 +02:00
Johan Haals 60a75ae833 chore: fix import
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:38:23 +02:00
Johan Haals 87a7cbdb68 replace msw with setupRequestMockHandlers
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:38:23 +02:00
Johan Haals 4f14d881c4 Move test-utils-core into test-utils
- Deprecates methods in test-utils-core
- Migrates code intotest-utils
- Updates documentation
- Export missing types

Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-22 09:38:21 +02:00
Camila Belo 27c2a740e5 Merge pull request #7726 from szubster/lunr-filter-single-item-array
Handle single-item array filter in Lunr search engine
2021-10-22 08:32:17 +02:00
mclarke47 9a9c630ad8 better changeset message
Signed-off-by: mclarke47 <matthewclarke47@gmail.com>
2021-10-21 22:01:27 +01:00
Victor Perera d839625318 Update api-report
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
2021-10-21 14:21:03 -05:00
Colton Padden c671c38279 Template directly to specified path otherwise use temp dir
When the `--path` argument is specified, then perform the create-app templating
directly to that path. Otherwise, template to a temporary directory, and move
the files to a directory based on the project name.

Removed the `cleanUp` method in favor of removing temporary files directly in
the `moveApp` method in a `finally` block.

Reverted `moveApp` method to use the move operation instead ofe recursively
copying files.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-21 14:53:29 -04:00
Victor Perera 97dc10706f Changes requested fixed
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
2021-10-21 13:50:52 -05:00
rodion 97231f5581 fix: sentry plugin allows search query parameter
specified by documentation https://docs.sentry.io/api/events/list-a-projects-issues/

Signed-off-by: rodion <rodiongork@github.com>
2021-10-21 21:39:47 +03:00
Kenneth Feng e55a5dea09 plugin/scaffolder: set the file mode in publish:github:pull-request.
The ability to set file mode was introduced in octokit-plugin-create-pull-request:v3.10.
This PR updates the underlying octokit-plugin-create-pull-request
version to 3.10, and sets the file mode when creating the pull request.

Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
2021-10-21 14:38:24 -04:00
Fredrik Adelöw 3fcc9894f8 Merge pull request #7714 from backstage/freben/stringify-error
Add `stringifyError`
2021-10-21 19:08:50 +02:00
Ben Lambert 017a47e585 Merge pull request #7618 from backstage/changeset-release/master
Version Packages
2021-10-21 16:50:00 +02:00
Fredrik Adelöw 8c30ae8902 Add stringifyError that is useful for logging e.g. Something went wrong, ${stringifyError(e)}
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-21 16:39:12 +02:00
Colton Padden a9a8c6f7c5 Scroll to the top of reader content when primary navigation link is clicked
When navigating between pages using the primary sidebar navigation menu,
scroll to the top of the generated markdown content via
`.scrollIntoView()`.

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-21 10:36:59 -04:00
Fredrik Adelöw 66bcc31ec4 some more fixup
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-21 16:36:41 +02:00
Fredrik Adelöw 7c5cf5a4a4 add test
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-21 16:18:39 +02:00
Colton Padden 109a66a7c7 make bucketRootPath the last argument to publish constructors
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-10-21 09:42:52 -04:00
github-actions[bot] bf5090e59d Version Packages 2021-10-21 13:28:13 +00:00
Matthew Clarke b61c50a12f fix k8s crd regression (#7728)
Signed-off-by: mclarke47 <matthewclarke47@gmail.com>
2021-10-21 14:21:35 +01:00
Fredrik Adelöw 447c514899 rename to just types
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-10-21 15:18:37 +02:00
Ben Lambert f207c39e41 Merge pull request #7642 from kuangp/fix/catalog-register
fix(catalog:register): support optional locations
2021-10-21 15:16:52 +02:00
Tomasz Szuba a369f19e7e Rename changeset
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2021-10-21 15:13:30 +02:00
Ivan Stoiev bf5dfa2708 update datatogRum browser agent version
Signed-off-by: Ivan Stoiev <ivan.stoiev@gmail.com>
Signed-off-by: Ivan Stoiev <ivan.stoiev@cobli.co>
2021-10-21 10:01:46 -03:00
Patrik Oldsberg 803c5550c5 Merge pull request #7568 from backstage/firestore-keystore
auth-backend: Add Firestore as new key-store provider
2021-10-21 14:43:05 +02:00
Ben Lambert 09dea877bb Merge pull request #7703 from lykkeaxlin/bump-version
bump bazaar plugin-catalog-react version
2021-10-21 14:16:30 +02:00
blam 5e43a73dd4 chore: fix up the changeset for the bazaar plugins
Signed-off-by: blam <ben@blam.sh>
2021-10-21 14:15:46 +02:00