diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index b0b64c054134f..6c49e8742bcde 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -138,8 +138,8 @@ com.microsoft.azure:spring-cloud-azure-feature-management;1.3.0;1.4.0-beta.1
com.microsoft.azure:spring-cloud-starter-azure-appconfiguration-config;1.3.0;1.4.0-beta.1
com.azure.spring:azure-spring-cloud-appconfiguration-config-web;2.0.0-beta.1;2.0.0-beta.2
com.azure.spring:azure-spring-cloud-appconfiguration-config;2.0.0-beta.1;2.0.0-beta.2
-com.azure.spring:azure-spring-cloud-feature-management-web;2.0.0-beta.1;2.0.0-beta.2
-com.azure.spring:azure-spring-cloud-feature-management;2.0.0-beta.1;2.0.0-beta.2
+com.azure.spring:azure-spring-cloud-feature-management-web;2.0.0-beta.1;2.0.0
+com.azure.spring:azure-spring-cloud-feature-management;2.0.0-beta.1;2.0.0
com.azure.spring:azure-spring-cloud-starter-appconfiguration-config;2.0.0-beta.1;2.0.0-beta.2
com.azure.spring:azure-identity-spring;1.5.0;1.6.0-beta.1
com.azure.spring:azure-spring-boot-starter-active-directory-b2c;3.5.0;3.6.0-beta.1
diff --git a/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config-web/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config-web/CHANGELOG.md
index 681c54ca4708c..dc548b5d6e26e 100644
--- a/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config-web/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config-web/CHANGELOG.md
@@ -1,7 +1,7 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
-
+## 2.0.0-beta.2 (2021-06-21)
+- Changed package path to `com.azure.spring.cloud.config`
## 2.0.0-beta.1 (2021-05-04)
### Breaking Changes
diff --git a/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/CHANGELOG.md
index 89b091063d64d..be558eaa9107a 100644
--- a/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/CHANGELOG.md
@@ -1,7 +1,11 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
-
+## 2.0.0-beta.2 (2021-06-21)
+### Breaking Changes
+- Changed package path to `com.azure.spring.cloud.config`
+- Renamed cache-expiration to refresh-interval
+- Moved and renamed feature-flag cache-expiration to `spring.cloud.azure.appconfiguration.stores[0].monitoring.feature-flag-refresh-interval`
+- Removed use of revisions endpoint
## 2.0.0-beta.1 (2021-05-04)
### Breaking Changes
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md
index 4a8e2bc1640e1..4b48f2deb03f6 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/CHANGELOG.md
@@ -1,7 +1,10 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
+## 2.0.0 (2021-06-21)
+### Breaking Change
+
+- Changed package path to `com.azure.spring.cloud.feature.manager`
## 2.0.0-beta.1 (2021-05-04)
### Breaking Changes
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml
index 9a126c2be3f1f..55e3a2b6058d3 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management-web/pom.xml
@@ -11,7 +11,7 @@
com.azure.spring
azure-spring-cloud-feature-management-web
- 2.0.0-beta.2
+ 2.0.0
Azure Spring Cloud Feature Management Web
Adds Feature Management into Spring Web
@@ -41,7 +41,7 @@
com.azure.spring
azure-spring-cloud-feature-management
- 2.0.0-beta.2
+ 2.0.0
+ com.azure.spring:azure-spring-cloud-feature-management:[2.0.0]
javax.servlet:javax.servlet-api:[4.0.1]
org.springframework:spring-web:[5.3.7]
org.springframework:spring-webmvc:[5.3.7]
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md
index e0531bbdc3b99..1f897a80114bd 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management/CHANGELOG.md
@@ -1,7 +1,12 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
+## 2.0.0 (2021-06-21)
+- Updated TimeWindowFilter to support ISO-8601
+
+### Breaking Change
+
+- Changed package path to `com.azure.spring.cloud.feature.manager`
## 2.0.0-beta.1 (2021-05-04)
### Breaking Changes
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml b/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml
index 1b07cd1d0e460..24c8d3a5daa27 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management/pom.xml
@@ -11,7 +11,7 @@
com.azure.spring
azure-spring-cloud-feature-management
- 2.0.0-beta.2
+ 2.0.0
Azure Spring Cloud Feature Management
Adds Feature Management into Spring
diff --git a/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java b/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java
index b2eb15d4fc03d..f312f94a6917f 100644
--- a/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java
+++ b/sdk/appconfiguration/azure-spring-cloud-feature-management/src/main/java/com/azure/spring/cloud/feature/manager/feature/filters/TimeWindowFilter.java
@@ -7,6 +7,8 @@
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
+import java.time.format.DateTimeParseException;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@@ -42,14 +44,25 @@ public boolean evaluate(FeatureFilterEvaluationContext context) {
TIME_WINDOW_FILTER_SETTING_END);
return false;
}
+
+ ZonedDateTime startTime = null;
+ ZonedDateTime endTime = null;
- ZonedDateTime startTime = StringUtils.hasText(start)
- ? ZonedDateTime.parse(start, DateTimeFormatter.RFC_1123_DATE_TIME)
- : null;
- ZonedDateTime endTime = StringUtils.hasText(end)
- ? ZonedDateTime.parse(end, DateTimeFormatter.RFC_1123_DATE_TIME)
- : null;
-
+ try {
+ startTime = StringUtils.hasText(start)
+ ? ZonedDateTime.parse(start, DateTimeFormatter.ISO_DATE_TIME)
+ : null;
+ endTime = StringUtils.hasText(end)
+ ? ZonedDateTime.parse(end, DateTimeFormatter.ISO_DATE_TIME)
+ : null;
+ } catch (DateTimeParseException e) {
+ startTime = StringUtils.hasText(start)
+ ? ZonedDateTime.parse(start, DateTimeFormatter.RFC_1123_DATE_TIME)
+ : null;
+ endTime = StringUtils.hasText(end)
+ ? ZonedDateTime.parse(end, DateTimeFormatter.RFC_1123_DATE_TIME)
+ : null;
+ }
return (!StringUtils.hasText(start) || now.isAfter(startTime))
&& (!StringUtils.hasText(end) || now.isBefore(endTime));
}
diff --git a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md
index e183ace373c5a..44262acabe46d 100644
--- a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md
+++ b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/CHANGELOG.md
@@ -1,6 +1,8 @@
# Release History
-## 2.0.0-beta.2 (Unreleased)
+## 2.0.0-beta.2 (2021-06-21)
+### Breaking Changes
+- Changed package path to `com.azure.spring.cloud.config` and `com.azure.spring.cloud.feature.manager`
## 2.0.0-beta.1 (2021-05-04)
diff --git a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md
index fbdb0a8b23278..8b87447ee76c5 100644
--- a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md
+++ b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/README.md
@@ -21,7 +21,7 @@ There are two libraries that can be used azure-spring-cloud-appconfiguration-con
com.azure.spring
azure-spring-cloud-appconfiguration-config
- 1.2.8-beta.1
+ 2.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -33,7 +33,7 @@ or
com.azure.spring
azure-spring-cloud-appconfiguration-config-web
- 1.2.8-beta.1
+ 2.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -76,6 +76,7 @@ Name | Description | Required | Default
---|---|---|---
spring.cloud.azure.appconfiguration.stores[0].monitoring.enabled | Whether the configurations and feature flags will be re-loaded if a change is detected. | No | false
spring.cloud.azure.appconfiguration.stores[0].monitoring.watch-interval | Amount of time, of type Duration, configurations are stored before a check can occur. | No | 30s
+spring.cloud.azure.appconfiguration.stores[0].monitoring.feature-flags.watch-interval | Amount of time, of type Duration, feature flags are stored before a check can occur. | No | 30s
spring.cloud.azure.appconfiguration.stores[0].monitoring.triggers[0].key | A key that is watched for change via etag. If a change is detected on the key then a refresh of all configurations will be triggered. | Yes (If monitoring enabled) | null
spring.cloud.azure.appconfiguration.stores[0].monitoring.triggers[0].label | The label of the key that is being watched for etag changes. | No | \0
spring.cloud.azure.appconfiguration.stores[0].monitoring.push-notification.primary-token.name | The name of a token used with Event Hub to trigger push based refresh. | No | null
@@ -89,7 +90,6 @@ Name | Description | Required | Default
---|---|---|---
spring.cloud.azure.appconfiguration.stores[0].feature-flags.enable | Whether feature flags are loaded from the config store. | No | false
spring.cloud.azure.appconfiguration.stores[0].feature-flags.label-filter | The label used to indicate which feature flags will be loaded. | No | \0
-spring.cloud.azure.appconfiguration.stores[0].feature-flags.watch-interval | Amount of time, of type Duration, feature flags are stored before a check can occur. | No | 30s
### Advanced usage
diff --git a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml
index af9868fe6d0c4..6cdadd4df4afc 100644
--- a/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml
+++ b/sdk/appconfiguration/azure-spring-cloud-starter-appconfiguration-config/pom.xml
@@ -23,7 +23,7 @@
com.azure.spring
azure-spring-cloud-feature-management-web
- 2.0.0-beta.2
+ 2.0.0