1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
Commit Graph

507 Commits

Author SHA1 Message Date
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