Commit Graph

242 Commits

Author SHA1 Message Date
github-actions[bot] be332e13ea Version Packages 2021-01-14 13:05:31 +00:00
github-actions[bot] 28d7f319f4 Version Packages 2021-01-07 10:31:20 +00:00
Oliver Sand 49d3aa1622 Remove unnecessary dev dependencies 2021-01-06 16:13:54 +01:00
Patrik Oldsberg fb745571bc Merge pull request #3902 from backstage/rugvip/optional
backend-common: fix for backend.https being required
2021-01-04 11:49:18 +01:00
Patrik Oldsberg 5640f1cd9d backend-common: fix for backend.https being required 2021-01-04 11:35:13 +01:00
dependabot[bot] 78f201c796 chore(deps-dev): bump @types/archiver from 3.1.1 to 5.1.0
Bumps [@types/archiver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/archiver) from 3.1.1 to 5.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/archiver)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-31 04:47:57 +00:00
Patrik Oldsberg 9db9bc878f backend-common: cache generated HTTPS certificates 2020-12-30 12:57:29 +01:00
Patrik Oldsberg 751f58ff7c backend-common: replace generated cert params with a simple bool switch, and fix certificate generation 2020-12-30 12:57:29 +01:00
Omer Farooq 3f7bfe7b11 remove url check to support on-prem ADO 2020-12-30 13:11:35 +13:00
Ben Lambert 2c36df1ee7 Merge pull request #3805 from backstage/blam/isomorphic-git
Remove the NodeGit Dependency in favour of isomorphic-git
2020-12-29 14:46:35 +01:00
blam 28bdc0328c chore: rework types slightly for string or undefined instead of void 2020-12-29 14:26:28 +01:00
blam 82469a5d5a chore: explicitly set the types returned from the functions 2020-12-29 14:13:07 +01:00
blam 8bccc6bec0 chore: refactor variable names for isomorphic git. 2020-12-29 13:32:24 +01:00
blam 610b3a205a chore: try to fix the alignment 2020-12-29 11:54:30 +01:00
Patrik Oldsberg 0829ff1269 backend-common: include extra fields on dev log formatter 2020-12-29 11:52:46 +01:00
blam ba6f2b8a40 chore: reworking the API exports and fixing the logging to be a little less verbose 2020-12-29 11:46:36 +01:00
blam 5118cb472f test(backend-common/git): Adding tests for all the git helpers in backend common 2020-12-28 16:16:18 +01:00
Himanshu Mishra cb28e1a6a0 chore(git): Need author and commiter for doing git merge 2020-12-23 00:34:12 +01:00
Himanshu Mishra 9ca586e579 techdocs: Replace nodegit with isomorphic-git
TechDocs needs 4 functions from the git library
1. To clone 2. To get the commit timestamp for HEAD 3. To fetch 4. To merge two branches

Created necessary commands in the new SCM client and reordered them alphabetically for convenience
2020-12-23 00:12:20 +01:00
blam 3727e3b367 feat: update all preparers to use isomorphic git 2020-12-22 13:00:36 +01:00
blam ff0f7f89a2 Merge branch 'master' of github.com:backstage/backstage into blam/isomorphic-git
* 'master' of github.com:backstage/backstage: (269 commits)
  address comments
  catalog-backend: flesh out and tweak the config schema
  Update chilled-pigs-destroy.md
  catalog-backend: start warning about usage of deprecated location types
  scripts: add script for migrating away from deprecated location types
  chore: fixing changeset prettyness
  Create good-hairs-sniff.md
  Update IconLinkVertical.tsx
  Update violet-sloths-reply.md
  Delete fuzzy-windows-cry.md
  Create violet-sloths-reply.md
  Added changeset
  build(deps): bump archiver from 5.0.2 to 5.1.0
  build(deps): bump typescript-json-schema from 0.45.0 to 0.45.1
  docs: Update lighthouse docs
  fix(app): listen to app.listen.host
  scaffolder-backend: clarify type detection error message
  docs: Update techdocs architecture features status
  scaffolder-backend: gitlab preparer uses integrations token
  core-api: ensure that routable extension components are discovered at boot
  ...
