Jamie Klassen
bacb5470b6
frontend displays new error types
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
a5a9d3318a
don't surface non-FetchErrors
...
It makes sense to gracefully show an error that was actually related to fetching
data from Kubernetes, but if the error is happening for some other exotic
reason, the default error handling logic in Backstage should take over and
log/manage it appropriately.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
0ad476a720
gracefully surface FetchErrors
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
fcf8d33014
node-fetch-based implementation for pod metrics
...
which eliminates the need for the KubernetesClientProvider
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
f54362ad57
use node-fetch for k8s resources
...
The main advantage this has over using the list*CustomObject methods is that it
won't reject non-OK statuses, so we won't have to be so careful about
catching and rethrowing.
Personally I find it a bit clearer to see the actual requests rather than the
client methods with all those empty arguments, and a side benefit is that this
implementation uses the fetch API -- under the covers, @kubernetes/client-node
is using the deprecated request library.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
99ca12978d
spy on https calls to check caData
...
This is a little awkward, but at the moment msw doesn't give much of a means of
interacting with the non-WHATWG-Fetch-spec aspects of a request.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
df716f5ed5
metrics tests use msw instead of mocks
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
7e2cd3c357
backfill test for warning log
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
030f9cb5c1
backfill test for non-kubernetes error
...
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
15ad4b2389
stub k8s API checks bearer tokens
...
Also, use idiomatic ResponseTransformers to clean up the individual tests.
Finally, modify the "unauthorized error handling" spec to provide an invalid
token to an otherwise-realistic stub k8s API.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
d31fe28625
backfill test for loading default kubeconfig
...
Strictly speaking, the `loadFromDefault` method on `KubeConfig` as it is
being called in `KubernetesClientProvider` has many other behaviours that this
test does not exercise -- it has logic for reading kubeconfig files (based on
an env var or default location in a home directory), provisions for running on
Windows, and even contacting an apiserver on localhost.
I'm making a breaking assumption here that these other scenarios are not
important for Backstage users, and the one that really matters is the
in-cluster one described in this test.
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Jamie Klassen
f7ccaef866
convert fetchObjectsForService mocks to msw
...
this will allow some dramatic refactoring
Signed-off-by: Jamie Klassen <jklassen@vmware.com >
2022-12-14 17:51:19 -05:00
Patrik Oldsberg
a219b735dc
Merge pull request #15237 from backstage/mob/config-obj
...
backend-plugin-api: suffix all service interfaces with *Service
2022-12-14 17:55:31 +01:00
Fredrik Adelöw
8bb1931b24
Merge pull request #15178 from gtestault/feature/jenkins_standalone_project
...
Feature/jenkins standalone project
2022-12-14 16:32:35 +01:00
Patrik Oldsberg
05a928e296
fix breakages from Service interface renames
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-14 15:03:02 +01:00
Gabriel Testault
6c70d769e4
feature(jenkins-backend): be more precise in jenkins terminology
...
Only explicitly support Multibranch Pipeline and Pipeline projects
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com >
2022-12-14 12:02:27 +01:00
Gabriel Testault
98ba60b8b5
feature(jenkins-backend): improve test for standalone project
...
test that the client is called twice for unfiltered standalone projects.
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com >
2022-12-14 11:29:44 +01:00
Andre Wanlin
1d3fe791c1
Moved style to class
...
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com >
2022-12-13 13:33:40 -06:00
Andre Wanlin
26a28bfd24
Make ownership box all the same size
...
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com >
2022-12-13 13:26:06 -06:00
github-actions[bot]
b2f4e97add
Version Packages (next)
2022-12-13 16:56:03 +00:00
Patrik Oldsberg
7178f7d147
Merge pull request #15004 from akundrock/scaffolder/fields/bitbucketRepoPicker
...
Add field selection rendering of allowedProjects for BitbucketRepoPicker
2022-12-13 17:23:01 +01:00
Patrik Oldsberg
f18491ed56
Merge pull request #15131 from backstage/renovate/esbuild-0.x
...
Update dependency esbuild to ^0.16.0
2022-12-13 15:53:02 +01:00
Patrik Oldsberg
db3222cf9a
Merge pull request #15144 from Symbianx/improve-github-action
...
Allow setting dismissStaleReviews on github:publish action
2022-12-13 15:50:38 +01:00
Andrew Kundrock
afda8319d9
Update test coverage and export docs
...
Signed-off-by: Andrew Kundrock <akundrock@somalogic.com >
2022-12-13 15:03:11 +01:00
Andrew Kundrock
8f9864e8e2
Update api-report
...
Signed-off-by: Andrew Kundrock <akundrock@somalogic.com >
2022-12-13 15:03:00 +01:00
Andrew Kundrock
300256392c
Add field selection rendering of allowedProjects for BitbucketRepoPicker
...
Signed-off-by: Andrew Kundrock <akundrock@somalogic.com >
2022-12-13 15:00:48 +01:00
Patrik Oldsberg
8a9206ed33
Merge pull request #15139 from Bonial-International-GmbH/pjungermann/bitbucket/update-spec
...
chore: update Bitbucket Cloud OpenAPI specification
2022-12-13 14:56:39 +01:00
Patrik Oldsberg
2cb9998beb
Merge pull request #15058 from wayfair-contribs/smedeiros_filters
...
Fix owner and lifecycle picker
2022-12-13 14:02:34 +01:00
Renan Mendes Carvalho
0bc908d0eb
fix(plugins-search-backend-module-elasticsearch): Missing node config
...
This patch fixes the engine creation by adding the missing and
necessary config: node.
Co-authored-by: Camila Belo <camilaibs@gmail.com >
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2022-12-13 13:50:00 +01:00
Renan Mendes Carvalho
717bd13875
plugin-search-backend-module-elasticsearch: Opensearch provider
...
This patch continues the work started by jinnjwu on
https://github.com/backstage/backstage/pull/14988
It creates a new provider, opensearch, allowing the usage of it
outside of managed aws solutions.
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com >
2022-12-13 13:50:00 +01:00
Jin Wu
99ae859cb0
Update config.d.ts
...
Signed-off-by: Jin Wu <jin_kk666@163.com >
2022-12-13 13:50:00 +01:00
Patrik Oldsberg
2c2d656395
Merge pull request #15158 from K-Phoen/costs-insights-metrics-axis
...
Added Y axis for metric data
2022-12-13 13:46:45 +01:00
Patrik Oldsberg
3245187b9c
Merge pull request #14584 from AmericanAirlines/3574-catalog-import-filter
...
adding filters to catalog import
2022-12-13 11:27:56 +01:00
Patrik Oldsberg
5cc6d6ce05
Merge pull request #15127 from backstage/rugvip/rrd
...
Replace usages of react-router with react-router-dom
2022-12-12 23:51:54 +01:00
Patrik Oldsberg
530a1f1299
plugins: replace react-router mocks with react-router-dom
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-12 21:30:57 +01:00
Patrik Oldsberg
27b07b3700
Merge pull request #14807 from Linneaiv/error_conditional_rendering
...
ErrorReporting conditional rendering
2022-12-12 18:04:26 +01:00
Gabriel Testault
496201574d
feature(jenkins-backend): added support for standalone jenkins projects
...
Signed-off-by: Gabriel Testault <gabriel.testault@goto.com >
2022-12-12 17:43:23 +01:00
Patrik Oldsberg
3579468489
Merge pull request #14125 from clareliguori/aws-creds-provider
...
Standardize AWS credentials configuration
2022-12-12 16:27:45 +01:00
Lucas De Souza
30d0090e26
prettier
...
Signed-off-by: Lucas De Souza <lucas.desouza@aa.com >
2022-12-12 09:17:51 -06:00
Fredrik Adelöw
a48cfaa653
Merge pull request #15169 from backstage/freben/zod-back
...
move zod back a step to avoid type issues
2022-12-12 14:40:12 +01:00
Fredrik Adelöw
b05dcd5530
move zod back a step to avoid type issues
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-12-12 13:40:40 +01:00
Johan Haals
e4f1df809e
Merge pull request #15163 from RoadieHQ/show-array-types
...
show array of types on installed actions page
2022-12-12 13:35:40 +01:00
Fredrik Adelöw
c6a2600770
one more timeout that sometimes is not enough
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-12-12 13:07:39 +01:00
Brian Fletcher
1dbf2ce24b
add test
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-12-12 11:06:06 +00:00
Fredrik Adelöw
64a8bb96cf
Merge pull request #15048 from backstage/stackoverflow/search-highlights
...
[Search] Add highlighting to StackOverflow result list item
2022-12-12 11:58:43 +01:00
Fredrik Adelöw
903d29a028
Merge pull request #15005 from jamieklassen/k8s-cluster-cafile
...
[kubernetes-backend] support caFile on clusters defined in app-config
2022-12-12 11:46:57 +01:00
Brian Fletcher
db6310b6a0
show array of types on installations actions page
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-12-12 10:29:12 +00:00
Patrik Oldsberg
adaadedc44
Merge pull request #15143 from backstage/mob/catafactor
...
catalog-backend: split up catalog database into 3 separate implementations + operations
2022-12-12 11:20:08 +01:00
Kévin Gomez
593c22253a
Added Y axis for metric data
...
Signed-off-by: Kévin Gomez <contact@kevingomez.fr >
2022-12-11 01:51:41 +01:00
Patrik Oldsberg
ab597e6a10
fix yarn.lock + forgotten package
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-10 15:17:53 +01:00