Commit Graph

9282 Commits

Author SHA1 Message Date
Gustaf Räntilä 706817149b fix(cicd-statistics): Made FilterBranchType and FilterStatusType not be parameterized
Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
2022-02-09 19:52:14 +01:00
Gustaf Räntilä cf0e970bc2 fix(cicd-statistics): Added entity option to getConfiguration
Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
2022-02-09 19:52:14 +01:00
Gustaf Räntilä d82fe02ecf docs(cicd-statistics): Fixed spellings in README
Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
2022-02-09 19:52:14 +01:00
Gustaf Räntilä 770c195f34 feat(cicd-statistics): Added CI/CD statistics plugin
Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
2022-02-09 19:52:14 +01:00
Ben Lambert c367ddb301 Merge pull request #9440 from backstage/blam/roll-back-bad-dep
Rolling back the `@date-io/luxon` bump
2022-02-09 19:51:28 +01:00
blam 945ea0d278 chore: roll back the date-io/luxon bump
Signed-off-by: blam <ben@blam.sh>
2022-02-09 19:06:30 +01:00
Patrik Oldsberg 1cabe4264a core-components,catalog-react: update API reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-09 17:39:48 +01:00
Patrik Oldsberg 56f20465b7 core-components,catalog-react: override type for forwardRef components
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-02-09 17:10:50 +01:00
Ben Lambert e34d4ce277 Merge pull request #9362 from mdb/mdb/new-splunk-on-call-annotation
[Plugin] Splunk On-Call plugin support for 'splunk.com/on-call-routing-key' annotation
2022-02-09 14:00:03 +01:00
Ben Lambert e40e4fce19 Update CHANGELOG.md
Signed-off-by: Ben Lambert <blam@spotify.com>
2022-02-09 10:46:19 +01:00
github-actions[bot] e74f416a00 Version Packages (next) 2022-02-08 19:38:17 +00:00
Daniel Deloff 3396bc5973 remove option for disabling refresh
Signed-off-by: Daniel Deloff <44780793+rv-ddeloff@users.noreply.github.com>
2022-02-08 14:04:50 -05:00
Fredrik Adelöw cdc4282e3f Merge pull request #9351 from backstage/dependabot/npm_and_yarn/knex-1.0.2
chore(deps): bump knex from 0.95.6 to 1.0.2
2022-02-08 17:05:17 +01:00
Ben Lambert 5f0a20db15 Merge pull request #9391 from snehaljos/issue9157
Fixed bug in UI | Fix for issue #9157
2022-02-08 15:01:28 +01:00
blam 1026f12334 chore: fixing a totally different way and arguably a more simpler way.
Signed-off-by: blam <ben@blam.sh>
2022-02-08 14:36:20 +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
mufaddal motiwala a7abd5f35b jsDoc comment added
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-02-08 12:09:31 +05:30
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 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 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
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
mufaddal motiwala 22ebeb4575 API report added
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-02-07 23:03:41 +05:30
mufaddal motiwala 5ca42462b7 export DashboardSnapshotComponent
Signed-off-by: mufaddal motiwala <mufaddalmm.52@gmail.com>
2022-02-07 22:41:33 +05:30
blam 7d2ddae27a chore: updated api-report
Signed-off-by: blam <ben@blam.sh>
2022-02-07 18:04:28 +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
Fredrik Adelöw 1dd5a02e91 fix build
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-02-07 15:51:58 +01:00
dependabot[bot] 2441d1cf59 chore(deps): bump knex from 0.95.6 to 1.0.2
Bumps [knex](https://github.com/knex/knex) from 0.95.6 to 1.0.2.
- [Release notes](https://github.com/knex/knex/releases)
- [Changelog](https://github.com/knex/knex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/knex/knex/commits)

---
updated-dependencies:
- dependency-name: knex
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 15:51:55 +01:00
snehaljos 41402f98a8 Fixed bug in UI | Fix for issue #9157
Signed-off-by: snehaljos <joyalsnehal3421@gmail.com>
2022-02-07 19:21:00 +05:30
Ben Lambert 653e98bbe5 Merge pull request #9359 from RoadieHQ/loading-progress-on-task-page
adds progress bar to the task page..
2022-02-07 14:33:14 +01:00
Ben Lambert d2c379aeab Merge pull request #9247 from backstage/filter-query-params
Respect queryParameter updates in catalog pickers
2022-02-07 13:18:40 +01:00
Emma Indal a4a777441d [Home] homepage component starred entities (#9378)
* implement starred entities home page component + add to storybook

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* update default template to include starred entities

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* add changeset

Signed-off-by: Emma Indal <emma.indahl@gmail.com>

* api report

Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-02-07 11:28:26 +01:00
Fredrik Adelöw 709bc85ca1 Merge pull request #9338 from backstage/freben/ea-no-more
Bunch of random api cleanup
2022-02-07 10:45:37 +01:00
Patrik Oldsberg 87bcdc2366 Merge pull request #9341 from backstage/rugvip/todo-test
todo: switch to routable extension + add test
2022-02-07 10:33:14 +01:00
Jonah Back 9b122a780c feat: add optional userExpand parameter for ms graph
Signed-off-by: Jonah Back <jonah@jonahback.com>
2022-02-06 19:23:26 -08:00
Ben Lambert 411d2a425a Merge pull request #9346 from djamaile/master
fix(scaffolder-backend): use the right key when initializing a Gitlab…
2022-02-05 22:02:00 +01:00
Tim Hansen fb39efa320 Fix useEntityListProvider test
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2022-02-04 13:57:27 -07:00