From 83d4d101eda95267a5269f3f6fab881f9eabf1d6 Mon Sep 17 00:00:00 2001 From: Mor Paz Date: Tue, 30 Apr 2024 14:54:52 +0300 Subject: [PATCH] Bring back updates to updated LD integration mapping --- .../feature-management/launchdarkly.md | 70 +++++++++++++++++-- 1 file changed, 64 insertions(+), 6 deletions(-) diff --git a/docs/build-your-software-catalog/sync-data-to-catalog/feature-management/launchdarkly.md b/docs/build-your-software-catalog/sync-data-to-catalog/feature-management/launchdarkly.md index 34e3002901..2ae5cc55a0 100644 --- a/docs/build-your-software-catalog/sync-data-to-catalog/feature-management/launchdarkly.md +++ b/docs/build-your-software-catalog/sync-data-to-catalog/feature-management/launchdarkly.md @@ -483,11 +483,11 @@ resources: "calculationProperties": {}, "aggregationProperties": {}, "relations": { - "environments": { - "title": "Environments", - "target": "launchDarklyEnvironment", - "required": false, - "many": true + "project": { + "title": "Project", + "target": "launchDarklyProject", + "required": true, + "many": false } } } @@ -520,7 +520,7 @@ resources: customProperties: .customProperties archived: .archived relations: - environments: .environments | keys + project: .__projectKey ``` @@ -618,6 +618,64 @@ resources: +### Feature Flags In Environment + +
+Feature Flags In Environment Blueprint + +```json showLineNumbers + { + "identifier": "launchDarklyFFInEnvironment", + "description": "This blueprint represents a feature flag in LaunchDarkly Environment.", + "title": "Feature Flag In Environment", + "icon": "Launchdarkly", + "schema": { + "properties": {}, + "required": [] + }, + "mirrorProperties": {}, + "calculationProperties": {}, + "aggregationProperties": {}, + "relations": { + "environment": { + "title": "Environment", + "target": "launchDarklyEnvironment", + "required": false, + "many": false + }, + "featureFlag": { + "title": "Feature Flag", + "target": "launchDarklyFeatureFlag", + "required": false, + "many": false + } + } + } +``` +
+ +
+Integration configuration + +```yaml showLineNumbers + - kind: flag + selector: + query: "true" + port: + itemsToParse: .environments | keys + entity: + mappings: + identifier: .key + "-" + .item + title: .key + "-" + .item + blueprint: '"launchDarklyFFInEnvironment"' + properties: {} + relations: + environment: .item + featureFlag: .key +``` + +
+ ## Let's Test It This section includes a sample response data from Launchdarkly. In addition, it includes the entity created from the resync event based on the Ocean configuration provided in the previous section.