Commit Graph

302 Commits

Author SHA1 Message Date
Patrik Oldsberg 82af0855bc backend-common: use explicit content type in error response 2021-02-08 13:22:17 +01:00
Fredrik Adelöw 965e200c61 backend-common: slight refactoring in support of future search impl 2021-02-08 11:06:14 +01:00
Patrik Oldsberg ee65c94555 backend-common: ignore rate limiting errors in UrlReader integration tests 2021-02-05 12:26:33 +01:00
github-actions[bot] 6794967d20 Version Packages 2021-02-04 13:02:30 +00:00
Fredrik Adelöw 66e5b222fe Merge branch 'master' into lintMod 2021-02-04 07:58:13 +01:00
Fredrik Adelöw dac74ddaca Merge pull request #4354 from backstage/freben/integration-timeout
backend-common: bump UrlReader integration test timeout
2021-02-03 21:23:05 +01:00
Debajyoti Halder bf0dc0bcf8 Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-02 23:08:18 +05:30
Patrik Oldsberg 2f28f821a3 backend-common: use separate integration test keys in CI 2021-02-02 15:24:34 +01:00
Fredrik Adelöw be8fc669fb backend-common: bump UrlReader integration test timeout 2021-02-02 13:47:38 +01:00
Debajyoti Halder 39e7f4a81e Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-02-02 17:02:33 +05:30
Andrew Thauer 2430ee7c2e feat(backend-common): support custom logger options 2021-02-02 06:12:55 -05:00
Himanshu Mishra 81f4b6330a backend: Gitlab URL Reader to throw error when apiBaseUrl is missing
And add more tests for all other URL Readers
2021-01-29 17:10:03 +01:00
Debajyoti Halder e0fb5dfccf Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-01-29 16:34:22 +05:30
Debajyoti Halder 4dad818e01 Merge branch 'master' of https://github.com/spotify/backstage into lintMod 2021-01-29 14:05:27 +05:30
Debajyoti Halder 6106345e6d Update project with latest eslint rules 2021-01-29 11:55:12 +05:30
Patrik Oldsberg 51d5f79dce backend-common: new azure PAT for e2e test ._. 2021-01-29 00:04:28 +01:00
Patrik Oldsberg f3024b0be4 Merge pull request #4282 from backstage/rugvip/readint
backend-common: add integration test for UrlReader
2021-01-28 15:06:58 +01:00
Patrik Oldsberg 4237f8aa82 backend-common: add integration test for UrlReader 2021-01-28 12:27:41 +01:00
github-actions[bot] cda741034d Version Packages 2021-01-28 10:46:08 +00:00
Fredrik Adelöw a84f3535a9 Merge pull request #4231 from backstage/orkohunter/readTree-get-rid-of-directory-name-dependency
fix(backend): URL Reader readTree gets rid of archive directory name dependency
2021-01-28 11:41:00 +01:00
Ben Lambert 37dd15058c Merge pull request #4206 from backstage/orkohunter/default-branch-bitbucket-server
integration: Fix commit and branch API urls for hosted bitbucket server
2021-01-28 10:34:47 +01:00
Alan Crosswell 43290ea991 update version of git-url-parse to set ref for Azure DevOps 2021-01-27 08:42:31 -05:00
Himanshu Mishra 04c6781e6c Extra care for tmp directory on Windows 2021-01-27 11:42:20 +01:00
Alan Crosswell aae1dca6c6 Revert "bump patch-level versions"
This reverts commit 96c99d75ae6523c049e6f51a3f72e7d47591a324.
2021-01-26 17:04:41 -05:00
Alan Crosswell 119c6386fd Revert "undo manual package version bump done in error"
This reverts commit 44c5ec6feb5109ae97c1a66b885da3c6440de0d5.
2021-01-26 17:04:40 -05:00
Alan Crosswell 9ba95e5085 undo manual package version bump done in error 2021-01-26 17:04:39 -05:00
Alan Crosswell 85cdcb2c6b Prettier 2021-01-26 17:04:39 -05:00
Alan Crosswell 26a3a6cf03 bump patch-level versions 2021-01-26 17:04:39 -05:00
Alan Crosswell a7c0da02e8 pass in the specified git branch ref when cloning a single branch 2021-01-26 17:04:38 -05:00
Patrik Oldsberg f81c4e2e41 remove last usages of APP_ENV 2021-01-25 17:49:32 +01:00
Himanshu Mishra 31e7b2a1fd Fix tests using wrong commits url for bitbucket server 2021-01-25 16:26:02 +01:00
Himanshu Mishra 38f710b366 Fix commits url for bitbucket server 2021-01-25 16:10:50 +01:00
Himanshu Mishra bd3c3cb960 Add tests for .dir() method in readTree response 2021-01-24 17:25:24 +01:00
Himanshu Mishra f5ed88501b backend: URL Reader readTree should not expect the extracted directory name
If readTree can work without it receiving the top level directory name, it will be a relief. We won't have to deduce the directory name from the API responses or by any other means.
2021-01-24 16:54:01 +01:00
github-actions[bot] c5584b62c2 Version Packages 2021-01-21 13:13:05 +00:00
Himanshu Mishra 3c2ec77f8b backend: Azure URL Reader does not yet support file path based readTree 2021-01-20 18:04:50 +01:00
Himanshu Mishra 40f8847c80 backend: (Bitbucket) URL Reader uses content-disposition header for filename 2021-01-20 17:56:11 +01:00
Himanshu Mishra 4c8b47c5cc backend: (GitLab) URL Reader uses content-disposition header for filename 2021-01-20 17:43:04 +01:00
Himanshu Mishra d552ba727f backend: (GitHub) URL Reader should get filename from header instead of guessing 2021-01-20 17:17:51 +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 c2450d458f integration: take over the config 2021-01-20 13:50:06 +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 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