Commit Graph

73 Commits

Author SHA1 Message Date
Ivar Conradi Østhus 424d4e209e fix: introduce settingService 2021-04-22 22:54:08 +02:00
Ivar Conradi Østhus b33e8e23f0 fix: migration rollback use DROP for column 2021-04-22 22:30:08 +02:00
Ivar Conradi Østhus 15b1e5514f fix: skipLocked when updating lastSeen for toggles
(second attempt)

see: #795 for deatils.
2021-04-22 22:02:42 +02:00
Ivar Conradi Østhus b3d830617c fix: skipLocked when updating lastSeen for toggles 2021-04-22 20:18:49 +02:00
Christopher Kolstad 18f66ef732 feat: Add change-password endpoint to user-controller (#800)
fixes: #801 

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-04-22 16:05:59 +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 7776f3c940 Fix/strategies sort order (#798)
* feat: add sort order field to strageies
* feat: update strategy display name and description

Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-04-22 13:33:35 +02:00
Ivar Conradi Østhus 4b10356325 fix: only ADMIN can list all users 2021-04-22 12:13:41 +02:00
Ivar Conradi Østhus 05abb7e295 fix: enable demo-authentication (#796) 2021-04-22 10:53:47 +02:00
Ivar Conradi Østhus cc1b328b07 fix: default db SSL to undefined 2021-04-22 10:44:04 +02:00
Ivar Conradi Østhus a6eb64e5da fix: use db config with schema for db-migrate 2021-04-22 10:25:18 +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 4b65c44116 feat: add ui-bootstrap endpoint (#790)
* feat: add ui-bootstrap endpoint

- Reducing calls needed for frontend to 1 instead of the current 6

fixes: #789
2021-04-20 19:54:31 +02:00
Christopher Kolstad 4246baee16 feat: add ui-bootstrap endpoint (#790)
* feat: add ui-bootstrap endpoint

- Reducing calls needed for frontend to 1 instead of the current 6

fixes: #789
2021-04-20 12:32:02 +02:00
Ivar Conradi Østhus 332f1c4544 feat: expose user permissions (#791) 2021-04-20 09:58:23 +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 c45c19fedb fix: remove unused import 2021-04-15 22:23:04 +02:00
Ivar Conradi Østhus 06a7bb323c fix: fully remove enableLegacyRoutes option 2021-04-15 22:16:14 +02:00
Ivar Conradi Østhus 5214a7f88e fix: failing tests 2021-04-15 11:35:45 +02:00
Ivar Conradi Østhus 9f3ca73075 fix: expose auth-type in ui-config 2021-04-15 11:29:53 +02:00
Ivar Conradi Østhus 2c01fd088b fix: should only do checkRbac if it exists 2021-04-13 11:41:22 +02:00
Ivar Conradi Østhus 0eb132c025 feat: unleash v4 will require node 14 or higher (#784) 2021-04-13 09:22:37 +02:00
Ivar Conradi Østhus 469e87a923 fix: remove enableLegacyRoutes option from v2 2021-04-13 09:04:25 +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
Christopher Kolstad 99fd210392 feat: added basic email-service (#780)
* feat: added basic email-service
* feat: preview endpoint for plaintext/html templates
* chore: Updated docs
fixes: #757
2021-04-09 11:16:06 +02:00
Christopher Kolstad 2850052cc5 fix: Clear-Site-Data header needs to be double quoted 2021-04-06 16:09:09 +02:00
Ivar Conradi Østhus dfb890c638 Feat: Api-Tokens (#774)
fixes: #774
2021-03-29 19:58:11 +02:00
Ivar Conradi Østhus b6793d2957 fix: version-checker must have instanceId 2021-03-26 14:38:51 +01:00
Ivar Conradi Østhus 5d284e3ac9 fix: ensure createdBy is not empty 2021-03-26 13:57:01 +01:00
Christopher Kolstad acc39fe38d chore: another missing type 2021-03-26 12:35:14 +01:00
Christopher Kolstad f191d76737 chore: type argument missing 2021-03-26 12:34:37 +01:00
Christopher Kolstad 205ad921d4 Tags and tag types to ts (#772)
* chore: Converted tag-store and tag-type-store to ts

* chore: Converted tag service and tag type service to ts
2021-03-26 11:03:30 +01:00
Ivar Conradi Østhus ad04eeb9b5 fix: All migrations requires down step 2021-03-25 08:37:15 +01: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 7e7554c0ae fix: convert event-store to typescript (#768) 2021-03-23 08:46:01 +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
Christopher Kolstad 780464d3ad fix: delete duplicate client instances
- Due to applying a primary key constraint on app_name, instance_id,
  active installations with client_instances that have already violated
  this unique constraint will fail to migrate.
- This commit drops all but the latest instance of each (app_name,
  instance_id) tuple, thus preparing the database for applying the
  unique constraint

Co-authored-by: Ivar Conradi Osthus <ivarconr@gmail.com>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-03-19 11:56:57 +01:00
Ivar Conradi Østhus e3196675c9 fix: event tags does not need undefined guard
the default in the db is "[]" anayways.
2021-03-18 19:25:45 +01:00
Ivar Conradi Østhus 6d8ccaf88b fix: inital event.tags should be array type 2021-03-18 09:48:11 +01:00
Christopher Kolstad 3e2ec968f2 fix: always set instanceid in uiconfig 2021-03-15 08:46:28 +01:00
Christopher Kolstad 289cf85a3c Add import/export for tags and projects (#754)
* Add import/export for tags and projects

Tags includes (tags, tag-types and feature-tags)

fixes: #752
2021-03-12 11:08:10 +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
Ivar Conradi Østhus 40bde7c08b fix: projectId must follow nameType in query 2021-03-05 14:12:56 +01:00
Christopher Kolstad 9e649118e5 fix: publish events about unannounced applications
fixes: #747
2021-03-05 14:01:15 +01:00
Ivar Conradi Østhus f4aba80763 fix: messages to slack for archied toggles (#750)
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2021-03-05 12:59:35 +01:00
Christopher Kolstad 5c795bdaa7 fix: makes eventstore emit id and createdAt (#746)
fixes: #703
2021-03-04 14:08:53 +01:00
Christopher Kolstad 31082e5227 fix: don't use hardcoded timestamps as default values (#745)
fixes: #741
2021-03-04 13:43:52 +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