Skip to content

Commit 043bdc5

Browse files
committed
chore: Enable FDv2 public experimental support.
1 parent 5fe3ca7 commit 043bdc5

13 files changed

+27
-35
lines changed

pkgs/sdk/server/src/Components.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,6 @@ public static StreamingDataSourceBuilder StreamingDataSource() =>
490490
/// <see cref="ConfigurationBuilder.DataStore"/> in the configuration.
491491
/// </summary>
492492
/// <returns>a configuration builder</returns>
493-
/// TODO: SDK-1678: Internal until ready for use.
494-
internal static DataSystemModes DataSystem() => new DataSystemModes();
493+
public static DataSystemModes DataSystem() => new DataSystemModes();
495494
}
496495
}

pkgs/sdk/server/src/Configuration.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ public class Configuration
124124
/// It is not suitable for production usage. Do not use it. You have been warned.
125125
/// </para>
126126
/// </summary>
127-
/// TODO: SDK-1678: Internal until ready for use.
128-
internal DataSystemBuilder DataSystem { get; }
127+
public DataSystemBuilder DataSystem { get; }
129128

130129
#endregion
131130

pkgs/sdk/server/src/ConfigurationBuilder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,7 @@ public ConfigurationBuilder WrapperInfo(WrapperInfoBuilder wrapperInfo)
420420
/// </remarks>
421421
/// <param name="dataSystemBuilder">the data system builder</param>
422422
/// <returns>the same builder</returns>
423-
/// TODO: SDK-1678: Internal until ready for use.
424-
internal ConfigurationBuilder DataSystem(DataSystemBuilder dataSystemBuilder)
423+
public ConfigurationBuilder DataSystem(DataSystemBuilder dataSystemBuilder)
425424
{
426425
_dataSystem = dataSystemBuilder;
427426
return this;

pkgs/sdk/server/src/Integrations/DataSystemBuilder.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ namespace LaunchDarkly.Sdk.Server.Integrations
1111
/// It is not suitable for production usage. Do not use it. You have been warned.
1212
/// </para>
1313
/// </summary>
14-
internal sealed class DataSystemBuilder
14+
public sealed class DataSystemBuilder
1515
{
16-
// TODO: SDK-1678: Internal until ready for use.
17-
1816
private readonly List<IComponentConfigurer<IDataSource>> _initializers =
1917
new List<IComponentConfigurer<IDataSource>>();
2018

@@ -89,6 +87,16 @@ public DataSystemBuilder FDv1FallbackSynchronizer(IComponentConfigurer<IDataSour
8987
return this;
9088
}
9189

90+
/// <summary>
91+
/// Configures the persistent data store.
92+
/// </summary>
93+
/// <param name="persistentStore">the persistent data store</param>
94+
/// <param name="mode">the mode for the persistent data store</param>
95+
/// <returns>a reference to the builder</returns>
96+
/// <remarks>
97+
/// The SDK will use the persistent data store to store feature flag data.
98+
/// </remarks>
99+
/// <seealso cref="DataSystemConfiguration.DataStoreMode"/>
92100
public DataSystemBuilder PersistentStore(IComponentConfigurer<IDataStore> persistentStore,
93101
DataSystemConfiguration.DataStoreMode mode)
94102
{

pkgs/sdk/server/src/Integrations/DataSystemComponents.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ namespace LaunchDarkly.Sdk.Server.Integrations
1010
/// It is not suitable for production usage. Do not use it. You have been warned.
1111
/// </para>
1212
/// </summary>
13-
internal static class DataSystemComponents
13+
public static class DataSystemComponents
1414
{
15-
// TODO: SDK-1678: Internal until ready for use.
1615

1716
/// <summary>
1817
/// Get a builder for a polling data source.

pkgs/sdk/server/src/Integrations/DataSystemModes.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ namespace LaunchDarkly.Sdk.Server.Integrations
99
/// It is not suitable for production usage. Do not use it. You have been warned.
1010
/// </para>
1111
/// </summary>
12-
internal sealed class DataSystemModes
12+
public sealed class DataSystemModes
1313
{
1414
// This implementation is non-static to allow for easy usage with "Components".
1515
// Where we can return an instance of this object, and the user can chain into their desired configuration.
16-
// TODO: SDK-1678: Internal until ready for use.
1716

1817
/// <summary>
1918
/// Configure's LaunchDarkly's recommended flag data acquisition strategy.

pkgs/sdk/server/src/Integrations/FDv2PollingDataSourceBuilder.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ namespace LaunchDarkly.Sdk.Server.Integrations
2525
/// .FDv1FallbackSynchronizer(DataSystemComponents.FDv1Polling()));
2626
/// </code>
2727
/// </example>
28-
internal sealed class FDv2PollingDataSourceBuilder : IComponentConfigurer<IDataSource>, IDiagnosticDescription
28+
public sealed class FDv2PollingDataSourceBuilder : IComponentConfigurer<IDataSource>, IDiagnosticDescription
2929
{
30-
// TODO: SDK-1678: Internal until ready for use.
31-
3230
/// <summary>
3331
/// The default value for <see cref="PollInterval(TimeSpan)"/>: 30 seconds.
3432
/// </summary>

pkgs/sdk/server/src/Integrations/FDv2StreamingDataSourceBuilder.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ namespace LaunchDarkly.Sdk.Server.Integrations
2525
/// .FDv1FallbackSynchronizer(DataSystemComponents.FDv1Polling()));
2626
/// </code>
2727
/// </example>
28-
internal sealed class FDv2StreamingDataSourceBuilder : IComponentConfigurer<IDataSource>, IDiagnosticDescription
28+
public sealed class FDv2StreamingDataSourceBuilder : IComponentConfigurer<IDataSource>, IDiagnosticDescription
2929
{
30-
// TODO: SDK-1678: Internal until ready for use.
31-
3230
/// <summary>
3331
/// The default value for <see cref="InitialReconnectDelay(TimeSpan)"/>: 1000 milliseconds.
3432
/// </summary>
@@ -92,7 +90,8 @@ public IDataSource Build(LdClientContext context)
9290
public LdValue DescribeConfiguration(LdClientContext context) =>
9391
LdValue.BuildObject()
9492
.WithStreamingProperties(
95-
StandardEndpoints.IsCustomUri(_serviceEndpointsOverride ?? context.ServiceEndpoints, e => e.StreamingBaseUri),
93+
StandardEndpoints.IsCustomUri(_serviceEndpointsOverride ?? context.ServiceEndpoints,
94+
e => e.StreamingBaseUri),
9695
false,
9796
_initialReconnectDelay
9897
)

pkgs/sdk/server/src/LaunchDarkly.ServerSdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<!--x-release-please-start-version-->
4-
<Version>8.10.4</Version>
4+
<Version>8.11.0-beta.1</Version>
55
<!--x-release-please-end-->
66
<!-- The BUILDFRAMEWORKS variable allows us to override the target frameworks with a
77
single framework that we are testing; this allows us to test with older SDK

pkgs/sdk/server/src/Subsystems/DataSystemConfiguration.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ namespace LaunchDarkly.Sdk.Server.Subsystems
99
/// It is not suitable for production usage. Do not use it. You have been warned.
1010
/// </para>
1111
/// </summary>
12-
internal sealed class DataSystemConfiguration
12+
public sealed class DataSystemConfiguration
1313
{
14-
// TODO: SDK-1678: Internal until ready for use.
15-
1614
/// <summary>
1715
/// The persistent data store mode.
1816
/// </summary>

0 commit comments

Comments
 (0)