1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
Commit Graph

562 Commits

Author SHA1 Message Date
Renovate Bot
3f3fbb37ed chore(deps): update dependency eslint to v8.7.0 2022-01-16 05:49:43 +00:00
Renovate Bot
cab33f7f04 chore(deps): update dependency ts-jest to v27.1.3 2022-01-15 04:05:48 +00:00
Fredrik Oseberg
4b5da3f66c chore: update frontend 2022-01-14 12:30:34 +01:00
Fredrik Oseberg
793ec8ebbc chore: update frontend 2022-01-13 18:16:39 +01:00
Fredrik Oseberg
b95e1d872e chore: update frontend 2022-01-13 14:44:45 +01:00
sighphyre
0c78980502
feat: custom project roles (#1220)
* wip: environment for permissions

* fix: add migration for roles

* fix: connect environment with access service

* feat: add tests

* chore: Implement scaffolding for new rbac

* fix: add fake store

* feat: Add api endpoints for roles and permissions list

* feat: Add ability to provide permissions when creating a role and rename environmentName to name in the list permissions datastructure

* fix: Make project roles resolve correctly against new environments permissions structure

* fix: Patch migration to also populate permission names

* fix: Make permissions actually work with new environments

* fix: Add back to get permissions working for editor role

* fix: Removed ability to set role type through api during creation - it's now always custom

* feat: Return permissions on get role endpoint

* feat: Add in support for updating roles

* fix: Get a bunch of tests working and delete a few that make no sense anymore

* chore: A few small cleanups - remove logging and restore default on dev server config

* chore: Refactor role/access stores into more logical domains

* feat: Add in validation for roles

* feat: Patch db migration to handle old stucture

* fix: migration for project roles

* fix: patch a few broken tests

* fix: add permissions to editor

* fix: update test name

* fix: update user permission mapping

* fix: create new user

* fix: update root role test

* fix: update tests

* feat: Validation now works when updating a role

* fix: Add in very barebones down migration for rbac so that tests work

* fix: Improve responses from role resolution - getting a non existant role will throw a NotFound error

* fix: remove unused permissions

* fix: add test for connecting roles and deleting project

* fix: add test for adding a project member with a custom role

* fix: add test for changing user role

* fix: add guard for deleting role if the role is in use

* fix: alter migration

* chore: Minor code cleanups

* chore: Small code cleanups

* chore: More minor cleanups of code

* chore: Trim some dead code to make the linter happy

* feat: Schema validation for roles

* fix: setup permission for variant

* fix: remove unused import

* feat: Add cascading delete for role_permissions when deleting a role

* feat: add configuration option for disabling legacy api

* chore: update frontend to beta version

* 4.6.0-beta.0

* fix: export default project constant

* fix: update snapshot

* fix: module pattern ../../lib

* fix: move DEFAULT_PROJECT to types

* fix: remove debug logging

* fix: remove debug log state

* fix: Change permission descriptions

* fix: roles should have unique name

* fix: root roles should be connected to the default project

* fix: typo in role-schema.ts

* fix: Role permission empty string for non environment type

* feat: new permission for moving project

* fix: add event for changeProject

* fix: Removing a user from a project will now check to see if that project has an owner, rather than checking if any project has an owner

* fix: add tests for move project

* fix: Add in missing create/delete tag permissions

* fix: Removed duplicate impl caused by multiple good samaritans putting it back in!

* fix: Trim out add tag permissions, for now at least

* chore: Trim out new add and delete tag permissions - we're going with update feature instead

* chore: update frontend

* 4.6.0-beta.1

* feat: Prevent editing of built in roles

* fix: Patch an issue where permissions for variants/environments didn't match the front end

* fix: lint

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2022-01-13 11:14:17 +01:00
Renovate Bot
22f78e6745 chore(deps): update dependency supertest to v6.2.1 2022-01-12 03:08:00 +00:00
Renovate Bot
cc66cc4adf chore(deps): update dependency supertest to v6.2.0 2022-01-11 03:18:49 +00:00
Renovate Bot
f10910bba1 chore(deps): update typescript-eslint monorepo to v5.9.1 2022-01-10 21:12:41 +00:00
Renovate Bot
b6a3448cda chore(deps): update dependency lint-staged to v12.1.7 2022-01-07 19:50:22 +00:00
Renovate Bot
dcdc449fc1 chore(deps): update dependency lint-staged to v12.1.6 2022-01-07 13:50:27 +00:00
Ivar Conradi Østhus
559275129d
Fix/bcryptjs (#1239)
fixes: #1108
2022-01-06 20:43:57 +01:00
Renovate Bot
fe66df2670 chore(deps): update dependency @types/uuid to v8.3.4 2022-01-06 17:59:44 +00:00
Ivar Conradi Østhus
3dee8bd42e
fix: update yarn.lock 2022-01-06 11:32:17 +01:00
Ivar Conradi Østhus
26b7da8b5c
feat: add support for cdnPrefix for static assets (#1191) 2022-01-06 10:31:00 +01:00
Renovate Bot
e409e9e751 fix(deps): update dependency unleash-frontend to v4.4.1 2022-01-05 21:19:26 +00:00
Renovate Bot
be67023a65 chore(deps): update dependency jest to v27.4.7 2022-01-05 16:55:15 +00:00
Renovate Bot
2189394fab chore(deps): update dependency @babel/core to v7.16.7 2022-01-05 12:45:07 +00:00
Ivar Conradi Østhus
a12944b3cc
fix: downgrade faker to 5.5.3 2022-01-05 11:00:54 +01:00
renovate[bot]
e96c01e53e
fix(deps): update dependency helmet to v5 (#1215)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 10:03:04 +01:00
renovate[bot]
1dff025534
chore(deps): update dependency faker to v6 (#1227)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 10:02:03 +01:00
renovate[bot]
f70c139511
chore(deps): update dependency node-forge to v1 (#1228)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-01-05 10:01:39 +01:00
Renovate Bot
e814a5fd9a chore(deps): update dependency jest to v27.4.6 2022-01-05 02:37:57 +00:00
Renovate Bot
2478281521 chore(deps): update dependency @types/memoizee to v0.4.7 2022-01-04 14:03:51 +00:00
Renovate Bot
a20f5cdb77 chore(deps): update typescript-eslint monorepo to v5.9.0 2022-01-03 21:58:36 +00:00
Renovate Bot
c0ee93f9e2 chore(deps): update dependency eslint-plugin-import to v2.25.4 2022-01-03 03:56:57 +00:00
Renovate Bot
85d0a68efa chore(deps): update dependency lint-staged to v12.1.5 2022-01-03 01:15:43 +00:00
Renovate Bot
e7564e5f5e chore(deps): update dependency eslint to v8.6.0 2022-01-01 01:57:53 +00:00
Renovate Bot
4e0fd6cc6e chore(deps): update dependency @types/jest to v27.4.0 2021-12-30 23:47:12 +00:00
Renovate Bot
e8dbb0db98 chore(deps): update typescript-eslint monorepo to v5.8.1 2021-12-27 21:21:23 +00:00
Renovate Bot
0305afddc5 chore(deps): update dependency lint-staged to v12.1.4 2021-12-24 12:13:00 +00:00
Renovate Bot
9acec466c6 chore(deps): update dependency tsc-watch to v4.6.0 2021-12-22 04:26:35 +00:00
Renovate Bot
3a056c07c0 fix(deps): update dependency knex to v0.95.15 2021-12-22 02:49:17 +00:00
Renovate Bot
8cfc276487 chore(deps): update typescript-eslint monorepo to v5.8.0 2021-12-20 22:56:44 +00:00
Renovate Bot
897824179b chore(deps): update dependency lint-staged to v12.1.3 2021-12-18 12:28:50 +00:00
Renovate Bot
0e01cf3b28 chore(deps): update dependency eslint to v8.5.0 2021-12-18 02:26:54 +00:00
Renovate Bot
e37f35e89c chore(deps): update dependency ts-jest to v27.1.2 2021-12-16 18:42:46 +00:00
Renovate Bot
aa6ae7944c chore(deps): update typescript-eslint monorepo to v5.7.0 2021-12-14 02:55:33 +00:00
Renovate Bot
16c5b96f8c chore(deps): update dependency typescript to v4.5.4 2021-12-14 01:04:50 +00:00
Renovate Bot
ad8224f22f chore(deps): update dependency jest to v27.4.5 2021-12-13 22:16:28 +00:00
Renovate Bot
9f998a0ecb fix(deps): update dependency unleash-frontend to v4.4.0 2021-12-10 16:46:54 +00:00
Renovate Bot
db7c5aa240 chore(deps): update dependency ts-jest to v27.1.1 2021-12-10 12:26:41 +01:00
Renovate Bot
fc13052db0 chore(deps): update dependency jest to v27.4.4 2021-12-10 11:13:25 +01:00
Renovate Bot
6334486a7c chore(deps): update dependency typescript to v4.5.3 2021-12-10 02:07:57 +00:00
Renovate Bot
101c9ea75f chore(deps): update dependency eslint to v8.4.1 2021-12-07 05:19:47 +00:00
Renovate Bot
22dc142e86 chore(deps): update typescript-eslint monorepo to v5.6.0 2021-12-06 22:09:56 +00:00
Fredrik Oseberg
dbd01db7e1 fix: update frontend 2021-12-06 17:04:53 +01:00
Renovate Bot
5e1a733581 chore(deps): update dependency ts-jest to v27.1.0 2021-12-05 11:38:05 +00:00
Renovate Bot
99f314a888 chore(deps): update dependency prettier to v2.5.1 2021-12-04 19:09:50 +00:00
Renovate Bot
c1c7a91500 chore(deps): update dependency eslint to v8.4.0 2021-12-04 09:50:48 +00:00
Ivar Conradi Østhus
da4949163d fix: bump unleash-frontend to v4.3.0 2021-12-03 13:17:09 +01:00
Ivar Conradi Østhus
a3fe914519 chore: require json-schema 0.4.0 or higher 2021-12-03 13:17:09 +01:00
Fredrik Oseberg
f1c9c71110 chore: update frontend 2021-12-02 22:05:21 +01:00
Fredrik Oseberg
62afc52c9a chore: update frontend 2021-12-02 22:05:21 +01:00
Ivar Conradi Østhus
7d706260b2 fix: upgrade unleash-frontend to v4.3.0-beta.1 2021-12-02 22:05:21 +01:00
Renovate Bot
69383e17aa chore(deps): update dependency jest to v27.4.3 2021-12-01 17:43:08 +00:00
Renovate Bot
8d2f593883 chore(deps): update dependency jest to v27.4.2 2021-11-30 14:32:46 +00:00
Renovate Bot
b2dd2ad8eb chore(deps): update typescript-eslint monorepo to v5.5.0 2021-11-29 22:36:07 +00:00
Renovate Bot
d20fc54b80 chore(deps): update dependency jest to v27.4.0 2021-11-29 18:03:18 +00:00
renovate[bot]
5e195f0a50
chore(deps): update dependency lint-staged to v12 (#1104)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-27 09:26:11 +01:00
Ivar Conradi Østhus
c318ee919d
fix: correct version number for unleash-frontend 2021-11-26 15:48:38 +01:00
Ivar Conradi Østhus
a355f23b9f
fix: require json-schema v0.4.0 or later (#1135) 2021-11-26 15:45:30 +01:00
Renovate Bot
44e118be5e chore(deps): update dependency prettier to v2.5.0 2021-11-25 18:12:51 +00:00
renovate[bot]
99a2bae0f9
chore(deps): update dependency eslint-config-airbnb-typescript to v16 (#1109)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-23 13:02:54 +01:00
Renovate Bot
4c4c1de0fb chore(deps): update dependency eslint to v8.3.0 2021-11-21 13:23:48 +00:00
Renovate Bot
3052eb53fc chore(deps): update dependency @types/js-yaml to v4.0.5 2021-11-19 20:00:49 +00:00
Renovate Bot
01b2937a3d chore(deps): update dependency @types/jest to v27.0.3 2021-11-19 14:55:55 +00:00
Renovate Bot
af3057f40d chore(deps): update dependency source-map-support to v0.5.21 2021-11-19 14:04:23 +00:00
Renovate Bot
e395dedbf2 chore(deps): update dependency @types/uuid to v8.3.3 2021-11-18 02:11:43 +00:00
Renovate Bot
becec43c77 chore(deps): update dependency typescript to v4.5.2 2021-11-17 21:46:12 +00:00
Renovate Bot
3df90596c0 chore(deps): update typescript-eslint monorepo to v5.4.0 2021-11-15 21:12:09 +00:00
Renovate Bot
5d88555be9 fix(deps): update dependency db-migrate to v0.11.13 2021-11-15 18:31:16 +00:00
Ivar Conradi Østhus
d8478dd928
feat: clean up events (#1089)
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-11-12 13:15:51 +01:00
Ivar Conradi Østhus
5b748a3cfc
fix: upgrade unleash-frontend to v4.2.13 2021-11-12 13:14:54 +01:00
renovate[bot]
f2b3325d42
chore(deps): update dependency eslint-config-airbnb-base to v15 (#1098)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-11 14:04:45 +01:00
Renovate Bot
d22b8503fd chore(deps): update dependency eslint-plugin-import to v2.25.3 2021-11-10 10:49:42 +00:00
Renovate Bot
0b3c4fd613 fix(deps): update dependency knex to v0.95.14 2021-11-09 01:59:03 +00:00
renovate[bot]
6b30670ccb
chore(deps): update dependency eslint-config-airbnb-typescript to v15 (#1091)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-11-08 22:58:28 +01:00
Renovate Bot
ec5b854ec5 chore(deps): update typescript-eslint monorepo to v5.3.1 2021-11-08 21:25:25 +00:00
Renovate Bot
09eb689355 chore(deps): update dependency eslint to v8.2.0 2021-11-06 03:07:13 +00:00
Renovate Bot
b5848a0f3a chore(deps): update dependency eslint-config-airbnb-typescript to v14.0.2 2021-11-05 11:45:42 +00:00
Renovate Bot
ce16c5a77b fix(deps): update dependency unleash-frontend to v4.2.12 2021-11-04 19:58:04 +00:00
Renovate Bot
49c0ee7fcf fix(deps): update dependency knex to v0.95.13 2021-11-03 00:35:31 +00:00
Lennart
759b592d90
fix: update mime library method signature to 2.X (#1078)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-11-02 23:43:16 +01:00
Martin Lehmann
b47e228181
fix: be explicit when specifying time & replace moment with date-fns (#1072) 2021-11-02 15:13:46 +01:00
Renovate Bot
55bec22754 chore(deps): update typescript-eslint monorepo to v5.3.0 2021-11-01 20:10:20 +00:00
Ivar Conradi Østhus
2c15430d68
fix: bump unleash-frontend to v4.2.11 2021-10-28 14:26:17 +02:00
Renovate Bot
45c4665476 fix(deps): update dependency knex to v0.95.12 2021-10-28 00:22:53 +00:00
Renovate Bot
cedc96d315 chore(deps): update dependency lint-staged to v11.2.6 2021-10-26 23:05:06 +00:00
Martin Lehmann
607b2a6657
fix: use date-fns for date/time maths instead of (wrong) Date#setHours (#1070)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-10-26 20:13:30 +02:00
Renovate Bot
5e32403e93 chore(deps): update dependency lint-staged to v11.2.5 2021-10-26 14:24:20 +00:00
Renovate Bot
3aedd5298a chore(deps): update typescript-eslint monorepo to v5.2.0 2021-10-25 21:20:34 +00:00
Renovate Bot
1c8f142699 chore(deps): update dependency lint-staged to v11.2.4 2021-10-23 22:28:25 +00:00
Renovate Bot
95fe1bc91c chore(deps): update dependency eslint to v8.1.0 2021-10-23 03:02:34 +00:00
Renovate Bot
ab1e5f3f97 chore(deps): update dependency @types/js-yaml to v4.0.4 2021-10-23 01:29:24 +00:00
Renovate Bot
5169a0bcd3 chore(deps): update dependency ts-node to v10.4.0 2021-10-23 00:06:53 +00:00
Ivar Conradi Østhus
81217da7a8
fix: bump unleash-frontend to 4.2.10 2021-10-22 13:42:18 +02:00
Ivar Conradi Østhus
66a1d1b6cf
fix: bump unleash-frontend to 4.2.9 2021-10-21 22:36:48 +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
Renovate Bot
809f1acdbf chore(deps): update dependency ts-node to v10.3.1 2021-10-21 18:28:40 +00:00