Commit Graph

171 Commits

Author SHA1 Message Date
Ivar Conradi Østhus 9050dfb36b fix: adjust logo in emails 2021-08-16 10:55:06 +02:00
Ivar Conradi Østhus bb9ae03b27 Revert "fix: uri encode smtp connection string (#901)"
This reverts commit 8f1a5f5a64.
2021-08-16 10:24:28 +02:00
Ivar Conradi Østhus 721baa7657 fix: Clean up exported types even more 2021-08-13 19:22:15 +02:00
Ivar Conradi Østhus aaa5e056e5 fix: exported types x2 2021-08-13 13:51:29 +02:00
Ivar Conradi Østhus 1f9d31ea17 fix: export types from main entry 2021-08-13 13:42:08 +02:00
Christopher Kolstad 45f5d1fb1a feat: Adds sendEmail flag to body of create user request (#894)
This allows frontend to support a toggle for admins wanting to create
users and passwords manually, without sending emails to users they
create.

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-13 10:50:48 +02:00
Ivar Conradi Østhus 2bcdb5ec31 fix: Controller wraps handler with try/catch (#909)
By having the controller perform try/catch around the
handler function allows us to add extra safety to all
our controllers and safeguards that we will always catch
exceptions thrown by a controller method.
2021-08-13 10:36:19 +02:00
Ivar Conradi Østhus 5760d10e70 Revert "fix: upgrade js-yaml to 4.1.0"
This reverts commit 4852d67049.
2021-08-12 23:00:47 +02:00
Ivar Conradi Østhus 4852d67049 fix: upgrade js-yaml to 4.1.0 2021-08-12 22:47:44 +02:00
James Renaud 8f1a5f5a64 fix: uri encode smtp connection string (#901)
Signed-off-by: James Renaud <james.renaud@mitel.com>

Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-12 22:32:16 +02:00
Christopher Kolstad ff7be7696c fix: Stores as typescript and with interfaces. (#902)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-12 15:04:37 +02:00
Ivar Conradi Østhus 806b4a4a59 fix: failing tests 2021-08-10 13:50:59 +02:00
Christopher Kolstad 9646bcfebb fix: only import feature_tags for imported features 2021-07-30 13:38:28 +02:00
Ivar Conradi Østhus 0ff89ebdf3 fix: logout-controller should support logoutUrl override (#881) 2021-07-18 21:42:36 +02:00
Fredrik Oseberg 72993002a2 fix: always add global environment to new projects 2021-07-14 13:20:36 +02:00
Fredrik Oseberg 45fdd6e2f6 fix: return empty array if no features are found for project 2021-07-14 13:17:20 +02:00
Ivar Conradi Østhus 815a75a5b4 Wip/environments (#880)
Adds environment support

This PR adds environments as a first-class concept in Unleash.

It necessitated a full rewrite on how we connect feature <-> strategy, as well as a rethink on which levels environments makes sense.

This enables PUTs on strategy configurations for a feature, since all strategies now have ids.

This also updates export/import format. The importer handles both formats, but export is no longer possible in version 1 of the export format, only in version 2, with strategy configurations for a feature as a separate object.

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-07-07 10:46:50 +02:00
checketts 2f013bacbf chore: Convert client metrics controller to typescript (#831)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-06-24 19:22:12 +02:00
Christopher Kolstad eeeedbe65c Added cascade to user_feedback foreign key 2021-06-18 12:17:09 +02:00
Ivar Conradi Østhus 2da26e7f14 fix: refactor code 2021-06-18 11:53:52 +02:00
Ivar Conradi Østhus 4f9deee2ed fix: add option for graceful shutdown (#872)
* fix: add option for graceful shutdown

* fix: gracefulShutdown should close idle keep-alive connections

* fix: eslint import order

* docs: add config options to docs as well
2021-06-17 20:33:34 +02:00
Ivar Conradi Østhus 6c2ec59fa4 fix: Do gracefull shutdown of Unleash on 'SIGINT' & 'SIGTERM' (#870)
Unleash will listen for 'SIGINT' & 'SIGTERM'  and close background tasks and db connections before shutting down. 

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-06-15 12:32:35 +02:00
Ivar Conradi Østhus bef375e7bf fix: userFeedback should not be allowed to throw 2021-06-08 20:21:14 +02:00
Ivar Conradi Østhus 8e3e973f22 fix: make sure routes/user handles api calls 2021-06-08 20:15:03 +02:00
Fredrik Strand Oseberg 9f33285b03 Feat/pnps feedback (#862)
* feat: setup user feedback service

* fix: map rows

* feat: add tests

* wrap service calls in try catch

* fix: add test for retrieving feedback on user

* feat: add fake user feedback store

* fix: check ffor feedback id in controller

* feat: add test for bad request
2021-06-07 11:11:42 +02:00
Ivar Conradi Østhus 3858b29d80 fix: register metrics middleware before pre-hook (#866) 2021-06-07 10:34:32 +02:00
Fredrik Oseberg 4e55cd52cd fix: remove secure headers from server-dev 2021-05-31 18:13:29 +02:00
Ivar Conradi Østhus d92e826156 fix: disable version service in tests 2021-05-28 13:10:46 +02:00
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 14a7d1b3b2 fix: create config should allow all options params 2021-05-25 12:48:37 +02:00
Ivar Conradi Østhus b89bf03d1f fix: upgrade faker to version 5.5.3 2021-05-21 19:30:57 +02:00
Ivar Conradi Østhus e095691c1e fix: lint 2021-05-21 19:16:08 +02:00
Ivar Conradi Østhus 8300482e1c fix: update yarn.lock 2021-05-21 16:51:13 +02:00
Fredrik Strand Oseberg ee1715d86a fix: add migration (#847)
* fix: add migration

* fix: add empty down migration
2021-05-21 14:12:29 +02:00
Fredrik Strand Oseberg 911fa35158 Refactor/update email (#848)
* fix: update email template for invited user

* fix: fix styling

* fix: update logo on reset password email

* fix: update reset-password copyright
2021-05-21 14:05:16 +02:00
Ivar Conradi Østhus bcc2d913cc fix: more docs 2021-05-18 13:22:28 +02:00
Ivar Conradi Østhus 1691efbcae fix: remove errornered envrionment=test 2021-05-11 15:10:14 +02:00
Ivar Conradi Østhus f57e056368 fix: versionInfo as part of ui-config 2021-05-11 14:59:38 +02:00
Christopher Kolstad 171b5182a5 fix: misunderstanding node URL api 2021-05-11 14:43:41 +02:00
Christopher Kolstad 69ded61448 fix: demo auth type should support api token 2021-05-11 14:15:15 +02:00
Ivar Conradi Østhus 178087a0ac fix: convert to typescript 2021-05-11 12:29:28 +02:00
Fredrik Strand Oseberg 52d3e9eb77 fix: report email as not sent to fe if it throws (#844) 2021-05-11 12:15:20 +02:00
Ivar Conradi Østhus c859566dab feat: drop unleash cli support from v4 2021-05-10 13:37:39 +02:00
Christopher Kolstad 13af1cf9ab Updated addon feature links for browserrouter 2021-05-07 14:05:42 +02:00
Christopher Kolstad 5330126a2e fix: update slack link after switch to browserrouter 2021-05-07 14:03:15 +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
Christopher Kolstad b0845adee8 fix: rbac now checks permission for both projects (#838)
- When updating a toggle
   - If the project is updated, the user performing the operation
     will need UPDATE_FEATURE permission for both old and new project

fixes: #837
2021-05-05 22:32:25 +02:00
Christopher Kolstad 40a358ac78 fix: an hour is 3600000 seconds not 60000 seconds 2021-05-05 14:56:09 +02:00