Commit Graph

4338 Commits

Author SHA1 Message Date
alde e7d2fb93f0 Create code-coverage plugin
In order to use this plugin, you must set the
`backstage.io/code-coverage` annotation on your entity.

```yaml
backstage.io/code-coverage: enabled
```

There's a feature to only include files that are in SCM in the coverage
report, this is helpful to not count generated files for example. To
enable this set the `backstage.io/code-coverage` annotation to
`scm-only`.

```yaml
backstage.io/code-coverage: scm-only
```

The backend plugin provides API endpoints for submitting code-coverage
reports. Currently jacoco and cobertura are supported. These reports
are normalized to a json format that is stored in the database.

```json
// curl -X POST -H "Content-Type:text/xml" -d @cobertura.xml "localhost:7000/api/code-coverage/Component/default/entity-name?coverageType=cobertura"
{
    "links": [
        {
            "href": "http://localhost:7000/api/code-coverage/Component/default/entity-name",
            "rel": "coverage"
        }
    ]
}
```

It also provides some additional API endpoints:
* Viewing the latest report
* Viewing a more condensed history of code coverage values
* Retrieving file contents from source-control, used by the UI

Provides a graph of code coverage change over time, as well as a file
view where you can see the highlighted lines.

Co-authored-by: nissayeva <natashaaay@gmail.com>
Signed-off-by: alde <r.dybeck@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-21 12:58:18 +02:00
Fredrik Adelöw 857d11e13d Merge pull request #5081 from GunnerStraiker1/link-color-dark-mode
Accessibility: Change link color in dark theme
2021-04-21 10:32:50 +02:00
Dominik Henneke a7fbca530f Merge pull request #5379 from SDA-SE/feat/fossa-overview
Add a FossaPage that shows the license compliance status of all components in the catalog
2021-04-21 10:10:29 +02:00
Fredrik Adelöw afeb0ef0e7 Merge pull request #5046 from backstage/dependabot/npm_and_yarn/helmet-4.4.1
chore(deps): bump helmet from 4.0.0 to 4.4.1
2021-04-20 22:11:31 +02:00
dependabot[bot] d367f63b53 chore(deps): bump helmet from 4.0.0 to 4.4.1
Bumps [helmet](https://github.com/helmetjs/helmet) from 4.0.0 to 4.4.1.
- [Release notes](https://github.com/helmetjs/helmet/releases)
- [Changelog](https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md)
- [Commits](https://github.com/helmetjs/helmet/compare/v4.0.0...v4.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 21:38:22 +02:00
Fredrik Adelöw f6b8cf96ca fix according to designer input
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 20:50:06 +02:00
Victor Perera 9c9df47f4f Replace color proposed by one Backstage color
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 16:48:36 +02:00
Victor Perera 08b25805d1 Fixing typo
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 16:48:35 +02:00
Victor Perera f9b206cece Revert "Change #0A6EBE to #EFE5B1"
This reverts commit 30d3886ef7cba00ac55c8db9aca7f20eda8a5d2f.

Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 16:48:35 +02:00
Victor Perera 343913573f banner link color
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 16:48:35 +02:00
Victor Perera bc30288405 Change #0A6EBE to #EFE5B1
Signed-off-by: Victor Perera <v-vperera@expediagroup.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-20 16:48:34 +02:00
Fredrik Adelöw 4e7c9d7d16 Merge pull request #5374 from wrighbr/master
Datadog RUM events
2021-04-20 14:47:47 +02:00
Patrik Oldsberg df8e6f1dc4 Merge pull request #5372 from backstage/mob/catalog-refactor
Initial iteration of the next software catalog
2021-04-20 11:44:44 +02:00
Brett Wright 4949915fb3 Revert "chore(deps): bump diff from 4.0.2 to 5.0.0"
This reverts commit 2213de5068443f5036f1ea5a899867086266dc52.

Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:17 +02:00
Brett Wright 766533df4b Revert "Move diagram to system page"
This reverts commit 876a468740f25b69d6dc7737586d7d64348daf6a.

Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:16 +02:00
Brett Wright 47b4c33c1f Revert "Delete EntityPage.tsx"
This reverts commit 157318b7b261541758c353482d98e0372a4369ce.

Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:16 +02:00
Brett Wright 66cd739fec Revert "Delete EntityPage.tsx"
This reverts commit 59eda628a87dc470ae1c5d2b7b46ced129fea289.

Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:16 +02:00
Brett Wright 77a2335997 Delete EntityPage.tsx
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:16 +02:00
Brett Wright 0f649240bf Delete EntityPage.tsx
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:16 +02:00
Brett Wright 817e7fee1f ran Prettier
Signed-off-by: Brett Wright <brett.wright@bestseller.com>
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:15 +02:00
Brett Wright 8761385311 added datadog RUM events
Signed-off-by: Brett Wright <brett.wright@bestseller.com>
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:15 +02:00
Adam Harvey 2730b30b7c Move diagram to system page
Signed-off-by: Adam Harvey <adaharve@cisco.com>
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:15 +02:00
dependabot[bot] 21c90863a2 chore(deps): bump diff from 4.0.2 to 5.0.0
Bumps [diff](https://github.com/kpdecker/jsdiff) from 4.0.2 to 5.0.0.
- [Release notes](https://github.com/kpdecker/jsdiff/releases)
- [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md)
- [Commits](https://github.com/kpdecker/jsdiff/compare/v4.0.2...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Brett Wright <wright.brett@gmail.com>
2021-04-19 19:48:15 +02:00
Dominik Henneke 94da209767 Sort the table filter options by name
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-04-19 19:39:37 +02:00
Johan Haals d126628a9b Remove optional entity field
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-04-19 15:24:42 +02:00
Fredrik Adelöw 838f4c779a Merge pull request #5364 from backstage/rugvip/nocheck
core-api: remove apiHolder creation check
2021-04-19 11:15:01 +02:00
Johan Haals ec43f706c7 Copy migrations to migrationsv2 before migration
Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-04-19 10:53:57 +02:00
Fredrik Adelöw 6b0761dbbc Merge pull request #5258 from gtzefrain/accessibility/scaffolder-plugin-headings
Accessibility: Scaffolder Headings adjustments
2021-04-17 14:24:57 +02:00
Patrik Oldsberg d5b2a05712 core-api: remove apiHolder creation check
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-16 17:20:33 +02:00
Fredrik Adelöw 52730580e7 Merge pull request #5244 from victormorfin97/master
Adding close button on Support menu
2021-04-16 15:17:58 +02:00
Fredrik Adelöw e28c725004 Merge pull request #5308 from SDA-SE/feat/sqlite-dir
Support configuration of file storage for SQLite databases
2021-04-16 14:00:38 +02:00
Patrik Oldsberg 208694c66e Merge pull request #5328 from backstage/rugvip/config-schema-cli
cli: added config:docs command
2021-04-16 12:56:24 +02:00
Patrik Oldsberg cbfa75bf69 Merge pull request #5351 from backstage/rugvip/plugin-detective
core: allow plugins to be discovered through the react tree
2021-04-16 10:42:30 +02:00
Fredrik Adelöw 2c65864ec0 Merge pull request #5357 from adamdmharvey/fix-diagram-card
fix(create-app,example): Move system diagram to system page
2021-04-16 09:51:15 +02:00
dependabot[bot] 25fb68e488 chore(deps): bump diff from 4.0.2 to 5.0.0
Bumps [diff](https://github.com/kpdecker/jsdiff) from 4.0.2 to 5.0.0.
- [Release notes](https://github.com/kpdecker/jsdiff/releases)
- [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md)
- [Commits](https://github.com/kpdecker/jsdiff/compare/v4.0.2...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-16 04:19:34 +00:00
Adam Harvey 670acd88ee Move diagram to system page
Signed-off-by: Adam Harvey <adaharve@cisco.com>
2021-04-15 21:05:26 -04:00
Patrik Oldsberg 1373f4f122 cli: remove plugin.ts addition from create-plugin
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-15 19:30:44 +02:00
Patrik Oldsberg ee22773e90 create-app: removed plugins.ts
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-15 19:23:00 +02:00
Patrik Oldsberg 46b7f84c89 example-app: remove explicit plugin imports and some unused plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-15 19:15:16 +02:00
Patrik Oldsberg ab07d77f68 core-api: discover plugins in app element tree
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-15 19:15:15 +02:00
Fredrik Adelöw d7b59889db Merge pull request #5277 from backstage/timbonicus/signinconfig
Export SignInConfig type
2021-04-15 18:40:24 +02:00
github-actions[bot] 70be53c939 Version Packages 2021-04-15 15:40:08 +02:00
Fredrik Adelöw b5d41f0e7e Merge pull request #5343 from backstage/freben/env
change all `$env` to `${}`
2021-04-15 15:11:21 +02:00
Fredrik Adelöw c28689c686 change all $env to ${}
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-15 13:26:44 +02:00
Eric Peterson dc9cc8b17c Merge pull request #5260 from SDA-SE/feat/techdocs-exception
[TechDocs] Avoid run-time availability checks when instantiating publishers
2021-04-15 13:25:40 +02:00
Oliver Sand 3f048fbd25 Don't ensure directory exists if :memory: storage is used
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-15 11:30:22 +02:00
Fredrik Adelöw c10e6490ca Merge pull request #5320 from SDA-SE/feat/fix-api-docs-page-theme
Fix api docs page theme
2021-04-15 11:11:51 +02:00
Oliver Sand 0075578224 Use ensureDirSync
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-15 10:55:55 +02:00
Patrik Oldsberg 4e5c942491 cli: added config:docs command
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-14 17:42:17 +02:00
Oliver Sand 0c49f4461e Ensure that the connection object is always initialized
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-14 15:56:58 +02:00