Commit Graph

2799 Commits

Author SHA1 Message Date
Patrik Oldsberg 1603efe7e8 Merge pull request #3479 from SDA-SE/feat/api-docs-relations
API Consumers & Providers
2020-12-08 21:44:46 +01:00
Patrik Oldsberg 25bbb0fb3c Merge pull request #3553 from SDA-SE/fix/jenkins-loding-twice
Improve Jenkins API usage
2020-12-08 21:39:12 +01:00
Patrik Oldsberg ce9500d309 Merge pull request #3569 from SDA-SE/feat/improve-jenkins
Second take on improving the performance of the Jenkins Plugin
2020-12-08 21:36:07 +01:00
Patrik Oldsberg ea6f70bb02 Merge pull request #3624 from adamdmharvey/chore-package-npm
chore: Add standard NPM metadata to plugins
2020-12-08 21:06:36 +01:00
Patrik Oldsberg 02ec7a9c63 Merge pull request #3619 from SDA-SE/feat/sonarqube-standalone
Setup a devapp for SonarQube that shows the different states of the widget
2020-12-08 20:06:35 +01:00
Patrik Oldsberg eed8e0ddd1 Merge pull request #3620 from SDA-SE/feat/sentry-standalone
Setup a devapp for Sentry that shows the different states of the widget
2020-12-08 20:06:20 +01:00
Adam Harvey 8b395bee26 Add standard NPM metadata 2020-12-08 13:42:23 -05:00
Patrik Oldsberg f90d0c7474 Merge pull request #3585 from adamdmharvey/packagesjson-packages
chore: Align optional NPM fields for multiple packages
2020-12-08 19:19:26 +01:00
Patrik Oldsberg e04b65843c Merge pull request #3617 from zalando-incubator/refresh-location-logging
`refreshAllLocations` uses a child logger with meta. Refs #3602
2020-12-08 19:11:18 +01:00
brendasukh e5afcaaac2 Merge pull request #3572 from backstage/remove-calendar-month-option
Remove calendar month option
2020-12-08 12:32:47 -05:00
Brenda Sukh 8f996c88b0 Add test for quarter end date function 2020-12-08 12:15:12 -05:00
Dominik Henneke 6483e74c0d Setup a devapp for Sentry that shows the different states of the widget 2020-12-08 16:53:51 +01:00
Dominik Henneke 0bc10faf6f Setup a devapp for SonarQube that shows the different states of the widget 2020-12-08 16:33:43 +01:00
Patrik Oldsberg 23190a8a76 Merge pull request #3532 from SDA-SE/feat/sentry
Refactor the Sentry plugin to use the proxy backend instead of a custom backend
2020-12-08 16:24:51 +01:00
Govindarajan Nagarajan e708679d77 refreshAllLocations uses a child logger with meta. Refs #3602
When there are a large number of location, `refreshAllLocations` can
emit a lot of logs that are noisy and can make debugging hard.