2020-12-21 16:31:15 +01:00
blam 54a19d4444 feat: move all publishers over to the backend common way to interact with git scm 2020-12-21 16:05:24 +01:00
blam d0a972eb63 chore: reworking how we deal with exporting things from the main package 2020-12-21 16:05:10 +01:00
blam 70ceab3db4 feat: adding in all the functions needed for isomorphic git feature 2020-12-21 15:38:53 +01:00
Fredrik Adelöw e3dc3e40cf Merge pull request #3767 from backstage/bug/csp
Updating CSP for unsafe eval
2020-12-18 13:58:49 +01:00
github-actions[bot] 6e9f4d4a15 Version Packages 2020-12-17 10:16:33 +00:00
blam e2beaf5940 chore: create scm from auth 2020-12-17 10:18:52 +01:00
blam 90f22cc2db chore: when serving with app-backend, the frontend needs unsafe-eval for the patterns in react-jsonschema-form or ajv validation 2020-12-17 01:29:51 +01:00
mateiidavid 47930a36f7 Implement readTree for GitlabReader (#3547)
* This change adds an implementation for the readTree method in GitlabReader.
The implementation is similar to the readTree method in GithubReader
with the exception of the 'path' variable used for subpaths in the
archive. To facilitate this, GitlabIntegrationConfig now has an apiUrl
field which was missing for Gitlab but was present for Bitbucket & GH.

* As part of this change, there are also new tests added to GitlabReader
to mirror what has been done with the GH reader. For now the archive
format chosen is 'zip', follow-up action includes having a look at
whether tar.gz is preferable.

Signed-off-by: Matei David <madavid@expediagroup.com>
2020-12-16 14:13:54 +00:00
Patrik Oldsberg 1da7d2c657 plugins,packages: replace usages of ConfigReader.from 2020-12-15 19:04:50 +01:00
blam 3546862399 chore: update git-url-parse dependency 2020-12-15 13:22:17 +01:00
Kim S. Ly bbd0e354ff Implement readTree on BitBucketUrlReader - Add getBitbucketDefaultBranch 2020-12-15 01:04:16 -05:00
Kim S. Ly 58b3bbe4e8 Implement readTree on BitBucketUrlReader - Implement getBitbucketDownloadUrl and remove hash for Bitbucket Server 2020-12-15 01:01:56 -05:00
Kim S. Ly ea6f833167 Implement readTree on BitBucketUrlReader 2020-12-15 01:01:56 -05:00
Fredrik Adelöw 43e1277796 WIP: implement readTree for bitbucket 2020-12-15 01:01:55 -05:00
blam 534c287c35 Merge branch 'master' of github.com:backstage/backstage into blam/isomorphic-git
* 'master' of github.com:backstage/backstage: (86 commits)
  Fix typos (#3646)
  fix(core): React descendant P tag warning (#3641)
  build(deps): bump @svgr/rollup from 5.4.0 to 5.5.0 (#3643)
  build(deps): bump jest from 26.5.3 to 26.6.3 (#3644)
  Update 2020-09-30-plugin-marketplace.md
  Update 2020-09-30-backstage-design-system.md
  Update 2020-09-23-backstage-cncf-sandbox.md
  Update 2020-09-08-announcing-tech-docs.md
  Update 2020-08-05-announcing-backstage-software-templates.md
  Update 2020-07-01-how-to-enable-authentication-in-backstage-using-passport.md
  Update 2020-06-22-backstage-service-catalog-alpha.md
  Update 2020-05-22-phase-2-service-catalog.md
  Update 2020-05-14-weaveworks-covid-19-app-uses-backstage-ui.md
  Update 2020-05-14-tech-radar-plugin.md
  Update 2020-04-30-how-to-quickly-set-up-backstage.md
  Update 2020-10-22-cost-insights-plugin.md
  Update 2020-04-06-lighthouse-plugin.md
  Update 2020-03-18-what-is-backstage.md
  Update 2020-03-16-announcing-backstage.md
  Add standard NPM metadata
  ...
2020-12-10 14:11:02 +01:00
github-actions[bot] cf187484bf Version Packages 2020-12-10 11:25:39 +00:00
Patrik Oldsberg 5b2e5d624d Merge pull request #3575 from SDA-SE/feat/remove-prom-client
Remove prometheus dependency from backend-common
2020-12-08 19:14:13 +01:00
Fredrik Adelöw 38e24db009 integration: move the core url and auth logic to integration for the four major providers 2020-12-07 16:55:30 +01:00
Oliver Sand 12bbd748c5 Remove prometheus depenedency from backend-common 2020-12-04 17:07:29 +01:00
Mikael Östberg be98e222ee Update GithubUrlReader.ts 2020-12-04 09:06:26 +01:00
Mikael Östberg 6c91854391 Fix missing authentication in GitHubUrlReader
An oversight that probably stems from that most repositories for tech-docs are public anyway. 
Ours are not, and are inside of a GitHub Enterprise, which is how i found this tiny bug. 

I wish i knew how to mock the cross-fetch in order to inspect the Authorization header of the request to test this fix. 
I can only confirm that it works on our backstage that targets GHE.
2020-12-03 20:41:31 +01:00
github-actions[bot] 01aa774d9a Version Packages 2020-12-03 15:28:22 +00:00
Sebastian Qvarfordt b570f78e22 Use resource instead of source when building github repo tar url (#3552)
* Use resource instead of source when building github repo tar url

* Changed the right part of the url...

* Added test to make sure we include subdomains in githubs readtree

* Fixed wopsie
2020-12-03 16:24:29 +01:00
Patrik Oldsberg 974223db86 Merge pull request #3507 from backstage/rugvip/port
backend-common: allow port in config to be both a number or a string
2020-12-01 14:58:55 +01:00
blam b27077aa7b chore: set the port as number if it comes through as a string 2020-12-01 13:16:46 +01:00
Patrik Oldsberg 6123682748 backend-common: allow port in config to be both a number or a string 2020-12-01 12:07:54 +01:00
Oliver Sand 52f6438794 Make backend-commons tests work on Windows 2020-11-30 18:06:42 +01:00
github-actions[bot] 892645b815 Version Packages 2020-11-27 12:51:09 +00:00
Patrik Oldsberg b3d4e4e57a backend-common: move the frontend visibility of config to @backstage/integration 2020-11-26 22:28:38 +01:00