Commit Graph

3588 Commits

Author SHA1 Message Date
Himanshu Mishra d552ba727f backend: (GitHub) URL Reader should get filename from header instead of guessing 2021-01-20 17:17:51 +01:00
blam 40faae3903 chore(integration/gitlab): fixing tests again for integration config 2021-01-20 16:24:23 +01:00
blam a729aaa854 Merge branch 'master' of github.com:backstage/backstage into blam/move-scaffolder-to-integrations
* 'master' of github.com:backstage/backstage: (75 commits)
  backend-common: Move definition of etag property inside constructor
  docs: Fix url links in well known annotations
  bitbucket casing
  integration: take over the config
  More review comments
  Address some final review coments about cross-fetch and type-casting
  chore(deps): bump sucrase from 3.16.0 to 3.17.0
  chore(deps-dev): bump @types/webpack from 4.41.22 to 4.41.26
  core-api: remove deprecated registerRoute and deprecate addRoute
  Update README
  Support GHE
  app,create-app: switch to using FlatRoutes
  Make breaking 'minor' change'
  Add codefences to changeset
  Add changeset
  Remove InfoCard :height100" variant
  scripts/check-if-release: fix diff and tweak to handle new and removed packages
  Update with review comments
  docs: Run prettier on techdocs ci/cd tutorial
  remove adr status header
  ...
2021-01-20 16:22:58 +01:00
Himanshu Mishra e8e6bd92b6 Merge pull request #4120 from backstage/orkohunter/url-reader-readTree-with-sha 2021-01-20 14:49:47 +01:00
Himanshu Mishra 662d9b9a22 backend-common: Move definition of etag property inside constructor 2021-01-20 14:33:06 +01:00
Fredrik Adelöw 751b700f8a bitbucket casing 2021-01-20 14:02:10 +01:00
Fredrik Adelöw c2450d458f integration: take over the config 2021-01-20 13:50:06 +01:00
blam 13231e101b chore: fixing some PR comments 2021-01-20 12:47:17 +01:00
Patrik Oldsberg 0833137c40 Merge pull request #4155 from backstage/rugvip/noreg
core-api: remove deprecated registerRoute and deprecate addRoute
2021-01-20 12:02:34 +01:00
Johan Haals 64826f9e2b Re-add logger to preparer
Co-authored-by: blam<ben@blam.sh>
2021-01-20 11:52:36 +01:00
Johan Haals b470208202 Fix config test
Co-authored-by: blam<ben@blam.sh>
2021-01-20 11:41:01 +01:00
Johan Haals 954a7eecab Don't set apiBaseUrl
This is already handled by the gitlab client and the default is wrong
2021-01-20 11:13:03 +01:00
Dominik Henneke 1d4ce77fc8 Merge pull request #4147 from SDA-SE/feat/origin-location
Block the deletion of entities from the bootstrap location in the unregister dialog and list the correct delete preview
2021-01-20 10:50:35 +01:00
Oliver Sand a284f5bc1f Adjust jest.transformModules in create-app
The package name has changed from  `@kyma-project/asyncapi-react` to
`@asyncapi/react-component`.
2021-01-20 10:17:47 +01:00
Adam Harvey 7abe2c2c33 Merge pull request #4152 from adamdmharvey/InfoCard-variant
chore(core): Remove deprecated InfoCard variant "height100"
2021-01-19 20:06:06 -05:00
Patrik Oldsberg a187b8ad0a core-api: remove deprecated registerRoute and deprecate addRoute 2021-01-19 23:50:38 +01:00
Patrik Oldsberg 89278acabe app,create-app: switch to using FlatRoutes 2021-01-19 21:40:35 +01:00
Adam Harvey 65007a04bd Remove InfoCard :height100" variant 2021-01-19 13:22:45 -05:00
blam c0a7910db5 chore: migrate the rest of the scaffolding to the new way for instegration config 2021-01-19 19:04:06 +01:00
Dominik Henneke def2307f33 Add a managed-by-origin-location annotation 2021-01-19 15:54:16 +01:00
Johan Haals d095cbf3d3 Delete log argument when calling fromConfig 2021-01-19 13:03:41 +01:00
Himanshu Mishra 060fd0a44a Merge pull request #4109 from backstage/iameap/stream-from-gcs 2021-01-19 12:15:19 +01:00
Johan Haals a532d9d124 Add fromConfig remove logging 2021-01-19 11:51:19 +01:00
Himanshu Mishra a65c4516ec Use GitHub API to download the archive 2021-01-19 10:41:40 +01:00
Himanshu Mishra 380dd626fb Safe nullish check with git-url-parse library responses 2021-01-18 23:04:31 +01:00
Himanshu Mishra baeed36324 Convert NotModifiedError to 304 HTTP status code 2021-01-18 22:59:36 +01:00
Himanshu Mishra 8565ad2279 1. Use etag over sha for the identifier
2. Re-combine Resonse types into one
2021-01-18 22:52:45 +01:00
Himanshu Mishra 79f9a97428 backend-common: UrlReader/Azure implement SHA based caching 2021-01-18 21:55:55 +01:00
Himanshu Mishra 7078d35e0a backend-common: UrlReader/Bitbucket implement SHA based caching
Default branch detection was already implemented
2021-01-18 21:55:54 +01:00
Himanshu Mishra f9ca2a3769 backend-common: UrlReader/GitLab implement Sha based caching
Also use API to fetch archive.zip
2021-01-18 21:54:48 +01:00
Himanshu Mishra fa8ba330a8 integration: GitLab API should be added for default and should have a protocol 2021-01-18 21:53:51 +01:00
Himanshu Mishra 2305296073 backend-common: Support SHA based caching in URL Reader's readTree
readTree now takes a SHA in options, and throws a NotModifiedError if the SHA matches with the latest commit SHA on the tree. readTree response now contains a new 'sha' parameter.

