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

179 Commits

Author SHA1 Message Date
Christopher Kolstad
f85f66d4f5
feat: add project and environment columns to events (#942)
* feat: add project and environment columns to events

* Added events for feature_strategy update

* fix duplicate test key for dbInit

* Fix argument list for toggleService calls in tests
2021-09-20 12:13:38 +02:00
Christopher Kolstad
37d6c4886a
Respect sort order when displaying strategies (#943) 2021-09-17 15:11:17 +02:00
Ivar Conradi Østhus
c4b697b57d
Feat/api key scoping (#941)
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-09-15 20:28:10 +02:00
Ivar Conradi Østhus
24b057ab6d
fix: lint error 2021-09-14 20:43:05 +02:00
Ivar Conradi Østhus
ab4744e79b
fix: convert schemas to typescript 2021-09-14 20:36:40 +02:00
Ivar Conradi Østhus
dedec5c7d1
fix: convert more tests to typescript 2021-09-14 20:30:37 +02:00
Ivar Conradi Østhus
80291dffcf
fix: convert api-def.js to tyoescript 2021-09-14 20:07:05 +02:00
Ivar Conradi Østhus
e2177da114
fix: convert xtract-user.js to typescript 2021-09-14 19:58:48 +02:00
Ivar Conradi Østhus
83bfcde934
fix: convert event-hook.test.js to typescript 2021-09-14 19:34:35 +02:00
Ivar Conradi Østhus
436f295dc5
fix: convert files to typescript 2021-09-14 19:30:11 +02:00
Ivar Conradi Østhus
d3b9bcb7be
fix: convert feature-schema.test.js to typescript 2021-09-14 12:41:22 +02:00
Fredrik Strand Oseberg
26c9d53b89
feat: Move environments to enterprise (#935)
- Adding, updating and renaming environments are meant to be
  enterprise only features, as such, this PR moves these operations out
  of this server

- We still keep sortOrder updating, toggling on/off and getting one,
  getting all, so we can still work with environments in the OSS version
  as well.

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

Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-09-13 15:57:38 +02:00
Ivar Conradi Østhus
90962434d9
fix: Cleanup new features API with env support (#929) 2021-09-13 10:23:57 +02:00
Ivar Conradi Østhus
5028bb6c60 fix: failing test 2021-09-10 12:25:12 +02:00
Ivar Conradi Østhus
dff86fcfff fix: add resetDb to migrator 2021-09-10 12:25:12 +02:00
Christopher Kolstad
559cad3c27 Set default SMTP port to 587 instead of 567
fixes: #937
2021-09-09 11:42:36 +02:00
Ivar Conradi Østhus
11640e882b fix: fine tune db-config based on experience 2021-09-03 12:57:25 +02:00
Ivar Conradi Østhus
635d50e1a8 fix: addon-service should only trigger enabled addons
fixes: #932
2021-09-02 12:46:29 +02:00
Ivar Conradi Østhus
c518ddf84c fix: improve performance for fetching active api tokens 2021-09-02 12:46:29 +02:00
Ivar Conradi Østhus
e8486612b6
fix: set correct projects count in metrics 2021-08-31 23:29:23 +02:00
Ivar Conradi Østhus
9b521de34e
fix: correct data format for FEATURE_CREATED event 2021-08-27 19:30:51 +02:00
Ivar Conradi Østhus
d0d49051ac
Revert "fix: oas being overriden"
This reverts commit e03bac9e64.
2021-08-27 12:08:26 +02:00
Ivar Conradi Østhus
e03bac9e64
fix: oas being overriden 2021-08-27 12:02:02 +02:00
Ivar Conradi Østhus
cecdd96863
fix: only add strategies to addon texts when available 2021-08-27 10:15:56 +02:00
Ivar Conradi Østhus
aab4602029
fix: add user and project counters 2021-08-27 10:10:14 +02:00
Ivar Conradi Østhus
14857b01c8
fix: import schema needs to understand :global: env 2021-08-26 22:42:06 +02:00
Ivar Conradi Østhus
56cd0d6912
fix: import should not drop built-in strategies 2021-08-26 22:41:51 +02:00
Ivar Conradi Østhus
d28df3e3fa
Fix/feature events (#924) 2021-08-26 13:59:11 +02:00
Ivar Conradi Østhus
8cb147a81f
fix: getFeatureToggleAdmin should include project 2021-08-25 15:14:07 +02:00
Fredrik Strand Oseberg
856c7a358b
Fix/switch project endpoint (#923) 2021-08-25 13:38:00 +02:00
Ivar Conradi Østhus
bb47c19d4d
fix: only update name if not undefined 2021-08-25 12:43:42 +02:00
Ivar Conradi Østhus
8cbf378286
feat: sync fields when logging in via SSO (#916) 2021-08-23 12:11:29 +02:00
Fredrik Strand Oseberg
cdc2e7daee
fix: add properties to legacy endpoints (#919)
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-19 13:34:24 +02:00
Ivar Conradi Østhus
d3fbaa6587
fix: add member and toggle count to project list (#918) 2021-08-19 13:25:36 +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