Commit Graph

22619 Commits

Author SHA1 Message Date
dependabot[bot] 9067d7052f chore(deps): bump winston from 3.3.3 to 3.5.1
Bumps [winston](https://github.com/winstonjs/winston) from 3.3.3 to 3.5.1.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](https://github.com/winstonjs/winston/compare/v3.3.3...v3.5.1)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 04:26:03 +00:00
dependabot[bot] d897491df2 chore(deps): bump esbuild from 0.14.10 to 0.14.20
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.14.10 to 0.14.20.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.14.10...v0.14.20)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 04:10:21 +00:00
Mike Ball 5255292a2a update changeset to be 'patch' change
Per code review feedback:
https://github.com/backstage/backstage/pull/9362#discussion_r800480438

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 17:04:01 -05:00
Jahred Hope d9ac082bef Update link to moved repository - techdocs-cli (#9305) 2022-02-07 22:33:34 +01:00
Mike Ball 9552df7653 test reflects occurrence of single 'Missing Annotation'
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:59:32 -05:00
Mike Ball 04365cd213 display only 1 <MissingAnnotationEmptyState />
Per code review feedback, it's arguably unnecessary
to display duplicate `<MissingAnnotationEmptyState />`,
especially given the preceding contextual sentence
noting the supported annotations.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:59:32 -05:00
Mike Ball 1514d8a313 Update plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.tsx
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:59:27 -05:00
Mike Ball 9fa811ddbb Update .changeset/honest-foxes-scream.md
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:58:30 -05:00
Mike Ball da9d1723f6 invalid annotation logic better reflects component logic
The EntitySplunkOnCallCard gives precedence to a `splunk.com/on-call-team`
annotation. Therefore, the InvalidAnnotation component messaging
should reflect that precedence, even in instances where _both_ supported
annotations are provided and both are deemed invalid.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball a957b9fc4d fine-tune Splunk On-Call README language
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball 4ddc657bd3 add Splunk client getRoutingKeys method documentation
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball 12182960f4 address TypeScript compilation failure
This fixes...

```
Run yarn tsc
yarn run v1.22.1
$ tsc
plugins/splunk-on-call/src/components/EntitySplunkOnCallCard.test.tsx:158:26 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'Matcher'.
  Type 'undefined' is not assignable to type 'Matcher'.

158         expect(getByText(MOCK_INCIDENT.entityDisplayName)).toBeInTheDocument(),
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball c17be55ffb add Splunk On-Call plugin changeset
Adds a changeset associated with the Splunk On-Call plugin's
support for a new `splunk.com/on-call-routing-key` annotation.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball ba1a3e9456 add splunk.com/on-call-routing-key docs to README
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball 5669e32ac1 test component rendering w/ new annotation
Test that the Splunk On Call component properly
renders when a `splunk.com/on-call-routing-key`
annotation is used.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball 07ffc7ca9d test when no Splunk On Call annotations are provided
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:09 -05:00
Mike Ball 4bda7d3045 test warning for incorrect routing key annotation
This adds a test asserting that the correct component
is rendered when the entity `splunk.com/on-call-routing-key`
does not properly map to any associated teams.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Mike Ball 7fa7857d48 correct incorrect team annotation test
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Mike Ball f408cabe8f handle invalid Splunk On-Call annotations
If a `splunk.com/on-call-team` annotation is provided and
the API returns no associated team, render...

```
Splunk On-Call API returned no record of teams associated with the "foo" team name
Escalation Policy and incident information unavailable. Splunk On-Call requires a valid team name or routing key.
```

If a `splunk.com/on-call-routing-key` annotation is provided and
the API returns no associated team, render...

```
Splunk On-Call API returned no record of teams associated with the "foo" routing key
Escalation Policy and incident information unavailable. Splunk On-Call requires a valid team name or routing key.
```

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Mike Ball 52bb1807db properly render <Missing* /> components
Corrects logic ensuring `<MissingAnnotation />` and `<MissingEventsRestEndpoint />`
render correctly. Previously, neither component would render from
within the `<Content />` component.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Mike Ball 0dfbb30a5d add 1em spacing between each Splunk On-Call card
Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Mike Ball 4c61bc0cfa render Splunk On-Call card per team
In instances where a `splunk.com/on-call-routing-key`
is provided and that routing key is associated with
multiple teams, the component now renders an individual
Splunk On-Call card for each team.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Mike Ball 70903de879 [wip] support 'splunk.com/on-call-routing-key' annotation
Extends the Splunk On Call plugin Entity card to infer the
corresponding team names from a `splunk.com/on-call-routing-key`
annotation.

This seeks to enable the use of the Splunk On Call plugin on
entity pages for those orgs who associate a component with a
routing key rather than a team name.

Signed-off-by: Mike Ball <mikedball@gmail.com>
2022-02-07 15:56:08 -05:00
Patrik Oldsberg 51fe2055df cli: fix a spelling
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:07 +01:00
Patrik Oldsberg b906f98119 changesets: add changeset for dist workspace improvements
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:07 +01:00
Patrik Oldsberg f65550a08d cli: update createDistWorkspace to use dist move utility when possible
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:06 +01:00
Patrik Oldsberg a41f50f970 cli: added utility for copying package dist files
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:06 +01:00
Patrik Oldsberg c039c184c5 cli: update createDistWorkspace to inline builds when possible
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:06 +01:00
Patrik Oldsberg 46855aaffa cli: packager, add back index
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:06 +01:00
Patrik Oldsberg 2375ef7c3c cli: packager, rename index to createDistWorkspace
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 19:49:04 +01:00
Ben Lambert 28cad572ff Merge pull request #9384 from backstage/dependabot/npm_and_yarn/fork-ts-checker-webpack-plugin-7.1.1
chore(deps): bump fork-ts-checker-webpack-plugin from 7.0.0-alpha.11 to 7.1.1
2022-02-07 19:28:46 +01:00
Ben Lambert 89b88a920d Merge pull request #9379 from backjo/feature/AddExpandParamToMsGraphQuery
feat: add optional userExpand parameter for ms graph
2022-02-07 19:27:23 +01:00
Patrik Oldsberg 618366b8a7 Merge pull request #9388 from backstage/rugvip/role-parallel
cli: refactor parallel helpers + limit parallelism
2022-02-07 19:18:15 +01:00
mufaddal motiwala 22ebeb4575 API report added
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-02-07 23:03:41 +05:30
Patrik Oldsberg 646eb8748b changesets: enter prerelease
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 18:12:54 +01:00
mufaddal motiwala 5ca42462b7 export DashboardSnapshotComponent
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-02-07 22:41:33 +05:30
Patrik Oldsberg 68e1ba360f workflows: move upgrade helper dispatch to release manifest workflow
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 18:11:02 +01:00
Ben Lambert b5bcc42493 Merge pull request #9366 from backstage/emmaindal/error-page
[ErrorPage] adjust accepted properties
2022-02-07 18:06:21 +01:00
Ben Lambert 424d4d6ef6 Merge pull request #9371 from backstage/rugvip/td-cli-build
techdocs-cli: simplify dev setup and optimize build
2022-02-07 18:05:35 +01:00
blam 7d2ddae27a chore: updated api-report
Signed-off-by: blam <ben@blam.sh>
2022-02-07 18:04:28 +01:00
Patrik Oldsberg 764ee19029 cli: switch to looping parallel workers + fix bump test log ordering
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 17:59:30 +01:00
blam 8c4f24eb23 chore: bumping the memory limit of the forchore: bumping the memory limit of the ForkTsCheckerWebpackPlugin as it doesn't work without it for the main repo.
Signed-off-by: blam <ben@blam.sh>
2022-02-07 17:43:25 +01:00
Patrik Oldsberg 88ba8f6282 cli: switch out some unbounded parallelism to use worker helper
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 17:09:48 +01:00
Patrik Oldsberg 872fcca281 cli: refactor parallelism util + new shared worker util
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 17:09:48 +01:00
Patrik Oldsberg 9d56dabe65 Merge pull request #9258 from backstage/rugvip/role-build
cli: add experimental repo-wide build based on package roles
2022-02-07 17:08:53 +01:00
Patrik Oldsberg 6398f2a3e5 Merge pull request #9393 from backstage/rugvip/lint-root
cli: make lint path output relative to repo root
2022-02-07 17:03:12 +01:00
Ben Lambert 910a7e0dde Merge pull request #9344 from backstage/rugvip/auth-cookies
auth-backend: make it possible to tweak the cookie configuration logic
2022-02-07 16:46:18 +01:00
Patrik Oldsberg b472f1c7b8 Merge pull request #9392 from backstage/rugvip/lint
cli: fix lint invocation
2022-02-07 16:19:43 +01:00
Patrik Oldsberg 50a19ff8dd cli: make lint path output relative to repo root
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-07 16:01:37 +01:00
Fredrik Adelöw 1dd5a02e91 fix build
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-07 15:51:58 +01:00