Also, the default branch will now be used if no branch is provided in the url's target
2021-01-18 21:53:49 +01:00
Patrik Oldsberg 4211198c30 Merge pull request #4128 from backstage/rugvip/fetch
backend-common: lock down UrlReader to only read from allowed URLs
2021-01-18 18:53:19 +01:00
Fredrik Adelöw c8e3e82ce2 Merge pull request #4131 from backstage/freben/no-annotation-merge
catalog-model: remove special merge treatment of annotations
2021-01-18 18:50:23 +01:00
Eric Peterson da6a29b6d9 Ensure error handling happens the same way. 2021-01-18 18:48:34 +01:00
Patrik Oldsberg 6458dfeb14 Merge pull request #3886 from backstage/rugvip/nohttps
backend-common: remove deprecated HTTPS config
2021-01-18 17:47:04 +01:00
Fredrik Adelöw a93f422132 catalog-model: remove special merge treatment of annotations 2021-01-18 16:52:35 +01:00
Fredrik Adelöw ba59fb6e1d Merge pull request #4100 from backstage/freben/parseGitUrl
chore: consistent naming of parseGitUrl
2021-01-18 14:34:34 +01:00
Patrik Oldsberg a283dcc43b backend-common: include port in url reader allow list check 2021-01-18 14:21:34 +01:00
Patrik Oldsberg 5345a1f983 backend-common: lock down UrlReader to only read from allowed URLs 2021-01-18 14:17:04 +01:00
Patrik Oldsberg 8250ffb443 Merge pull request #4021 from kiranpatel11/master
fix(create-app): fix user-settings routing in create-app
2021-01-18 14:04:15 +01:00
Fredrik Adelöw 0b4b755b91 chore: consistent naming of parseGitUrl 2021-01-18 13:37:47 +01:00
Patrik Oldsberg a669e2dd0f Merge pull request #4096 from backstage/orkohunter/release-techdocs-common-0.3.4
techdocs-common: Release v0.3.4
2021-01-18 11:16:53 +01:00
Johan Haals 5618ffa733 Merge pull request #4058 from backstage/mob/github-app-manager
Add GithubCredentialsProvider for start of GitHub Apps support
2021-01-18 08:10:26 +01:00
Fredrik Adelöw 1e3e0d86c2 Merge pull request #4117 from backstage/freben/secwarn
chore: silence code quality warning about backslash escape
2021-01-17 16:03:45 +01:00
Ben Lambert ec2164b791 Merge pull request #4094 from backstage/blam/bug/create-app-url-support
Use fromConfig in create-app for scaffolder
2021-01-16 21:48:18 +01:00
Matei David a5e27d5c1d Introduce techdocs metadata in techdocs-common
* Add TechdocsMetadata type in backend plugin endpoint
 * Introduce TechDocsMetadata type in frontend
 * Add changeset
 * Remove old thennable metadata resp
 * Address PR feedback
  - Remove explicit type annotation on TechDocsMetadata
  - Reintroduce res.send instead of throwing an error
  - Change logger info to logger error
 * Add TechDocsMetadata type in frontend plugin
 * Commit yarn.lock
 * Introduce JSON5 and remove parsing in local pub
Signed-off-by: Matei David <matei.david.35@gmail.com>
2021-01-16 18:33:53 +00:00
Fredrik Adelöw 09dd4d5aea Update packages/e2e-test/src/lib/helpers.ts
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-01-16 16:01:04 +01:00
Fredrik Adelöw bc4424b9d2 chore: silence code quality warning about backslash escape 2021-01-16 15:48:38 +01:00
Kiran 10b22d6c70 Revert "feat(create-app): synch backend/scaffolder.js with master"
This reverts commit 087e90cf8baeeff60d4cee7d503a84a88ee87fd1.
2021-01-16 11:54:45 +11:00