Commit Graph

22579 Commits

Author SHA1 Message Date
Johan Haals 061393a964 Pass releaseManifest to versionFinder
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-08 10:09:30 +01:00
Johan Haals c2930c3b2c manifest: add getReleaseBy methods
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-08 10:08:50 +01:00
Johan Haals 5cd75ebbea fix eslint error
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-08 10:08:49 +01:00
Johan Haals 7c4e7b707c cli/bump: Add tests for versionfinder
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-08 10:08:49 +01:00
Johan Haals 36cca38c61 date compare release tracks, prefer latest
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-08 10:08:49 +01:00
Johan Haals 476bb94115 Initial release manifest package
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-02-08 10:08:49 +01:00
Ben Lambert 2c82f6b5dd Merge pull request #9397 from mufaddal7/feature/export-dashboard-component
export DashboardSnapshotComponent from new-relic-dashboard plugin
2022-02-08 10:06:06 +01:00
Patrik Oldsberg 2e465e1a11 Merge pull request #9399 from backstage/dependabot/npm_and_yarn/esbuild-0.14.20
chore(deps): bump esbuild from 0.14.10 to 0.14.20
2022-02-08 09:32:12 +01:00
Patrik Oldsberg fea215fa7e Merge pull request #9400 from backstage/dependabot/npm_and_yarn/winston-3.5.1
chore(deps): bump winston from 3.3.3 to 3.5.1
2022-02-08 09:30:07 +01:00
Patrik Oldsberg 1b8fbcca3a Merge pull request #9402 from backstage/dependabot/npm_and_yarn/typescript-4.5.5
chore(deps-dev): bump typescript from 4.5.4 to 4.5.5
2022-02-08 09:29:01 +01:00
Patrik Oldsberg b0530b60a0 Merge pull request #9259 from backstage/rugvip/role-pack
cli: avoid using `yarn pack` when creating dist workspace
2022-02-08 09:25:40 +01:00
mufaddal motiwala a7abd5f35b jsDoc comment added
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-02-08 12:09:31 +05:30
dependabot[bot] 9774508111 chore(deps-dev): bump typescript from 4.5.4 to 4.5.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.5.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 04:37:32 +00:00
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