Youssef
0a7517fd7b
disable drag and drop for envs based on permissions
2021-10-21 23:20:48 +01:00
Youssef Khedher
5e7c692e9c
Merge branch 'master' into fix/clone-toggle-crash
2021-10-21 22:22:34 +01:00
Youssef
f2879cea79
disable clone button based on role in old view
2021-10-21 22:03:38 +01:00
Ivar Conradi Østhus
e19148d240
4.2.0-beta.6
2021-10-21 22:37:05 +02:00
Ivar Conradi Østhus
66a1d1b6cf
fix: bump unleash-frontend to 4.2.9
2021-10-21 22:36:48 +02:00
Christopher Kolstad
6914bd7908
fix: Only trigger environment enabled/disabled events if different f… ( #1053 )
...
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-21 22:33:50 +02:00
Ivar Conradi Østhus
bdf98dd8b4
4.2.9
2021-10-21 22:32:14 +02:00
Ivar Conradi Østhus
0a2a8d5af5
fix: ApiToken should hide envrionment if it is not enabled yet
2021-10-21 22:28:25 +02:00
renovate[bot]
9b3e62c56f
chore(deps): update dependency eslint to v8 ( #1012 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 21:07:27 +02:00
Ivar Conradi Østhus
1924961efa
fix: simplify how we update projects
2021-10-21 21:06:56 +02:00
Christopher Kolstad
f0dfe204ee
fix: Remove duplicate FEATURE_METADATA_UPDATED from events list for webhook addon ( #1052 )
2021-10-21 20:54:03 +02:00
Ivar Conradi Østhus
a0d5b04388
fix: only send FEATURE_UPDATED for legacy ( #1054 )
...
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-10-21 20:53:39 +02:00
renovate[bot]
e3db792c5c
fix(deps): update docusaurus monorepo to v2.0.0-beta.8 ( #1057 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 20:53:21 +02:00
Renovate Bot
809f1acdbf
chore(deps): update dependency ts-node to v10.3.1
2021-10-21 18:28:40 +00:00
Christopher Kolstad
83ad4041bf
fix: Adds PermissionSwitch ( #456 )
...
- This adds a generic way to control permission to mutations in the same
way as our PermissionButton and PermissionIconButton already does the
same.
- This also switches the StrategiesList to use PermissionIconButton so
users without ADMIN role do not believe they can deprecate/reactivate
strategies.
2021-10-21 13:25:39 +02:00
Christopher Kolstad
3c140110fe
fix: wrap link to edit context field in hasAccess check
2021-10-21 13:04:38 +02:00
Renovate Bot
f2b4158e53
chore(deps): pin dependency copy-to-clipboard to 3.3.1
2021-10-21 10:10:50 +00:00
Ivar Conradi Østhus
644ed0d6c8
4.2.0-beta.5
2021-10-21 10:57:51 +02:00
Ivar Conradi Østhus
e15788fe94
fix: bump unleash-frontend to 4.2.8
2021-10-21 10:56:31 +02:00
Ivar Conradi Østhus
0636e1f75e
4.2.8
2021-10-21 10:53:48 +02:00
Youssef Khedher
7602327991
fix: using copy library for copying user token ( #454 )
...
* using copy library for copying user token
* add "copy-to-clipboard" to dev dependencies
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-21 10:50:41 +02:00
Ivar Conradi Østhus
0ddd52a8ba
fix: adjust tooltip for toggle type
2021-10-21 10:41:46 +02:00
renovate[bot]
6e2713ad9c
chore(deps): update typescript-eslint monorepo to v5 ( #1018 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-21 10:29:38 +02:00
Christopher Kolstad
b7b5f0caa0
fix: add constraint for changing project. ( #1049 )
...
- In order for a feature toggle to be allowed to change project, the
target project must have the same enabled environments.
- If the feature toggle has an environment which is not in use that does
not exist in target project, this is ok.
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-10-21 10:29:09 +02:00
Ivar Conradi Østhus
3484340cd0
fix: only add project environments if enabled ( #1050 )
2021-10-21 10:14:35 +02:00
Fredrik Strand Oseberg
fea7707551
fix: use path parameter for old ft view ( #450 )
...
* fix: use path parameter for old ft view
* fix: update snapshots
* fix: change text
* fix: add permission button to initial strategies view
* fix: remove unused imports
2021-10-21 09:50:58 +02:00
Renovate Bot
e345980dcf
chore(deps): update dependency husky to v7.0.4
2021-10-21 06:03:10 +00:00
Renovate Bot
53f481498d
chore(deps): update dependency @types/react to v17.0.31
2021-10-21 05:20:38 +00:00
Renovate Bot
c9e84c7dd1
chore(deps): update dependency @types/enzyme to v3.10.10
2021-10-20 23:51:24 +00:00
Fredrik Oseberg
c763b80569
fix: style import
2021-10-20 13:40:08 +02:00
Ivar Conradi Østhus
c657cd588c
4.2.0-beta.4
2021-10-20 13:27:24 +02:00
Ivar Conradi Østhus
3e1a745db9
fix: bump unleash-frontend to 4.2.7
2021-10-20 13:27:06 +02:00
Ivar Conradi Østhus
ab7f496749
4.2.7
2021-10-20 13:25:45 +02:00
Fredrik Oseberg
5d48ce3f03
fix: margin
2021-10-20 13:21:39 +02:00
Ivar Conradi Østhus
03230fcff9
fix: failing unit tests
2021-10-20 13:20:10 +02:00
Fredrik Oseberg
73861b0f2e
fix: metrics styling
2021-10-20 13:18:33 +02:00
Christopher Kolstad
62b121285c
Create a apiuser for demo auth. ( #1045 )
...
- If api token middleware is disabled, still allow calls to /api/client with a
populated fake api user with client access.
2021-10-20 13:16:07 +02:00
Fredrik Oseberg
37d04b56ba
fix: scale metrics
2021-10-20 13:15:32 +02:00
Youssef Khedher
058d3540a3
fix: clone toggle path to the new toggle view path after clone ( #440 )
...
* fix clone toggle path to the new path
* fix crush when clone a toggle with empty name
2021-10-20 13:13:29 +02:00
Youssef Khedher
2bce93a51b
Fix: improve create new feature v2 ( #441 )
2021-10-20 13:12:48 +02:00
renovate[bot]
9a383967dc
chore(deps): update dependency @types/react-dom to v17.0.10 ( #449 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-20 13:12:17 +02:00
Fredrik Strand Oseberg
48bae48ee0
fix: style metrics view ( #448 )
2021-10-20 12:55:40 +02:00
Fredrik Strand Oseberg
57928d50c6
Fix/environment list sorting ( #447 )
...
* fix: wait for api call before refetching
* fix: set active environment from feature instead of cache
* fix: remove console logs
* fix: add permission icon button to project card
* fix: remove project button
* fix: empty tooltip if it is not passed
* fix: add refresh interval
* fix: permission buttons
* fix: project permission buttons
* fix: remove unused imports
* fix: add projectId
2021-10-20 12:05:44 +02:00
Ivar Conradi Østhus
f61a949df2
fix: add supprot for acr_values in OIDC ( #445 )
2021-10-20 08:31:02 +02:00
Youssef Khedher
3dc7f22aaa
fix switch toggle for envs after update + update link for health overview ( #446 )
...
* fix switch toggle for envs after update
* fix: React hook missing dependency error
2021-10-19 15:38:20 +02:00
Christopher Kolstad
28d0238732
add try-catch to demo auth middleware ( #1044 )
...
- Since we validate email used in auth the route function needs to
handle the possibility that userService.loginUserWithoutPassword can
throw.
2021-10-19 14:24:23 +02:00
Fredrik Strand Oseberg
005daa3740
Fix/login redirect ( #442 )
...
* fix: use swr with login
* fix: remove metrics poller
* fix: do not allow retry on 401
* fix: create swr provider
* fix: move accessprovider
* fix: remove metrics poller test
* fix: hide password auth if disableDefault is set
* Update src/component/project/ProjectList/ProjectList.tsx
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
* fix: console log
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-10-19 13:08:25 +02:00
Christopher Kolstad
ea2086a7f4
Mutate cache key for project when archiving feature. ( #444 )
...
* Use useProject hook directly instead of mutating on cache key
2021-10-19 12:36:51 +02:00
Renovate Bot
72445b6423
chore(deps): update dependency jest to v27.3.1
2021-10-19 10:20:23 +00:00
Christopher Kolstad
1f37b0bf4b
fix: make hasPermission call handle api tokens ( #1041 )
2021-10-19 11:34:56 +02:00