To solve this problem, create a child logger with a meta : `component` =
`refreshAllLocations`. That can be used to filter out logs if needed
2020-12-08 14:47:17 +01:00
Fredrik Adelöw 90458fed68 cost-insights: fix react-hooks/exhaustive-deps error 2020-12-08 13:07:25 +01:00
Tim d8eebe10ac Merge pull request #3576 from backstage/cost-insights-entity-breakdowns
[Cost Insights] Add support for multiple types of entity cost breakdown
2020-12-07 09:49:24 -07:00
Dominik Henneke e750f08637 Don't run tests in the deprecated module 2020-12-07 17:38:34 +01:00
Dominik Henneke 075d3dc5ae Refactor the Sentry plugin to use the proxy backend instead of a custom backend 2020-12-07 17:21:59 +01:00
Sebastian Qvarfordt 87a33d2fe8 [TechDocs] Bug fixes and cleanups (#3599)
* Fixed issue with some internal doc links reloading the page and removed modifyCss transformer

* Create silly-kiwis-rest.md

* Formatting in changeset
2020-12-07 16:49:24 +01:00
Mateusz Lewtak 040f453c36 Feat: Org Plugin (#3448)
* Feat: Create Groups plugin

* Feat: update code after CR

* Feat: change routing, replace filters to use relations, modify EntityPageLayout to support users

* Feat: update CLI version

* Feat: add some tests

* Update daily cost data to return groupedCosts

* Add aggregation sum util

* Add top panel breakdown view

* Add top panel tabs

* Add mock data for grouped Costs

* Add comments on groupedCosts

* Update wording to product in cost by product component

* Move cost overview chart legend to separate component

* Move mock data utils

* Add data viz colors for both themes

* Move mock data utils

* Update data viz dark theme colors

* Update bar chart legend type usage

* catalog-backend: gracefully handle missing codeowners

* Derive the owned entities in the catalog from group memberships

* Filter the response headers in the proxy backend

* Make backend-commons tests work on Windows

* backend: remove yarn cache from built docker image

* Refactor the hooks and also support users owning components

* backend,yarnrc: bring yarn network-timeout down to 300s

* Fix another Windows test issue

This one is a bit tricky. Instead of testing at the root folder of the drive, this test is now relative to the current directory. This resolves the difference between "/pkgs/a" and "d:\pkgs\a"

* Drop fill opacity for lighter colors

* Update dark theme colors

* Fix review comments

* techdocs-backend: update Gitlab clone auth

* Use case-insensitive filters

* Add Kubernetes plugin (#3505)

* backend-common: allow port in config to be both a number or a string

* chore: set the port as number if it comes through as a string

* Feat: Bump GitHub Insights plugin version (#3509)

* Feat: groups and components card

* Feat: update Org plugin according to CR

* Feat: update TS stuff

* Feat: change tile titles

* Feat: bump packages

* Code review fixes

Co-authored-by: Brenda Sukh <brendasukh@gmail.com>
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Dominik Henneke <dominik.henneke@sda-se.com>
Co-authored-by: Oliver Sand <oliver.sand@tentaclelabs.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Chongyang Adrian, Ke <ftt.adrian.ke@grabtaxi.com>
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Marek Calus <marek-calus@wp.pl>
2020-12-07 16:46:15 +01:00
David Tuite 03e264519a Fix techdocs for url locations (#3589)
Pasting a URL like `https://github.com/RoadieHQ/sample-service/blob/master/catalog-info-1.yaml`
into the Register Existing Component input creates an Entity with the
the `backstage.io/managed-by-location` annotation set to the `type` of
`url.

The TechDocs perparer does not handle this type.

```ts
    switch (type) {
      case 'github':
      case 'gitlab':
      case 'azure/api': {
        // ...
      }

      case 'file':
        // ...
      default:
        throw new InputError(`Unable to resolve location type ${type}`);
    }
  }
```

Thus, docs are never generated and we see the following error when
trying to view then in Backstage.

```
InputError: Unable to resolve location type url at DirectoryPreparer.resolveManagedByLocationToDir (webpack-internal:///../../node_modules/@backstage/plugin-techdocs-backend/src/techdocs/stages/prepare/dir.ts:63:15) at DirectoryPreparer.prepare (webpack-internal:///../../node_modules/@backstage/plugin-techdocs-backend/src/techdocs/stages/prepare/dir.ts:73:51) at DocsBuilder.build (webpack-internal:///../../node_modules/@backstage/plugin-techdocs-backend/src/service/helpers.ts:74:45) at eval (webpack-internal:///../../node_modules/@backstage/plugin-techdocs-backend/src/service/router.ts:141:25) at processTicksAndRejections (internal/process/task_queues.js:93:5)
```

This may not be the correct solution. An alternative solution would be
to ensure that pasted URLs end up with the `type` of `github` rather
than `url`.
2020-12-07 11:46:40 +01:00
Adam Harvey b20a63d103 fix(lighthouse): Typo & example code tweaks (#3573)
* Update export example

* Fix typo
2020-12-07 09:44:25 +01:00
Fredrik Adelöw d2f81dd290 Merge pull request #3373 from backstage/freben/remove-ancestors-descendants
catalog: remove group ancestors and descendants
2020-12-07 09:40:38 +01:00
Fredrik Adelöw 047c018c91 catalog-backend: read all relations at once 2020-12-06 18:26:09 +01:00
Adam Harvey 1e097d11ca Align optional NPM fields 2020-12-05 22:00:03 -05:00
Tim Hansen 8cc65fec5f The embarrassment
A developer without
A final paren
2020-12-04 20:29:11 -07:00
Tim Hansen 6f7ee993c4 M/M -> Change 2020-12-04 15:38:36 -07:00
Tim Hansen cadb4b5311 findFirst -> findAny 2020-12-04 15:24:40 -07:00
Tim Hansen b14cbe28d3 Fix tests 2020-12-04 10:45:58 -07:00
Tim Hansen e3071a0d49 Add support for multiple types of entity cost breakdown 2020-12-04 09:12:29 -07:00
samiramkr f3b24a94a2 Merge pull request #3317 from backstage/samiram/pagerduty-plugin
Pagerduty plugin
2020-12-04 17:02:54 +01:00
Samira Mokaram 7c856e3317 update dep version 2020-12-04 16:44:01 +01:00
Adam Harvey 20716ae14f Change sample repo URL 2020-12-04 10:42:47 -05:00
Adam Harvey 5a30ec7ddd Merge branch 'master' of github.com:backstage/backstage into catalog-import-instructions 2020-12-04 10:40:10 -05:00
Adam Harvey 56751f0632 Convert card to full Material-UI components 2020-12-04 10:26:38 -05:00
Brenda Sukh b81c973f2e Add one day to get exclusive date 2020-12-04 10:23:31 -05:00
Brenda Sukh c81456a175 Update quarter end date logic 2020-12-04 10:18:17 -05:00
Samira Mokaram b7a5d90c83 fix import 2020-12-04 14:56:53 +01:00
Oliver Sand 0f88771685 Improve loading speed of the CI/CD page
Improve loading speed of the CI/CD page.
Only request the necessary fields from Jenkins to keep the request size low.
In addition everything is loaded in a single request, instead of requesting
each job and build individually. As this (and also the previous behavior) can
lead to a big amount of data, this limits the amount of jobs to 50.
For each job, only the latest build is loaded. Loading the full build history
of a job can lead to excessive load on the Jenkins instance.
2020-12-04 14:49:35 +01:00
Peter Grauvogel 6a0d7a9fbc Increase pageSize for search result view (#3565) 2020-12-04 14:06:42 +01:00
Samira Mokaram fa9d634350 update dependencies version 2020-12-04 13:42:20 +01:00
Fredrik Adelöw 894136a440 Merge pull request #3564 from lowjoel/fix-dockerode-types
fix: Conflicting dockerode version specifications
2020-12-04 13:39:12 +01:00
Patrik Oldsberg cc5eef1ec4 Merge pull request #3539 from adamdmharvey/fix-catalog-import-typo
fix(catalog-import): Catalog import internal variable typo and update plugin ID
2020-12-04 13:02:11 +01:00
samiramkr 02be8ca4f1 Delete PagerdutyCard.tsx 2020-12-04 11:41:30 +01:00
Samira Mokaram 8109ff1d35 Merge branch 'master' of https://github.com/spotify/backstage into samiram/pagerduty-plugin 2020-12-04 11:04:21 +01:00
Samira Mokaram afb65b2f88 remove plugin-catalog dep 2020-12-04 10:14:50 +01:00
Samira Mokaram 1c6f8417d1 fix getIncident query 2020-12-04 10:14:05 +01:00
Samira Mokaram 6f23e96830 refactor structure 2020-12-04 10:03:26 +01:00
Samira Mokaram 18c2dcb368 remove pagerduty logo 2020-12-04 09:58:45 +01:00