Commit Graph

2741 Commits

Author SHA1 Message Date
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
Fredrik Oseberg 0d8a1e8cb9 4.6.0-beta.5 v4.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 v4.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 v4.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 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
Thomas Heartman d9eadfc7c9 Merge pull request #1250 from Unleash/docs/move-rust-sdk-to-official-sdks
docs: move Rust SDK to list of official SDKs
2022-01-10 15:09:38 +01:00
Thomas Heartman d2369b5a69 docs(chore): sort SDK lists alphabetically 2022-01-10 15:00:10 +01:00
Thomas Heartman d785b25a80 docs(chore): move Rust sdk from community to official listing
Also sorts the list of SDKs by name.
2022-01-10 14:56:43 +01:00
Thomas Heartman c3d78bc028 docs: delete /sdks/community page
This page was more or less a duplicate of the final section of the
SDK overview. I've moved the section on implementing your own SDK into
the SDK overview instead.
2022-01-10 14:53:41 +01:00
Renovate Bot 145a587d62 fix(deps): update dependency @svgr/webpack to v6.2.0 2022-01-10 11:39:38 +00:00
Christopher Kolstad 76d590d009 Upgrade docusaurus to 2.0.0.beta.14 from beta.9 2022-01-10 11:39:55 +01:00
Renato Arruda c85c710327 Update the default metrics interval for Ruby SDK (#1247)
Note that the new metrics interval (60s) is only in master and a release with the new value is not yet created.
2022-01-08 11:51:19 +01: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
Thomas Heartman abc3867070 Merge pull request #1243 from Unleash/docs/import-polish
docs: restructure startup import section to group actions by intent
2022-01-07 10:33:03 +01:00
Thomas Heartman 5573af675e docs: restructure startup import section to group actions by intent
This groups ways of importing together and ways of dropping together
instead of grouping the instructions by whether they use env variables
or command line options.

Should (?) make it easier to find what you want, but most importantly:
means we only need to explain the database drops once.
2022-01-07 08:03:49 +01:00
Ivar Conradi Østhus b1a2f110c6 chore: reduce test time-complexity 2022-01-06 21:26:53 +01:00
Ivar Conradi Østhus 73685c771a fix: allow static assets from cdn.getunleash.io 2022-01-06 21:08:16 +01:00
Ivar Conradi Østhus 571dcf5d1c 4.5.1 v4.5.1 2022-01-06 20:46:04 +01: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
Thomas Heartman 2a10df0498 Merge pull request #1236 from Unleash/docs/startup-import-for-docker
docs: add information on using env vars for startup imports.
2022-01-06 14:23:45 +01:00