1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Commit Graph

2768 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
fc4adb9cf2 4.6.0-beta.7 2022-01-14 12:33:03 +01:00
Fredrik Oseberg
bd517d1d36 4.6.0-beta.6 2022-01-14 12:30:34 +01:00
Fredrik Oseberg
4b5da3f66c chore: update frontend 2022-01-14 12:30:34 +01:00
Thomas Heartman
e8a3d6e6f1
Merge pull request #1238 from Unleash/docs/custom-project-roles
docs: describe new custom project roles
2022-01-14 12:28:45 +01:00
Thomas Heartman
55a7cefc53 docs: add note about when the new configuration option was added. 2022-01-14 12:20:31 +01:00
sighphyre
dc920e85ba
Fix/add project events (#1267)
* fix: wip project events

* fix: Include deletion events for when a user is removed from a project role

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2022-01-14 12:14:02 +01:00
sighphyre
e164e3d835
Merge pull request #1266 from Unleash/feat/block-deletion-of-root-roles
fix: Prevent deletion of built in roles
2022-01-14 12:55:55 +02:00
Thomas Heartman
39e79c064f
Apply suggestions from code review
Co-authored-by: sighphyre <liquidwicked64@gmail.com>
2022-01-14 11:28:47 +01:00
Fredrik Strand Oseberg
1989c53fb0
fix: enable tags and validate for legacy api (#1264)
* fix: enable tags and validate for legacy api

* fix: move delete tag

* fix: test name

* fix: move /api/admin/features
2022-01-14 11:16:17 +01:00
Thomas Heartman
299afd97ff docs(chore): update images; remove empty space. 2022-01-14 11:09:32 +01:00
Thomas Heartman
7897ee2e87 docs: add how-to screenies for cpr 2022-01-14 10:59:18 +01:00
sighphyre
bfcad65cdc fix: Prevent deletion of built in roles 2022-01-14 10:30:34 +02:00
Ivar Conradi Østhus
c1826ca79a
fix: incorrect snapshot 2022-01-14 09:23:32 +01:00
Thomas Heartman
5f581f765e
Merge pull request #1263 from Unleash/docs/group-sdks
docs: group sdks into non-collapsible categories: server and client
2022-01-14 08:56:04 +01:00
Thomas Heartman
308f5ab4d3 docs: add new cpr permissions, update existing ones 2022-01-14 08:23:17 +01:00
Fredrik Oseberg
0d8a1e8cb9 4.6.0-beta.5 2022-01-13 18:16:49 +01:00
Fredrik Oseberg
793ec8ebbc chore: update frontend 2022-01-13 18:16:39 +01:00
Fredrik Oseberg
1766aa876a 4.6.0-beta.4 2022-01-13 14:44:55 +01:00
Fredrik Oseberg
b95e1d872e chore: update frontend 2022-01-13 14:44:45 +01:00
Fredrik Oseberg
5696b0fff7 4.6.0-beta.3 2022-01-13 11:17:30 +01:00
Fredrik Oseberg
ab51d23d19 4.6.0-beta.2 2022-01-13 11:17:12 +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
Thomas Heartman
9fbfc28a72 docs: add Rust SDK to sidebar list of official sdks. 2022-01-13 10:38:20 +01:00
Thomas Heartman
9e55752dcf docs(chore): standardize on the naming of the .NET sdk. 2022-01-13 10:36:24 +01:00
Thomas Heartman
bfd168689c docs(chore): sort the sdk list the same as the sidebar list. 2022-01-13 10:34:05 +01:00
kakakakakku
18c87cedf6 Fixed syntax error for Ruby SDK example 2022-01-13 09:59:51 +01:00
Thomas Heartman
b8f3313ae2 docs: group sdks into non-collapsible categories: server and client 2022-01-13 09:21:13 +01:00
Ivar Conradi Østhus
4a5b332567
fix: make sure our CSP allow gravatar.com for images 2022-01-12 23:22:04 +01:00
Thomas Heartman
211de55bb7 docs: add new disableLegacyFeaturesApi config option. 2022-01-12 14:20:45 +01:00
Thomas Heartman
d99602355e docs(chore): sort configuration options alphabetically. 2022-01-12 14:01:13 +01:00
Thomas Heartman
12e78663b0
Merge pull request #1260 from Unleash/rarruda-patch-1
Update ruby SDK capabilities
2022-01-12 10:56:19 +01:00
Thomas Heartman
5896b65087
Merge pull request #1259 from Unleash/docs/sort-sdks-sidebar
docs: sort SDKs sidebar
2022-01-12 10:55:54 +01:00
Renovate Bot
22f78e6745 chore(deps): update dependency supertest to v6.2.1 2022-01-12 03:08:00 +00:00
Renato Arruda
4de960188a
Update ruby SDK capabilities
Ruby sdk now supports remote_address strategy with CIDR syntax

Feature can be found in main branch, not in a release yet.
2022-01-11 22:44:14 +01:00
Thomas Heartman
6944688671
Merge pull request #1249 from Unleash/docusaurusVersionBump
Upgrade docusaurus to 2.0.0.beta.14 from beta.9
2022-01-11 10:53:36 +01:00
Thomas Heartman
4917287098 fix(docs): fix broken links to addons 2022-01-11 10:43:34 +01:00
Thomas Heartman
29ed242df6 docs(fix): add missing commas 2022-01-11 10:38:22 +01:00
Thomas Heartman
adec5aa25c docs: add redirect from old integrations url 2022-01-11 10:36:23 +01:00
Thomas Heartman
c3c7e1b4bb docs: update link to integrations 2022-01-11 10:35:25 +01:00
Thomas Heartman
b2a8bc1655 docs: reorder sdks listing in sidebar
The previous list order didn't seem to have any reason behind it. This
is a suggestion for new order.

Index (the introduction) is first, followed by the proxy. Then comes
all the official sdks in alphabetic order (punctuation placed before
alpha). At the end of the list is the 'community sdks' link.

I'm open to suggestions and discussion here, but was working on this
list, so thought it could use some love.
2022-01-11 10:07:24 +01:00
Thomas Heartman
ec2d6b6c5d
Merge pull request #1258 from Unleash/docs/move-community-sdks
docs: redirect old community SDKs url to new /sdks
2022-01-11 10:04:14 +01:00
Thomas Heartman
e1ba5f2e11 docs: reuse pre-existing redirect to /sdks 2022-01-11 09:53:06 +01:00
Thomas Heartman
eb89d4505d docs: add link to /sdks/community-sdks
This serves two purposes:
1. For people who know the structure, it won't look like anything's
missing
2. For people who don't know the structure, it'll make community sdks
more discoverable.
2022-01-11 09:22:30 +01:00
Thomas Heartman
f404c37f97 docs(chore): Update headings, slight sdk doc restructure. 2022-01-11 09:17:07 +01:00
Thomas Heartman
2488124ac6 docs(chore): add redirect from '/sdks/community' to '/sdks' 2022-01-11 09:17:07 +01:00
Renovate Bot
cc66cc4adf chore(deps): update dependency supertest to v6.2.0 2022-01-11 03:18:49 +00:00
Renovate Bot
ec62e62247 chore(deps): update node.js to v14.18.3 2022-01-11 01:51:18 +00:00
Renovate Bot
f10910bba1 chore(deps): update typescript-eslint monorepo to v5.9.1 2022-01-10 21:12:41 +00:00