Commit Graph

27830 Commits

Author SHA1 Message Date
Alec Jacobs f22f6050b4 feat(plugins/pagerduty): ensure proper types are exported and regenerate api-report
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 0be087f637 fix(plugins/pagerduty): define responses types before utilizing them
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 48a7d96e72 feat(plugins/pagerduty): update getOnCallByPolicyId response to be Promise<OnCallsResponse>
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 7378e1710c feat(plugins/pagerduty): update getChangeEventsByServiceId response to be Promise<ChangeEventsResponse>
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 206fc1f601 feat(plugins/pagerduty): update getIncidentsByServiceId response to be Promise<IncidentsResponse>
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 9b8438fd72 feat(plugins/pagerduty): remove unused getServiceByIntegrationKey
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 8fe1113c96 feat(plugins/pagerduty): remove unused getServiceByServiceId
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 71cc97f207 feat(plugins/pagerduty): refactor to use PagerDutyClient.getServiceByEntity
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 4d755224cc feat(plugins/pagerduty): add getServiceByEntity client function
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 05da90db84 feat(plugins/pagerduty): enforce PagerDutyEntity type from usePagerdutyEntity
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 1b0ab05757 feat(plugins/pagerduty): add PagerDutyEntity type
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 89f596bb4a feat(plugins/pagerduty): refactor PagerDutyClient.fromConfig to accept second argument of ClientApiDependencies
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 67bfd75de1 feat(plugins/pagerduty): add ClientApiDependencies type
* have ClientApiConfig join ClientApiDependencies with custom
  configuration

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 56926b6f1e chore(plugins/pagerduty): move mockPagerDutyApi to not reference const before it is defined
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs d8abae2ce6 chore(plugins/pagerduty): dont shadow outer variable
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs aba92d8f6a fix(plugins/pagerduty): use NotFoundError from @backstage/errors
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs f13bf8b510 feat(plugins/pagerduty): add @backstage/errors package
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 8798f8d93f chore: generate changeset
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 946c11ad03 docs(plugins/pagerduty): update README for new annotation support
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 8901c1d285 docs(plugins/pagerduty): regenerate api-report
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 707191bf6f feat(plugins/pagerduty): lookup by service-id if that is available
* prefer integration-key value over service-id
* disable creation of incidents if integration-key is not available

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 02c2978b79 feat(plugins/pagerduty): handle empty response when querying services
* raise NotFoundError in async hook
* show ServiceNotFoundError empty state when async hook errors

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs bb4fb80dac feat(plugins/pagerduty): add wrapper BasicCard component
* ensures errors and progress bar have consistent styling with the rest
  of the Overview Page components

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 3cf02b6e9c feat(plugins/pagerduty): handle 404 error code in Api Client
* raise NotFoundError

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:47 -07:00
Alec Jacobs 845c7f8852 feat(plugins/pagerduty): add NotFoundError
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Alec Jacobs 525641fc02 feat(plugins/pagerduty): add ServiceNotFoundError empty state
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Alec Jacobs ff30bc3f06 fix(plugins/pagerduty): use FetchApi over raw fetch with IdentityApi
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Alec Jacobs e5af087fb5 feat(plugins/pagerduty): add getServiceByServiceId to PagerDutyClient
* extract common params to helper constant

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Alec Jacobs 7959a35cc1 feat(plugins/pagerduty): check for service id annotation for applicable entities
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Alec Jacobs 0e8fc43492 feat(plugins/pagerduty): add serviceId to pager duty entity
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Alec Jacobs 7fdb8eb4fc feat(plugins/pagerduty): add constant for service id annotation
annotation: 'pagerduty.com/service-id'
Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
2022-06-15 08:07:46 -07:00
Patrik Oldsberg 43bf3ae171 Merge pull request #12038 from Bonial-International-GmbH/pjungermann/update-appconfig
chore: replace `integrations.bitbucket` with `[..].bitbucketCloud` in `app-config.yaml`
2022-06-15 15:11:20 +02:00
Patrik Oldsberg 2d63f5db14 Merge pull request #12046 from backstage/rugvip/e2e-fix
e2e-test: make sure workspace dep packages are clean
2022-06-15 15:10:16 +02:00
Patrik Oldsberg 72e5059ef9 Merge pull request #12041 from Bonial-International-GmbH/pjungermann/catalog-import
fix: check for `integrations.github` without retrieving `integrations`
2022-06-15 15:10:01 +02:00
Patrik Oldsberg a1c4f243e3 Merge pull request #11769 from AvaliaSystems/bf-entity-context-menu-style
Bf entity context menu style
2022-06-15 15:07:54 +02:00
Patrik Oldsberg 25e89a7469 Merge pull request #12045 from Bonial-International-GmbH/pjungermann/awsS3/default-region
fix: fix parsing of S3 URLs for the default region
2022-06-15 14:49:26 +02:00
Patrik Oldsberg 13ef5e7768 Merge pull request #12042 from Bonial-International-GmbH/pjungermann/integrations-visibility
fix: allow frontend visibility for `integrations` itself
2022-06-15 14:48:47 +02:00
Patrik Oldsberg ee3c232c60 e2e-test: make sure workspace dep packages are clean
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-06-15 14:29:21 +02:00
Patrik Oldsberg 650765f179 Merge pull request #12039 from backstage/rugvip/drop
ADOPTERS.md: remove duplicate adopter
2022-06-15 14:27:11 +02:00
Patrick Jungermann b1edb5cfd9 fix: fix parsing of S3 URLs for the default region
Closes: #11913
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-06-15 14:26:05 +02:00
Patrick Jungermann 272106fdad fix: check for integrations.github without retrieving integrations
Support use without `integrations` or only integrations without frontend visible properties
(e.g., `bitbucketCloud`) being configured by checking `integrations.github` directly
without attempting to load `integrations`.

