Commit Graph

1731 Commits

Author SHA1 Message Date
Raghunandan 72235dd51e v0.1.1-alpha.22 2020-09-18 15:14:38 +02:00
Raghunandan 259205727e v0.1.1-alpha.21 2020-09-18 15:13:47 +02:00
Fredrik Adelöw f7a57e89d0 Merge pull request #2501 from spotify/freben/more-github
fix(catalog-backend): unify github and github/api, and use git-url-parse
2020-09-18 15:06:18 +02:00
Ben Lambert 23e8350121 Merge pull request #2519 from spotify/freben/cut-logs
feat(catalog-backend): delete log entries older than a cutoff
2020-09-18 14:17:47 +02:00
Sebastian Qvarfordt f097c32b59 TechDocs: Use a flag to determine if we should use a local mkdocs or techdocs-container (#2503)
* Use a flag to determine wether to use techdocs-container or local install of mkdocs

* Updated techdocs generator to look at app-config string instead of argument to decide how to run the generator

* Removed console log...

* Reverted scaffolder file that was accidentally committed.

* Fixed lint issues

* Added config to create-app template
2020-09-18 14:02:35 +02:00
Fredrik Adelöw 082d8b0bfd feat(catalog-backend): delete log entries older than a cutoff 2020-09-18 13:57:43 +02:00
Oliver Sand ddc1cbd96a Merge pull request #2502 from SDA-SE/feat/small-api-explorer-improvement
feat: use title for API type in table
2020-09-18 11:43:11 +02:00
Oliver Sand 20353279d7 feat: use title for API type in table
Now that the API definition types are available via an API, we can resolve the remaining TODO comment here.
2020-09-18 11:21:46 +02:00
Fredrik Adelöw 94b8e88eba fix(catalog-backend): address comments and add docs 2020-09-18 10:00:58 +02:00
Fredrik Adelöw a4e563ed2d fix(catalog-backend): unify github and github/api, and use git-url-parse 2020-09-17 15:32:40 +02:00
Perry Manuk 21a366077a Techdocs without docker-in-docker (#2438)
We're deploying backstage to GKE and have had issues getting techdocs
volume mount logic to work because of mixing paths between the host and
the container running the backend. So we added a condition where if
mkdocs is found in the backend container it will use that to generate
the docs rather than spinning it up in a docker container.
2020-09-17 15:26:39 +02:00
Iain Billett 2331e79897 Test for docker before attempting to run a container (#2497)
Test for docker using ping() before attempting any docker
operations. If this fails we know docker is unavailable
and we can fail with an more descriptive error.
2020-09-17 15:18:13 +02:00
Raghunandan Balachandran 0e3218b454 Merge pull request #2470 from RoadieHQ/dtuite/send-description-to-git-hub
Send template description to GitHub
2020-09-17 15:17:49 +02:00
Andrew Thauer 8e64ca250c feat: add api-docs config ref for widgets 2020-09-17 08:44:27 -04:00
David Tuite 2e35f300d0 Mark docs template description as required
In my testing, attempts to create a docs site with no description would
fail with the error:

```
Unable to create file 'component-info.yaml'
Error message: 'collections.OrderedDict object' has no attribute 'description'
```

Better to mark it required than let the user hit the error.
2020-09-17 13:14:15 +01:00
David Tuite 1cb1919f0c Send component description to GitHub
We might as well set the description on the GitHub repo while we're
creating it.
2020-09-17 13:14:12 +01:00
Ben Lambert ef4108dcaa Merge pull request #2426 from muffix/fix-2372-add-gitlab-to-scaffolder
Add GitLab integration for scaffolder
2020-09-17 13:54:09 +02:00
Oliver Sand cf32c9d02d Merge pull request #2496 from SDA-SE/feat/api-explorer-ui
feat: rework Api Explorer components
2020-09-17 13:19:43 +02:00
Oliver Sand bcf0f4cc11 feat: rework Api Explorer components
The table in the API explorer now shows details such as tags, owner, and description.
2020-09-17 12:39:20 +02:00
Björn Marschollek 55542797a9 Add GitLab integration for scaffolder
This adds a GitLab integration for the scaffolder backend.

We're introduceing a preparer and a publisher for GitLab so that we can
read templates from GitLab and publish them to a configured GitLab
instance. The two instances don't need to be the same. For instance,
templates could be public on gitlab.com, but the created repos will live
in a hosted GitLab somewhere else.

The publisher gets its own config object in `app-config.yaml` where the
target instance and token can be specified.

The service catalogue defines both `gitlab` and `gitlab/api` as
processors. They are both handled by the same preparer.

Closes #2372
2020-09-17 12:39:05 +02:00
Fredrik Adelöw f1ca8daee8 Merge pull request #2490 from spotify/freben/ghe
feat(catalog-backend): support GHE and other GitHub providers
2020-09-17 10:51:48 +02:00
Fredrik Adelöw 4077b424fa feat(catalog-backend): support GHE and other GitHub providers 2020-09-17 09:04:35 +02:00
Tim Jacomb 1b45fbc442 Simplify code 2020-09-17 07:25:27 +01:00
Tim Jacomb fcdae603ba Merge branch 'master' into add-access-support 2020-09-17 07:17:12 +01:00
dependabot[bot] e5b79755c0 chore(deps): bump nodegit from 0.26.5 to 0.27.0 (#2454)
Bumps [nodegit](https://github.com/nodegit/nodegit) from 0.26.5 to 0.27.0.
- [Release notes](https://github.com/nodegit/nodegit/releases)
- [Changelog](https://github.com/nodegit/nodegit/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodegit/nodegit/compare/v0.26.5...v0.27.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 21:50:53 +02:00
Tim Jacomb fd7809ea34 Merge branch 'master' into add-access-support 2020-09-16 16:02:01 +01:00
Patrik Oldsberg 35abda0fa0 Merge pull request #2352 from timja/new-routing-jenkins
Update Jenkins plugin to new routing
2020-09-16 16:54:20 +02:00
Patrik Oldsberg 85a1574e9f Merge pull request #2429 from taras/tm/scaffold-repo-visibility
Add the ability to configure repository visibility via config
2020-09-16 16:52:22 +02:00
Patrik Oldsberg 1fea972187 Merge pull request #2088 from andrewthauer/api-docs-graphql
Add GraphQL support to API Docs
2020-09-16 16:37:11 +02:00
Tim Jacomb 38c0672e1e Merge branch 'master' into new-routing-jenkins 2020-09-16 14:46:49 +01:00
Tim Jacomb f93d7a15fc Condense if to else if 2020-09-16 14:36:52 +01:00
Tim Jacomb a40012d974 Reword 2020-09-16 14:14:46 +01:00
Tim Jacomb 7806decbc4 Make access optional 2020-09-16 14:09:54 +01:00
Tim Jacomb 80b56edec3 Merge branch 'master' into add-access-support 2020-09-16 14:08:47 +01:00
Taras Mankovski f5702ddc8e Add ability to flag user repositories as private 2020-09-16 08:53:18 -04:00
Iain Billett f0143360b7 Fix test schema 2020-09-16 09:02:42 +01:00
Iain Billett cf96d90e62 Fix formatting 2020-09-16 08:44:38 +01:00
Iain Billett ef9117f50a Validate template values on calls to the scaffolder API
Calls to the scaffolder API should use the schema from the template
entity to validate input values.
2020-09-16 08:44:38 +01:00
Taras Mankovski 449b5c3f15 Fix prettier errors 2020-09-15 16:38:38 -04:00
Taras Mankovski 6d3ce75100 Apply requested chanegs 2020-09-15 16:32:17 -04:00
Taras Mankovski 4c0c0bfd50 Add the ability to configure repository visibility via config 2020-09-15 16:29:43 -04:00
David Tuite 57ae0825d8 Fix scaffolder catalog link (#2471)
This was incorrectly linking to a relative path which ended up being
something like `/create/docs-template/Component/my-component`.
2020-09-15 15:00:23 +02:00
Tim Jacomb fdef955570 scaffolder: Add support for granting access on create 2020-09-15 08:38:46 +01:00
Ben Lambert 0597211af1 Merge pull request #2433 from timja/support-user-or-org
scaffolder: Allow user or org, remove hard coded isOrg
2020-09-15 09:17:25 +02:00
David Tuite d36f3bc5d8 Assorted scaffolder form help text improvements (#2467)
* Prompt the user for a description in templates

The text "Description of the component" was a little redundant since the
label already says "Description". This description text hints to the
user why they should bother adding an informative description.

* Inform user about lowercase, url-safe constraint

Create React App scaffolding fails when a name with spaces or other
non-url-safe chars are provided. Instead of making the user wait for a
failure, Backstage should tell them about this constraint up front.
2020-09-15 06:42:13 +02:00
Patrik Oldsberg b86d408fa7 plugins/newrelic: make public 2020-09-14 17:06:29 +02:00
Sebastian Qvarfordt 398d7eb91e TechDocs: Fix building if you already have a corrupt git tmp folder (#2457)
* Fix building if you already have a corrupt git tmp folder

* Logging the error we get before trying to recover
2020-09-14 16:57:37 +02:00
Oliver Sand d6b0c80afd fix(catalog): remove unused components (#2430)
This allows to resolve some circular dependencies.
2020-09-14 08:01:24 +02:00
Andrew Thauer 678a9c90de feat: add graphql api type 2020-09-13 22:01:11 -04:00
Ivan Shmidt 4780043ada Merge pull request #2172 from NetPenguins/master
GithubActions Logging Implementation
2020-09-12 19:16:19 +02:00