You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProvider.java
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java
+6
Original file line number
Diff line number
Diff line change
@@ -86,4 +86,10 @@ public class GoFeatureFlagProviderOptions {
86
86
* default: 120000
87
87
*/
88
88
privateLongflagChangePollingIntervalMs;
89
+
90
+
/**
91
+
* (optional) disableDataCollection set to true if you don't want to collect the usage of flags retrieved in the cache.
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/bean/ConfigurationChange.java
+1
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
* ConfigurationChange is an enum to represent the change of the configuration.
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java
+6-3
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ public ConfigurationChange configurationHasChanged() throws GoFeatureFlagExcepti
253
253
HttpUrlurl = this.parsedEndpoint.newBuilder()
254
254
.addEncodedPathSegment("v1")
255
255
.addEncodedPathSegment("flag")
256
-
.addEncodedPathSegment("chang1e")
256
+
.addEncodedPathSegment("change")
257
257
.build();
258
258
259
259
Request.BuilderreqBuilder = newRequest.Builder()
@@ -281,8 +281,11 @@ public ConfigurationChange configurationHasChanged() throws GoFeatureFlagExcepti
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/events/EventsPublisher.java
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/util/ConcurrentUtils.java
Copy file name to clipboardExpand all lines: providers/go-feature-flag/src/test/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderTest.java
+64-2
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
importjava.util.Map;
12
12
13
13
importcom.google.common.cache.CacheBuilder;
14
+
importcom.google.common.net.HttpHeaders;
14
15
importdev.openfeature.sdk.Client;
15
16
importdev.openfeature.sdk.ErrorCode;
16
17
importdev.openfeature.sdk.EvaluationContext;
@@ -49,6 +50,8 @@
49
50
@Slf4j
50
51
classGoFeatureFlagProviderTest {
51
52
privateintpublishEventsRequestsReceived = 0;
53
+
privateintflagChangeCallCounter = 0;
54
+
privatebooleanflagChanged404 = false;
52
55
53
56
// Dispatcher is the configuration of the mock server to test the provider.
54
57
finalDispatcherdispatcher = newDispatcher() {
@@ -78,8 +81,21 @@ public MockResponse dispatch(RecordedRequest request) {
78
81
}
79
82
returnnewMockResponse().setResponseCode(200);
80
83
}
81
-
if (request.getPath().startsWith("/v1/flag/change")) {
0 commit comments