1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/packages/unleash-api/test
Ivar 0cb45f110c Add support for aggregate_strategies in the API.
This commit changes the features-tables:
- drop columns 'strategy' and 'parameters'
- add column 'strategies' of type json.
- migrates existing strategy-mappings in to the new format.

The idea is that the 'strategies' column should contain a json-array
of strategy-configuration for the toggle:

```
[{
 "name" : "strategy1",
 "parameters": { "name": "vale" }
}]

```

To make sure to not break exiting clients the api is extended with a
mapping layer (adding old fields to the json-respons, and mapping
to the new format on create/update a feature toggle.

this commit is first step in solving #102
2020-02-20 08:30:27 +01:00
..
unit/helper Add support for aggregate_strategies in the API. 2020-02-20 08:30:27 +01:00
.eslintrc eslint config 2020-02-20 08:30:26 +01:00
databaseConfig.js Fix eslint complaining 2020-02-20 08:30:27 +01:00
eventApiSpec.js codemods 2020-02-20 08:30:26 +01:00
eventDifferTest.js Fix linting errors (#145) 2020-02-20 08:30:27 +01:00
featureApiSpec.js Add support for aggregate_strategies in the API. 2020-02-20 08:30:27 +01:00
featureArchiveApiSpec.js codemods 2020-02-20 08:30:26 +01:00
routerSpec.js codemods 2020-02-20 08:30:26 +01:00
specHelper.js Add support for aggregate_strategies in the API. 2020-02-20 08:30:27 +01:00
strategyApiSpec.js codemods 2020-02-20 08:30:26 +01:00