Commit Graph

18969 Commits

Author SHA1 Message Date
Patrik Oldsberg 1695c17b2e storybook: support args for selecting a subset of packages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-10-25 14:22:26 +02:00
rodion 43b77e1e5e fix: sentry-plugin query parameter is optional
Signed-off-by: rodion <rodiongork@github.com>
2021-10-25 15:05:07 +03:00
Suzanne Daniels d99c49b6dc Merge pull request #7499 from suuus/suuus/docs
Revamp of getting started guide - part 1
2021-10-25 13:33:01 +02:00
Johan Haals 49252f0d6d Merge pull request #7727 from backstage/test-utils-core
Move test-utils-core into test-utils
2021-10-25 11:09:16 +02:00
Ben Lambert a1b042b508 Merge pull request #7752 from awanlin/topic/add-duration-and-identity-to-azure-devops-backend
Added duration and identity as well as minor refactoring
2021-10-25 11:00:46 +02:00
blam 4289ac5322 chore: export the types properly and update the api-report
Signed-off-by: blam <ben@blam.sh>
2021-10-25 10:34:01 +02:00
Ben Lambert a22ebf3da6 Merge pull request #7681 from mclarke47/refresh-kubernetes-plugin-at-interval
Refresh k8s plugin at interval
2021-10-25 10:23:00 +02:00
blam d184e50c50 chore: updating api report
Signed-off-by: blam <ben@blam.sh>
2021-10-25 10:21:17 +02:00
Ben Lambert 6a4e6e3898 Merge pull request #7733 from cmpadden/tech-docs-scroll-restoration
Scroll to Top of TechDocs Reader During Page Navigation
2021-10-25 10:04:04 +02:00
dependabot[bot] 3c4bbd7ad6 build(deps): bump keyv-memcache from 1.2.5 to 1.2.7
Bumps [keyv-memcache](https://github.com/jaredwray/keyv-memcache) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/jaredwray/keyv-memcache/releases)
- [Commits](https://github.com/jaredwray/keyv-memcache/compare/v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: keyv-memcache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 04:12:29 +00:00
Andre Wanlin 7359623e87 Added changeset
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 10:13:28 -05:00
Andre Wanlin 91e7f2eda8 Added tests for state and result functions
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 10:04:11 -05:00
Andre Wanlin 7adcfb4f76 Refactored README
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 08:45:22 -05:00
Andre Wanlin e1ebaff47a Removed router
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-24 08:09:00 -05:00
Andre Wanlin 2eebc9bac3 Added changeset
Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
2021-10-23 11:50:43 -05:00
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
Brian Fletcher e85f494939 Merge branch 'master' into scaffolder-improvement 2021-10-22 10:44:33 +01:00
Brian Fletcher 33d99f7cdd data store options type added
Signed-off-by: Brian Fletcher <brian@roadie.io>
2021-10-22 10:42:07 +01: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