Commit Graph

7684 Commits

Author SHA1 Message Date
github-actions[bot] d66c5f1282 Version Packages 2021-10-28 14:06:43 +00:00
Patrik Oldsberg c9143d2abe Merge pull request #7409 from RoadieHQ/ch3367
Adopt extra field for OAuth state
2021-10-28 16:01:48 +02:00
Fredrik Adelöw bb970cf258 Merge pull request #7444 from N-Shar-ma/file-path-split-bug-fix
Fix FileExplorer Path Splitting Bug
2021-10-28 13:41:35 +02:00
Fredrik Adelöw 303543eeb2 Merge pull request #7807 from andrewthauer/custom-location-analyzer
feat: allow custom location analyzer in next catalog builder
2021-10-28 13:19:22 +02:00
Andrew Thauer b9ce1ce2c1 feat: allow custom location analyzer in next catalog builder
Signed-off-by: Andrew Thauer <athauer@wealthsimple.com>
2021-10-27 15:00:48 -04:00
Jeremy Guarini 72e7a87684 add more testing for FileExplorer tests
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-27 09:36:30 -07:00
Oliver Sand 106a5dc3ad Restore original casing for kind, namespace and name in DefaultTechDocsCollator
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-10-27 14:30:40 +02:00
Ben Lambert 40681b867d Merge pull request #7738 from kennethzfeng/kfeng.fix-file-mode
plugin/scaffolder: set the file mode in publish:github:pull-request.
2021-10-27 09:30:53 +02:00
Ben Lambert 082a6513f7 Merge pull request #7767 from ellisio/chore-deps-msw
chore(deps): bump msw to v0.35.0
2021-10-27 09:19:20 +02:00
Tim Hansen 70b825d757 Merge pull request #7524 from GunnerStraiker1/entity-type-picker-hidden
EntityTypePicker can be hidden and initially set
2021-10-26 21:46:46 -06:00
Jeremy Guarini 7ea444c78d update filexplorer test
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-26 14:47:32 -07:00
Jeremy Guarini b3fb448e7b removed extra line in imports
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-26 14:47:32 -07:00
Jeremy Guarini f7a7fdc2af fixed prettier issues with FileExplorer files
Signed-off-by: Jeremy Guarini <jguarini@paloaltonetworks.com>
2021-10-26 14:47:32 -07:00
Victor Perera bd7f1e506c Tests fixed
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
2021-10-26 16:43:45 -05:00
blam d465f2e0af chore: bump the msw package and remove it from test-utils as it's not even needed
Signed-off-by: blam <ben@blam.sh>
2021-10-26 17:13:49 +02:00
Johan Haals d5fb02775a Merge pull request #7774 from backstage/msw/usages
chore/cli: Replace msw with setupRequestMockHandlers
2021-10-26 15:56:35 +02:00
Nicolas Arnold f18755ee49 Using req instead of state
Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-10-26 10:27:18 +01:00
Johan Haals f1e96dc5b1 chore/cli: Replace msw with setupRequestMockHandlers
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-10-26 10:54:47 +02:00
Nicolas Arnold 118df0f94d Merge branch 'backstage:master' into ch3367 2021-10-26 09:48:31 +01:00
Ben Lambert ce695c62fb Merge pull request #7744 from OscarDHdz/scaffolder/EnableActionButtonsIfTemplateFails
Scaffolder: Enable buttons if template fails to execute
2021-10-26 10:38:51 +02:00
Tim Hansen 2ba4a2caef Merge pull request #7765 from RodionGork/fix/sentry-plugin-period-values
fix: sentry plugin corrected allowed period values
2021-10-25 20:20:25 -06:00
Tim Hansen 5d3253f7b6 Merge pull request #7755 from jrusso1020/jrusso/export-components-for-custom-scaffolderpage
Export components so developers can customize the scaffolder page
2021-10-25 13:57:46 -06:00
rodion 61fe752dad fix: sentry plugin corrected allowed period values
according https://docs.sentry.io/api/events/list-a-projects-issues/

Signed-off-by: rodion <rodiongork@github.com>
2021-10-25 22:48:14 +03:00
OscarDHdz 59a7e369a9 Scaffolder: update template execution error handling
Signed-off-by: OscarDHdz <v-ohernandez@expediagroup.com>
2021-10-25 11:31:24 -05:00
Kenneth Feng ce024e93ce Cast string 'base64' to the compatible Encoding type.
Signed-off-by: Kenneth Feng <kenneth.feng@onepeloton.com>
2021-10-25 10:26:39 -04:00
jrusso1020 5e10974af6 Export components so developers can customize the scaffolder page
This is the first step to allow developers to customize the scaffolder
page. With this work all the scaffolder page is now available to
backstage developers and they can customize the current scaffolder
page how they like similar to what is available for the catalog page
and other plugin pages.

Future work that has been discussed is possibly allowing for SwimLane
components that will allow developers to surface specific templates
or organize templates in specific ways

Signed-off-by: jrusso1020 <jrusso@brex.com>
2021-10-25 10:10:35 -04:00
Ben Lambert 0ad4e5dab0 Merge pull request #7753 from awanlin/topic/azure-devops-frontend-refactoring
Azure DevOps Frontend Refactoring
2021-10-25 15:00:32 +02:00
Ben Lambert 874150c602 Merge pull request #7737 from RodionGork/feat/sentry-plugin-allows-search-query
fix: sentry plugin allows search query parameter
2021-10-25 14:56:29 +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
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
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 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
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
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
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
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
Fredrik Adelöw 0ede1cebca Merge pull request #7724 from backstage/freben/core-types
introduce `@backstage/types`
2021-10-22 10:25:32 +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
Victor Perera d839625318 Update api-report
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
2021-10-21 14:21:03 -05:00