Patrik Oldsberg
36234d8af0
permission-react: add simple test for using resource permission with RequirePermission
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-04-13 14:32:26 +02:00
Fredrik Adelöw
11cd510220
remove FC usage
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2023-01-05 13:20:55 +01:00
Patrik Oldsberg
2e701b3796
refactor react-router -> react-router-dom
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-12-10 15:17:53 +01:00
Fredrik Adelöw
aaab1e34da
Fix linting errors after #13392
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-30 13:44:09 +02:00
blam
c5fa0a2fa1
chore: remove unused import
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
Co-authored-by: Johan Haals <johan.haals@gmail.com >
Signed-off-by: blam <ben@blam.sh >
2022-08-30 10:52:40 +02:00
blam
e1505b2a20
chore: supporting the PermissionedRoute in rr-beta
...
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com >
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
Co-authored-by: Johan Haals <johan.haals@gmail.com >
Signed-off-by: blam <ben@blam.sh >
2022-08-30 10:45:31 +02:00
Patrik Oldsberg
19e40f1120
permission-react: replace PermissionedRoute with RequirePermission
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-08-29 14:10:51 +02:00
Vincenzo Scamporlino
e7f28d8152
IdentityPermissionApi: strict typing
...
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:28:59 +02:00
Vincenzo Scamporlino
b1bbb9c760
Fix IdentityPermissionApi typings
...
Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev >
2022-04-08 12:28:59 +02:00
Joe Porpeglia
b9324fafe2
Remove unecessary type cast
...
Signed-off-by: Joe Porpeglia <josephp@spotify.com >
2022-03-25 10:02:46 -04:00
Joe Porpeglia
e43290ce96
Rename permission backend request and response types
...
Signed-off-by: Joe Porpeglia <josephp@spotify.com >
2022-03-25 10:02:46 -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
f71db7b1a0
permission-react: clean up unneeded 'as const' in test suite
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2022-03-22 14:32:38 -04:00
Mike Lewis
9cbb270aef
permissions: add a discriminator type to Permission
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2022-03-22 14:32:38 -04:00
Dimitris Apostolou
aedd4daa66
Fix typos
...
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com >
2022-03-13 14:12:05 +02:00
Joon Park
6acc8f7db7
Add caching to the useEntityPermission hook ( #9064 )
...
* Add caching to the useEntityPermission hook
Signed-off-by: Joon Park <joonp@spotify.com >
* Remove useRef
Signed-off-by: Joon Park <joonp@spotify.com >
* Use useSWR hook
Signed-off-by: Joon Park <joonp@spotify.com >
2022-02-02 10:49:04 +00:00
Patrik Oldsberg
4d21332888
Merge branch 'master' into rugvip/depr
2022-01-17 13:07:16 +01:00
Patrik Oldsberg
51fbedc445
plugins: migrate usage of deprecated IdentityApi methods
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2022-01-13 19:51:30 +01:00
MT Lewis
0ae4f4cc82
permissions: rename authorize request and response types to avoid envelope suffix
...
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com >
2022-01-13 17:51:06 +00:00
Patrik Oldsberg
4ce51ab0f1
use precise imports of react-use
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-12-30 12:53:16 +01:00
Joon Park
0e8ec6d974
Rename all the things
...
Signed-off-by: Joon Park <joonp@spotify.com >
2021-12-17 18:16:47 +00:00
Fredrik Adelöw
dcd1a0c3f4
Do not unpack arguments directly on exported items
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-12-07 19:42:10 +01:00
Joon Park
6ed24445a9
@backstage/plugin-permission-react ( #8215 )
...
* Add @backstage/plugin-permission-react
Signed-off-by: Joon Park <joonp@spotify.com >
2021-12-02 09:30:56 +00:00