Skip to content

Commit 48dde9c

Browse files
committed
wip
1 parent b620532 commit 48dde9c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

website/docs/advanced/migration-from-launchdarkly.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ Let's see now step by step how to convert this code to ConfigCat:
254254
```
255255
256256
Please note that the ConfigCat client doesn't maintain a persistent connection to the remote server, but uses different
257-
polling strategies to get the data necessary for feature flag evaluation. Refer to the [SDK reference](../../sdk-reference/node#creating-the-configcat-client)
257+
polling strategies to get the data necessary for feature flag evaluation. Refer to the [SDK reference](../../sdk-reference/js/overview#creating-the-configcat-client)
258258
to learn more about the options. For frontend applications and long-running backend services, Auto Polling mode is
259259
usually a good choice.
260260
1. Adjust the wait-for-initialization logic.
@@ -274,7 +274,7 @@ Let's see now step by step how to convert this code to ConfigCat:
274274
the default value you pass to them.)
275275
276276
Actually, you only need this wait-for-initialization logic at the startup of your applications if you want to use
277-
[synchronous feature flag evaluation via snapshots](../../sdk-reference/node#snapshots-and-synchronous-feature-flag-evaluation).
277+
[synchronous feature flag evaluation via snapshots](../../sdk-reference/js/overview#snapshots-and-synchronous-feature-flag-evaluation).
278278
* For other polling modes, the wait-for-initialization logic doesn't make sense, so just omit it.
279279
1. Rewrite LaunchDarkly contexts to ConfigCat User Objects.
280280
@@ -283,7 +283,7 @@ Let's see now step by step how to convert this code to ConfigCat:
283283
but it's a simpler data structure.
284284
285285
To be able to convert a context data structure to a User Object one, you will need to do the following:
286-
* Read [the section on User Objects](../../sdk-reference/node#user-object) in the reference of the SDK for your
286+
* Read [the section on User Objects](../../sdk-reference/js/overview#user-object) in the reference of the SDK for your
287287
platform.
288288
* Read [this section](../migration-from-launchdarkly-translation#mapping-between-launchdarkly-contexts-and-configcat-user-objects)
289289
to learn how context paths are mapped to User Object attribute names.
@@ -313,14 +313,14 @@ Let's see now step by step how to convert this code to ConfigCat:
313313
* ConfigCat SDKs don't support [automatic camel casing](https://launchdarkly.com/docs/sdk/client-side/react/react-web#flag-keys-in-the-react-web-sdk)
314314
of feature flag keys.
315315
* In statically typed languages, ConfigCat evaluation methods require that the default value type and the feature
316-
flag type match. (Usually, there is [a section about this](../../sdk-reference/node#setting-type-mapping) in the
316+
flag type match. (Usually, there is [a section about this](../../sdk-reference/js/overview#setting-type-mapping) in the
317317
SDK reference.)
318318
* Please be extra careful when evaluating number type feature flags. ConfigCat distinguishes between integer and
319319
decimal number feature flags. The former must be evaluated using `getValue<int>`, `getIntValue` or similar, while
320320
the latter must be evaluated using `getValue<double>`, `getDoubleValue` or similar. (JavaScript-based SDKs don't
321321
have this issue, but you can run into it in other languages.)
322322
* On some platforms, the ConfigCat client provides asynchronous evaluation methods only. In such cases, synchronous
323-
feature flag evaluation is usually still possible, [via snapshots](../../sdk-reference/node#snapshots-and-synchronous-feature-flag-evaluation).
323+
feature flag evaluation is usually still possible, [via snapshots](../../sdk-reference/js/overview#snapshots-and-synchronous-feature-flag-evaluation).
324324
But this works slightly differently from the asynchronous methods, so make sure you understand its behavior and
325325
possible pitfalls.
326326

website/docs/targeting/feature-flag-evaluation.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ The result of the condition will be `cannot evaluate` in case the comparison att
4242

4343
Using the same User Object used to evaluate the dependent flag, the SDK evaluates the prerequisite flag (the feature flag referenced by the condition). Then, the result is checked against the comparator. In case the prerequisite flag is not a boolean setting, the result is compared to the comparison value that is set on the Dashboard. The comparison results in a `true` or `false` value. This will be the result of the condition.
4444

45-
In case the prerequisite flag is missing or there is a type mismatch between the return value and the comparison value, the evaluation process stops, and the SDK will return the [default value](../targeting-overview#default-value). (Though this can happen only when using the [flag overrides](../../sdk-reference/js#flag-overrides) feature with invalid data.)
45+
In case the prerequisite flag is missing or there is a type mismatch between the return value and the comparison value, the evaluation process stops, and the SDK will return the [default value](../targeting-overview#default-value). (Though this can happen only when using the [flag overrides](../../sdk-reference/js/overview#flag-overrides) feature with invalid data.)
4646

4747
### Evaluation of a Segment Condition
4848

4949
The SDK looks up the segment referenced by the condition and evaluates the condition described by the segment similarly to [User Conditions](../targeting-rule/user-condition). Then, the result is checked against the comparator. In the case of `IS IN SEGMENT` the result of the Segment Condition will be the same as the result of the segment. The result will be negated in the case of `IS NOT IN SEGMENT`.
5050

5151
If the segment evaluates to `cannot evaluate`, so is the Segment Condition.
5252

53-
The evaluation process stops if the referenced segment is missing, and the SDK will return the [default value](../targeting-overview#default-value). (Though this can happen only when using the [flag overrides](../../sdk-reference/js#flag-overrides) feature with invalid data.)
53+
The evaluation process stops if the referenced segment is missing, and the SDK will return the [default value](../targeting-overview#default-value). (Though this can happen only when using the [flag overrides](../../sdk-reference/js/overview#flag-overrides) feature with invalid data.)
5454

5555
## Evaluation of Percentage Options
5656

0 commit comments

Comments
 (0)