Commit Graph

10411 Commits

Author SHA1 Message Date
Emma Indal 38724b2b98 remove labs package
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:22 +01:00
Emma Indal a27a0e61d4 export ComponentRenderer type from home plugin
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:22 +01:00
Emma Indal 140cf15341 add api reports
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:22 +01:00
Emma Indal 7c13bcbc30 make vale happy
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:22 +01:00
Emma Indal 90965cb56a fixups
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:22 +01:00
Emma Indal f80f3a7bc9 create stack-overflow backend plugin and move collator there
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:22 +01:00
Emma Indal a7825896c3 fixups
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:25:21 +01:00
Emma Indal fa4d513332 add stack overflow homepage component to default template
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:19:08 +01:00
Emma Indal e4d77a9c54 add new stack overflow plugin
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-03-25 11:19:08 +01:00
Fredrik Adelöw b1b793d974 Merge pull request #9630 from naijith/bazaar-api
bazaar: use token while request to backend
2022-03-24 16:43:41 +01:00
Matthew Clarke 1023ee6353 Export kubernetes components (#10401)
* export Kubernetes components

Signed-off-by: mclarke <mclarke@spotify.com>

* changeset

Signed-off-by: mclarke <mclarke@spotify.com>

* api reports

Signed-off-by: mclarke <mclarke@spotify.com>

* fix deps

Signed-off-by: mclarke <mclarke@spotify.com>

* move dep from dev to regular

Signed-off-by: mclarke <mclarke@spotify.com>
2022-03-24 10:24:23 -04:00
Fredrik Adelöw c0717fb562 Merge pull request #9589 from prasaria/parent-group-ownership-aggregation
Parent group ownership aggregation
2022-03-24 14:17:54 +01:00
Fredrik Adelöw 53924a3e2a Merge pull request #10077 from backstage/vinzscam/decouple-tags-picker-from-entities
Decouple EntityTagPicker from entities
2022-03-24 14:08:38 +01:00
Prasetya Aria Wibawa 0e5c9b2c8a remove unused comment
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 16:14:26 +07:00
Prasetya Aria Wibawa f12cb33bd5 passing down isGroup value from ownershipCard to useGetEntities
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:56:56 +07:00
Prasetya Aria Wibawa 102e6efea5 fix test ownership card
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:35:20 +07:00
Prasetya Aria Wibawa 103b72b704 update to just use one hooks and one component grid in ownership card
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:20:30 +07:00
Prasetya Aria Wibawa 69d652f3cc use relations.ownedBy for filter params in getEntities
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:26 +07:00
Prasetya Aria Wibawa e4d5b8c7ff rename owner to ownerEntity for getQueryParams
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa 80b47162be fix failing test for links to the catalog with group filter
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa 4a790094ee use humanizeEntityRef
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa da70c0ef1a check looping from length of requestedEntities
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa be6b97e2ed change to use getEntityByRef
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa 303bc1c7fb use prettier
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa d9497b9b6e change filterKinds in OwnershipCard test
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa b759a21c96 change isOwnerOf to use filter relations.ownedBy
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa 5606d6065b use getEntityRelations to get all memberOf groups
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:25 +07:00
Prasetya Aria Wibawa 8183a00eae change system test expectation for displays entity counts case
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa 3e1a4ed473 use additional kind system for OwnershipCard test
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa fce26e8204 change to use supported version of useAsync
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa 21f99270bb change transitive word to aggregated
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa 8e9ddcc5f0 change label props
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa 539a0d754c remove catalogListResponse from import statement
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa 19fe9bfafb add checked props to switch component
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:24 +07:00
Prasetya Aria Wibawa 2566b48ebb transitive ownership of entities for group kind
Signed-off-by: Prasetya Aria Wibawa <prasetya.wibawa@grabtaxi.com>
2022-03-24 14:12:17 +07:00
Shailendra Ahir e230f704dd #8850 Updated api report
Signed-off-by: Shailendra Ahir <shailendraahir@hotmail.com>
2022-03-24 08:40:46 +05:30
Simon Gellis 5fd5a1ae80 Update API docs
Signed-off-by: Simon Gellis <sgellis@attentivemobile.com>
2022-03-23 17:58:56 -04:00
Simon Gellis aabd601b11 Support creating draft github PRs
Signed-off-by: Simon Gellis <sgellis@attentivemobile.com>
2022-03-23 17:46:42 -04:00
Joe Porpeglia c84d4ad373 Fix usePermission usage
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2022-03-23 16:07:10 -04:00
MT Lewis 3e0bbeda8b permission-react: fix usePermission tests
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-03-23 16:07:10 -04:00
MT Lewis 8c6129d3e0 permission-react: inline parameter type to clean up the api report a bit
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-03-23 16:07:10 -04:00
Joe Porpeglia 91703e8086 permission-react: use object instead of tuple for usePermission args
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com>
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2022-03-23 16:07:10 -04:00
Mike Lewis 5bdcb8c45d permission-react: more restrictive typing for usePermission and PermissionedRoute
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-23 16:07:10 -04:00
MT Lewis 9da18e4715 search: throw error for unexpected non-resource permissions when authorizing result-by-result
We only reach this point in the code for types where the initial
authorization returned CONDITIONAL -- ALLOWs return early immediately
above, and types where the decision was DENY get filtered out entirely
when querying.

This means the call to isResourcePermission here is mostly about
narrowing the types, since the only way for it to be false is if the
PermissionPolicy returned a CONDITIONAL decision for a non-resource
permission, which can't happen - it would throw an error during
validation in the permission-backend.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-03-23 15:58:42 -04:00
Mike Lewis 30f9884359 search: check for non-resource permissions when authorizing results
Now that we can differentiate between ResourcePermissions and other
kinds of permissions, we can skip authorizing result-by-result
when the permission for a given document type is not a
ResourcePermission.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-23 15:58:42 -04:00
Joe Porpeglia 1e0dbd4fb5 Add todo
Signed-off-by: Joe Porpeglia <josephp@spotify.com>
2022-03-23 14:25:14 -04:00
Mike Lewis 8cb7acd781 catalog-react: stop using CatalogEntityPermission convenience type
There's currently an issue with importing alpha exports from other
packages in the monorepo. This works around the issue for now by
skipping the use of the `CatalogEntityPermission` convenience type,
using `ResourcePermission<'catalog-entity'>` directly instead.

cf. https://github.com/backstage/backstage/pull/10128

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-23 14:25:14 -04:00
Mike Lewis 0ffd88a90e catalog-react: require CatalogEntityPermission in useEntityPermission
Now that we have stricter typing for permissions, we can restrict the
useEntityPermission hook to only be used with permissions of type
`CatalogEntityPermission`.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-23 14:25:14 -04:00
Mike Lewis 8c8bee47f4 catalog-common: add CatalogEntityPermission convenience type
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2022-03-23 14:25:14 -04:00
Fredrik Adelöw 6a8c4251a1 Merge pull request #10291 from RoadieHQ/allow-customizing-default-catalog-component
Expose initialFiliter from Catalog Page
2022-03-23 17:03:36 +01:00