Previously, `integrations` was retrieved first and then the existence of the
key `github` was checked.

This could fail if there was no config below `integrations` which has `@visibility frontend`.

This happened if no integration or only non-Github integrations without
frontend visible properties like `integrations.bitbucketCloud` are used.

After this change, we will check `integrations.github` directly.

Closes: #11700
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-06-15 13:17:58 +02:00
Patrick Jungermann 8829e175f2 fix: allow frontend visibility for integrations itself
Currently, `integrations` is retrieved at catalog-import to check
configured integrations.

This could fail if there was no config below `integrations` which has `@visibility frontend`.

This happened if no integration or only non-Github integrations without
frontend visible properties like `integrations.bitbucketCloud` are used.

After this change, at least `integrations` will always be visible to the frontend.

Closes: #11700
Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-06-15 13:17:20 +02:00
Patrik Oldsberg d40b199c48 ADOPTERS.md: remove duplicate adopter
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-06-15 12:13:28 +02:00
Patrick Jungermann e636a01227 chore: replace integrations.bitbucket with [..].bitbucketCloud in app-config.yaml
Replace `integrations.bitbucket` with `integrations.bitbucketCloud`
in `app-config.yaml` (local dev, demo).

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
2022-06-15 11:47:17 +02:00
Patrik Oldsberg 2bb51571de Merge pull request #12023 from backstage/rugvip/adopters
ADOPTERS.md: add new adopters
2022-06-15 10:23:17 +02:00
Patrik Oldsberg 0e453e3851 Merge branch 'master' into rugvip/adopters 2022-06-15 10:09:23 +02:00
Ben Lambert 7e652f2a17 Merge pull request #12022 from backstage/jhaals/mdx
chore: Make docstrings MDX compatible
2022-06-15 09:33:49 +02:00
Johan Haals afbb994ed0 Merge pull request #12036 from OkayHQ/add-okay-to-adopters
Add Okay to adopters
2022-06-15 09:33:41 +02:00
Johan Haals d91bdd0e4d Merge pull request #12005 from gregorytalita/fix/github-open-pull-requests-board
fix: removed unnecessary filter on spec.type at Github Open Pull Requests Board plugin
2022-06-15 09:33:17 +02:00
tomasrb 8447b7dbb7 Add Okay to adopters
Signed-off-by: tomasrb <tomas@okayhq.com>
2022-06-14 23:25:05 -07:00