andreas-unleash
5e2d96593a
sort feature strategies by created_at first and then sort_order ( #2116 )
...
* sort feature strategies by created_at first and then sort_order
* fix sorting
2022-09-30 12:50:00 +03:00
sjaanus
84a932043e
Remove joins ( #1898 )
2022-08-10 06:56:57 +00:00
Tymoteusz Czech
25fdefc4d1
Strategy sort order endpoint ( #1855 )
...
* strategy sort order endpoint
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
* feat: add e2e test for happy path
* add tests to features strategies order
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
* feat: add tests for sort-order
* fix: update snapshot
* fix: lint
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2022-07-26 14:16:30 +02:00
sjaanus
b9c95c5272
Fix full outer joins to left joins ( #1856 )
2022-07-26 08:02:28 +00:00
sellinjaanus
04fb065df4
Added missing archivedAt to featureSchema ( #1779 )
...
* Added missing archivedAt to featureSchema
* Added archivedAt to feature toggle.
Added archived_at to db
* Add test
* Add test
* Bug fix
* Bug fix
* update archivedAt to date-time
* Code refactoring done
* Conver to static and remove unused methods
* Add tests
* Fixes
* Fix
* Removed docker file from linting
* Fix segment test
* Fix failing test
* Make fixes
Co-authored-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com>
2022-07-01 11:51:26 +00:00
olav
b2b0958573
fix: ensure that param values from /api/admin/features are strings ( #1761 )
...
* refactor: improve parameter value string casting
* fix: ensure that param values from /api/admin/features are strings
2022-06-29 10:11:34 +02:00
olav
ee35c7ad74
refactor: replace ts-ignore with ts-expect-error ( #1675 )
...
* refactor: replace ts-ignore with ts-expect-error
* refactor: remove unused ts-expect-errors
2022-06-07 11:49:17 +02:00
Tymoteusz Czech
0f272680ee
fix: project environments order ( #1599 )
2022-05-23 08:52:50 +00:00
andreas-unleash
1a27bffe4d
Complete open api schemas for project features controller ( #1563 )
...
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* revert
* revert
* revert
* revert
* revert
* mapper
* revert
* revert
* revert
* remove serialize-dates.ts
* remove serialize-dates.ts
* remove serialize-dates.ts
* remove serialize-dates.ts
* remove serialize-dates.ts
* revert
* revert
* add mappers
* add mappers
* fix pr comments
* ignore report.json
* ignore report.json
* Route permission required
Co-authored-by: olav <mail@olav.io>
2022-05-18 16:17:09 +03:00
olav
56615e91f0
fix: validate the type and length of parameter values ( #1559 )
...
* refactor: coerce primitive types in OpenAPI requests
* refactor: avoid broken array args to serializeDates
* refactor: avoid some spec refs to improve generated types
* refactor: remove debug logging
* refactor: fix IExpressOpenApi interface name prefix
* refactor: ensure that parameter values are strings
* refactor: test that parameter values are coerced to strings
2022-05-04 15:16:18 +02:00
olav
66d9d7a6d2
feat: add segments ( #1426 )
...
* refactor: fix missing tsconfig path in .eslintrc
* refactor: require contextName and operator
* refactor: fix crash on missing feature strategies
* feat: add segments schema
* feat: add segments client API
* feat: add segments permissions
* refactor: fail migration if things exist
* refactor: remove strategy IDs from responses
* refactor: allow empty description
* refactor: add segment import/export
* refactor: add perf scripts
* refactor: add get segment fn
* refactor: move constraint validation endpoint
* refactor: use a separate id for segment updates
* refactor: use PERF_AUTH_KEY for artillery
* refactor: adjust segment seed size
* refactor: add missing event data await
* refactor: improve method order
* refactor: remove request body limit override
2022-03-29 14:59:14 +02:00
Fredrik Strand Oseberg
6520aa1b0c
Feat/impression data ( #1310 )
...
* feat: add impression data column
* fix: add default value to impressionData
* fix: allow client api to return impressionData
* fix: add tests for impressionData
* fix: reset server-dev
* fix: add test for adding a toggle with impression data on a different project
* fix: update tests
2022-02-03 11:06:51 +01:00
Christopher Kolstad
791384ddb1
Fix/variants ordering ( #1187 )
...
* fix: sort variants on output
We found that for existing variants, the sorting by name wasn't applied, so the index in the patches were wrong. This PR adds the sort also when we're getting variants as part of the getFeature call, not just when we're getting the variants. This should make the UX consistent, and prevent our patches from hitting the wrong index in the variants array.
Co-authored-by: Youssef Khedher <khedher.youssef@hotmail.fr>
2021-12-15 14:20:32 +01:00
Christopher Kolstad
72092e4a1c
fix: make new variant api validate name uniqueness ( #1126 )
2021-11-24 14:22:28 +01:00
Christopher Kolstad
26407cc02e
Fix/feature strategies needs project update ( #1040 )
...
* Make sure feature_strategies follow feature to new project
2021-10-19 09:49:43 +02:00
Fredrik Strand Oseberg
12245664ad
fix: add sort order to environments ( #1004 )
...
* fix: add sort order to environments
* fix: lint
* fix: remove display name
2021-10-06 09:39:59 +02:00
Christopher Kolstad
c870b33ba6
task: remove displayName from environments ( #988 )
...
This will require a change in enterprise as well.
2021-09-29 10:23:43 +02:00
Christopher Kolstad
62b0bcbdc4
fix: Added displayName to feature environments
2021-09-23 16:25:24 +02:00
Christopher Kolstad
e7b948e9db
Add type to environments
...
- Now returns type as part of the environment object when requesting
a feature
2021-09-23 16:16:31 +02:00
Christopher Kolstad
37d6c4886a
Respect sort order when displaying strategies ( #943 )
2021-09-17 15:11:17 +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
dff86fcfff
fix: add resetDb to migrator
2021-09-10 12:25:12 +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
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
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
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