1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/services/state-service-export-v1.json
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

96 lines
1.8 KiB
JSON

{
"version": 1,
"features": [
{
"name": "this-is-fun",
"description": "",
"type": "release",
"project": "default",
"enabled": true,
"stale": false,
"strategies": [
{
"name": "default",
"parameters": {}
}
],
"variants": [],
"createdAt": "2021-03-08T11:39:39.780Z",
"lastSeenAt": null
},
{
"name": "this-is-not-fun",
"description": "",
"type": "operational",
"project": "default",
"enabled": true,
"stale": false,
"strategies": [
{
"name": "default",
"parameters": {}
}
],
"variants": [],
"createdAt": "2021-03-08T11:40:10.537Z",
"lastSeenAt": null
}
],
"strategies": [],
"projects": [
{
"id": "default",
"name": "Default",
"description": "Default project",
"createdAt": "2021-03-08T12:26:23.690Z"
}
],
"tagTypes": [
{
"name": "simple",
"description": "Used to simplify filtering of features",
"icon": "#"
}
],
"tags": [
{
"type": "simple",
"value": "hello"
},
{
"type": "simple",
"value": "goodbye"
},
{
"type": "simple",
"value": "something"
},
{
"type": "simple",
"value": "yesterday"
}
],
"featureTags": [
{
"featureName": "this-is-fun",
"type": "simple",
"value": "hello"
},
{
"featureName": "this-is-fun",
"type": "simple",
"value": "goodbye"
},
{
"featureName": "this-is-not-fun",
"type": "simple",
"value": "something"
},
{
"featureName": "this-is-not-fun",
"type": "simple",
"value": "yesterday"
}
]
}