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

48 Commits

Author SHA1 Message Date
Christopher Kolstad
3a65847aa7
Migrate to jest (#854)
* Migrate to jest
* Use --force-exit until dns close handle issue https://github.com/facebook/jest/issues/9982

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-05-28 11:10:24 +02:00
Ivar Conradi Østhus
f9ef945404
fix: projects needs at least one owner 2021-05-25 19:28:29 +02:00
Ivar Conradi Østhus
b89bf03d1f
fix: upgrade faker to version 5.5.3 2021-05-21 19:30:57 +02:00
Christopher Kolstad
171b5182a5 fix: misunderstanding node URL api 2021-05-11 14:43:41 +02:00
Christopher Kolstad
0086580130 fix: reset-token-service should use unleashUrl 2021-05-07 10:38:41 +02:00
Christopher Kolstad
5565dd8c4b
chore: expose an endpoint to really delete a toggle (#808)
* chore: expose an endpoint to really delete a toggle

- To provide a way to run end-to-end tests without cluttering
  our demo instance with way too many feature-toggles, making this
  endpoint available will allow end-to-end tests to clean up properly
  after themselves
2021-05-06 14:11:56 +02:00
Ivar Conradi Østhus
37d701a121
fix: reload of admin/api page yields 404
fixes: #836
2021-05-05 09:01:39 +02:00
Ivar Conradi Østhus
01ab4e1604
feat: global events requires admin role 2021-05-04 22:11:30 +02:00
R Ashwin
d61c7242d8
feat: Datadog integration (#820)
fixes: #815 

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-05-03 22:08:14 +02:00
Ivar Conradi Østhus
4b48c08e0e
fix: move permission to types 2021-05-02 20:58:02 +02:00
Fredrik Strand Oseberg
e22c7c8b37
Feat/serve frontend with baseuri (#824)
* chore: update changelog

* chore: update changelog

* feat: format asset paths and insert baseUri in html

* feat: add tests

* feat: pass dependencies to pre router hook

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-04-30 15:31:54 +02:00
Ivar Conradi Østhus
0efc238fdb
fix: define root role by setting the name of the role (#823) 2021-04-30 13:25:24 +02:00
Christopher Kolstad
bbb714bf5f
fix: default custom auth hook now denies all requests to api endpoints (#811)
* fix: default custom auth hook now denies all requests to api endpoints
* fix: add link to documentation in customAuth error message
2021-04-29 15:18:58 +02:00
Christopher Kolstad
7cbe6bfcc1
fix: deletes sessions for user when user is removed (#810) 2021-04-29 10:54:11 +02:00
Ivar Conradi Østhus
df2e23c282
fix: refactor event types 2021-04-29 10:21:29 +02:00
Ivar Conradi Østhus
88a56b8569
fix: move AuthenticationRequired to types 2021-04-29 09:57:45 +02:00
R Ashwin
6c57aeb232
feat: Teams addon for messaging on Microsoft teams (#814) 2021-04-28 12:38:11 +02:00
Ivar Conradi Østhus
8c4a6a1e18
fix: set default DATABASE_SSL to not rejectUnauthorized (#817) 2021-04-28 10:55:11 +02:00
Ivar Conradi Østhus
886e0bb008
feat: add user create/update/delete events (#807) 2021-04-27 20:47:11 +02:00
Christopher Kolstad
d0b17af770
fix: handle password being undefined when validating (#809) 2021-04-27 15:35:10 +02:00
Christopher Kolstad
578078e03f
fix: active sessions are now destroyed if auth/reset and auth/validate endpoints are used (#806) 2021-04-27 09:16:44 +02:00
Ivar Conradi Østhus
bedb28d55a
fix: correct test data 2021-04-26 11:51:53 +02:00
Christopher Kolstad
c729f514cf
fix: make users emails case-insensitive (#804) 2021-04-23 15:30:23 +02:00
Ivar Conradi Østhus
b406d3c7cf
fix: should allow revive toggles 2021-04-23 13:29:24 +02:00
Ivar Conradi Østhus
709d12a1dc
fix: hasPermission should not throw 2021-04-23 12:52:29 +02:00
Fredrik Strand Oseberg
c58612fc8f
Feat/add new user email (#793)
* feat: send email when adding a new user

* fix: rename method

* fix: create welcome email

* fix: update email templates

* fix: add name to templates

* refactor: reduce database calls to one

* fix: alter tests

* fix: remove console logs
2021-04-23 10:58:47 +02:00
Ivar Conradi Østhus
b0e6d8c363
fix: User should require a ID field set (#799) 2021-04-22 23:40:52 +02:00
Ivar Conradi Østhus
185091174f
fix: convert AUTH_TYPE to uppercase (#797)
Make sure we support both `AUTH_TYPE=demo` and `AUTH_TYPE=DEMO`

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-04-22 15:04:08 +02:00
Christopher Kolstad
240c6a77a1
Feat/options need types (#794)
feat: options are now typed

- This makes it easier to know what to send to unleash.start / unleash.create
- Using a Partial to instantiate the config, then melding it with defaults to get a config object with all fields set either to their defaults or to whatever is passed in.


Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-04-22 10:07:10 +02:00
Christopher Kolstad
b55c85783b
Reset token (#786)
feat: Add Reset token functionality

This allows admin users to create a reset token for other users. Thus allowing resetting their password.

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>

fixes: #778
2021-04-16 15:29:23 +02:00
Ivar Conradi Østhus
23ea21babf
fix: rename rbac roles. (#788)
* fix: rename rbac roles.

Root-roles:
- Admin
- Editor
- Viewer

Project roles:
- Owner
- Member

* Update src/lib/services/access-service.ts

* Update src/migrations/20210415173116-rbac-rename-roles.js

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-04-16 10:45:15 +02:00
Ivar Conradi Østhus
9e7d2f845a
fix: migrate all permissions to rbac (#782)
* fix: migrate all permissions to rbac
* fix: update migration guide

fixes #782
2021-04-12 20:25:03 +02:00
Ivar Conradi Østhus
9bd425c193
feat: Add username/password authentication (#777) 2021-04-09 13:46:53 +02:00
Ivar Conradi Østhus
dfb890c638
Feat: Api-Tokens (#774)
fixes: #774
2021-03-29 19:58:11 +02:00
Christopher Kolstad
2e13bb9368
Make sure we keep the announced status of each app (#770)
* Make sure we keep the announced status of each app

- Since we were running onConflict().merge() we were keeping our entire
  new object from our remapRow method, and that was overwriting the
  current announcement status of the row back to false, unless we'd by
  random chance actually set the announced property on our row to be
  inserted.
* Add migration for cleaning up application-created events
-
fixes: #769
2021-03-23 12:43:33 +01:00
Ivar Conradi Østhus
9bd23dc735
fix: Make e2e test more stable (#767)
make sure we destroy all the stores which should also cancel
any background work they have for the database.
2021-03-19 22:25:21 +01:00
Ivar Conradi Østhus
6d8ccaf88b
fix: inital event.tags should be array type 2021-03-18 09:48:11 +01:00
Ivar Conradi Østhus
e1fbe9d013
feat: Default roles and RBAC permission checker. (#735)
This PR Introduces first steps towards RBAC according to our specifications. Rbac will assume users to exist in the Unleash user table with a unique id. This is required to make correct mappings between users and roles.
2021-03-11 22:51:58 +01:00
Christopher Kolstad
9e649118e5
fix: publish events about unannounced applications
fixes: #747
2021-03-05 14:01:15 +01:00
Christopher Kolstad
5c795bdaa7
fix: makes eventstore emit id and createdAt (#746)
fixes: #703
2021-03-04 14:08:53 +01:00
Fredrik Strand Oseberg
8e0bae7352
feat/return feature on create (#742)
* feat: return feature on create

* refactor: change test to verify returning object

* fix: return undefined instead of null
2021-03-04 13:28:31 +01:00
Christopher Kolstad
4808eb32ff
feat: add support for bulk operations on client apps/instance registr… (#744)
* feat: add support for bulk operations on client apps/instance registration
-- stores client registrations for 5 seconds, then runs distinct and inserts them into db

fixes: #732
2021-03-04 12:54:13 +01:00
Ivar Conradi Østhus
55dd2ed72b
fix: project id should be validated correctly on create 2021-02-24 13:24:28 +01:00
Christopher Kolstad
7be884637f
fix: make sure test-data is urlsafe 2021-02-24 12:29:42 +01:00
Clint Checketts
5f83fbc43d chore: Add eslint rules and fix strings to pass rules 2021-02-22 22:20:10 -07:00
Ivar Conradi Østhus
b17e9a4bda
feat: Introduce specific "feature stale" events (#727)
fixes: #776
2021-02-18 09:18:04 +01:00
Christopher Kolstad
d017ec7cdc
feat: add db-session store (#722)
* Moves to db managed sessions.
2021-02-18 09:03:21 +01:00
Fredrik Strand Oseberg
c1aab06798
Feature/setup typescript
This sets up the typescript compiler.

Allowing gradual migration to typescript.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
Co-authored-by: Fredrik Oseberg <fredrik.oseberg@getunleash.ai>
Co-authored-by: Clint Checkett <clintchecketts@churchofjesuschrist.org>

fixes: #676
2021-02-12 11:42:00 +01:00