Skip to content

Commit 5625e2a

Browse files
authored
Merge pull request #289775 from maud-lv/ml-acrecurring
Add recurrence
2 parents fb1cfce + 8e2b08d commit 5625e2a

12 files changed

+37
-20
lines changed

articles/azure-app-configuration/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
href: howto-timewindow-filter.md
151151
- name: ASP.NET Core
152152
href: howto-timewindow-filter-aspnet-core.md
153-
- name: JavaScipt
153+
- name: JavaScript
154154
href: howto-timewindow-filter-javascript.md
155155
- name: Roll out features to targeted audience
156156
items:

articles/azure-app-configuration/howto-feature-filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You can create custom feature filters that enable features based on your specifi
3131

3232
## Add a custom feature filter
3333

34-
1. Create a feature flag named *Beta* in your App Configuration store and open to edit it. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md).
34+
1. Create a feature flag named *Beta* in your App Configuration store and edit it. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md#edit-feature-flags).
3535

3636
1. In the **Edit feature flag** pane that opens, check the **Enable feature flag** checkbox if it isn't already enabled. Then check the **Use feature filter** checkbox and select **Create**.
3737

articles/azure-app-configuration/howto-targetingfilter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In this article, you will learn how to add and configure a targeting filter for
2424

2525
## Add a targeting filter
2626

27-
1. Create a feature flag named *Beta* in your App Configuration store and open to edit it. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md).
27+
1. Create a feature flag named *Beta* in your App Configuration store and edit it. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md#edit-feature-flags).
2828

2929
1. In the **Edit feature flag** pane that opens, check the **Enable feature flag** checkbox if it isn't already enabled. Then check the **Use feature filter** checkbox and select **Create**.
3030

articles/azure-app-configuration/howto-timewindow-filter-aspnet-core.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Once the start time has passed, refresh your browser a few times. You'll notice
4949
> [!div class="mx-imgBorder"]
5050
> ![Screenshot of browser with Beta menu.](./media/quickstarts/aspnet-core-feature-flag-local-after.png)
5151
52+
If recurrence is enabled when you set up the time window filter, the **Beta** menu will disappear once your current time passes the end time you set in the time window filter. However, the **Beta** menu will reappear according to your recurrence settings and continue this pattern until the recurrence expiration time, if set.
53+
5254
## Next steps
5355

5456
To learn more about the feature filters, continue to the following tutorials.

articles/azure-app-configuration/howto-timewindow-filter-javascript.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ Beta is enabled: true
6464
Beta is enabled: true
6565
```
6666

67+
If recurrence is enabled when you set up the time window filter, the console outputs will change to `Beta is enabled: false` once your current time passes the end time you set in the time window filter. However, it will change to `Beta is enabled: true` again according to your recurrence settings and continue this pattern until the recurrence expiration time, if set.
68+
6769
## Next steps
6870

6971
To learn more about the feature filters, continue to the following tutorials.
Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,63 @@
11
---
22
title: Enable features on a schedule
33
titleSuffix: Azure App Configuration
4-
description: Learn how to enable feature flags on a schedule.
4+
description: Learn how to enable feature flags on a schedule using time window filters in Azure App Configuration.
55
ms.service: azure-app-configuration
66
ms.devlang: csharp
77
author: zhiyuanliang-ms
88
ms.author: zhiyuanliang
99
ms.topic: how-to
10-
ms.date: 03/26/2024
10+
ms.date: 10/31/2024
11+
#customer intent: As an application developer, I want to enable a recurring time window filter in a feature flag so that I can enable or disable features on a schedule.
1112
---
1213

1314
# Tutorial: Enable features on a schedule
1415

1516
[Feature filters](./howto-feature-filters.md#what-is-a-feature-filter) allow a feature flag to be enabled or disabled conditionally. The time window filter is one of the feature management library's built-in feature filters. It allows you to turn on or off a feature on a schedule. For example, when you have a new product announcement, you can use it to unveil a feature automatically at a planned time. You can also use it to discontinue a promotional discount as scheduled after the marketing campaign ends.
1617

17-
In this article, you will learn how to add and configure a time window filter for your feature flags.
18+
In this article, you learn how to add and configure a time window filter for your feature flags.
1819

1920
## Add a time window filter
2021

21-
1. Create a feature flag named *Beta* in your App Configuration store and open to edit it. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md).
22+
1. Create a feature flag named *Beta* in the **Feature Manager** menu of your App Configuration store and move to the right end of the feature flag you want to modify, then select the **More actions** ellipsis (**...**) action and **Edit**. For more information about how to add and edit a feature flag, see [Manage feature flags](./manage-feature-flags.md).
2223

23-
1. In the **Edit feature flag** pane that opens, check the **Enable feature flag** checkbox if it isn't already enabled. Then check the **Use feature filter** checkbox and select **Create**.
24+
1. In the **Edit** pane that opens, check the **Enable feature flag** checkbox if it's currently unchecked, then check the **Use feature filter** checkbox and select **Create**.
2425

25-
> [!div class="mx-imgBorder"]
26-
> ![Screenshot of the Azure portal, filling out the form 'Edit feature flag'.](./media/feature-filters/edit-a-feature-flag.png)
26+
:::image type="content" source="media/time-window-filters/edit-a-feature-flag.png" alt-text="Screenshot of the Azure portal showing how to edit a feature flag.":::
2727

28-
1. The pane **Create a new filter** opens. Under **Filter type**, select the **Time window filter** in the dropdown.
28+
1. The **Create a new filter** pane opens on the side. Under **Filter type**, select **Time window filter** in the dropdown.
2929

30-
> [!div class="mx-imgBorder"]
31-
> ![Screenshot of the Azure portal, creating a new time window filter.](./media/feature-filters/add-timewindow-filter.png)
30+
:::image type="content" source="media/time-window-filters/add-timewindow-filter.png" alt-text="Screenshot of the Azure portal showing time window feature filter configuration.":::
31+
32+
1. A time window filter includes a start time and/or an end time. Both **Start time** and **End time** checkboxes are checked by default.
33+
- Setting a start time allows you to enable the feature flag on a specific date and time. A time window filter with no start time is active as soon as you save the feature filter details.
34+
- Setting an end time allows you to disable the feature flag at a specific date and time. A time window filter with no end time remains active until you disable it.
35+
36+
Uncheck the end time and enter a start time a few minutes ahead of your current time to schedule the *Beta* feature to be enabled automatically in a few minutes and never be disabled once enabled.
37+
38+
1. A time zone is selected by default, based on your browser's current time zone. Optionally select another time zone.
39+
40+
1. Optionally set a time window recurrence. This option allows you to define a repeating time window, ensuring that the feature flag is automatically activated and deactivated according to your specified schedule, such as during periods of low or high traffic.
41+
42+
A recurring time window filter always has a start time and an end time, defining a base time window that recurs according to the recurrence pattern you specify. Enter a **Start time** and an **End time**, then select the **Enable recurrence** checkbox, and select the recurrence details, including a recurrence pattern and an **expiration time**.
43+
44+
In this example, you activate the *Beta* feature daily from 5:00 PM to 6:00 PM, starting November 25 and continuing until December 31. You can alternatively select a weekly frequency and select one or more days of the week for the recurrence.
45+
46+
:::image type="content" source="media/time-window-filters/add-timewindow-filter-recurrence.png" alt-text="Screenshot of the Azure portal showing feature filter recurrence.":::
3247

33-
1. A time window filter includes two parameters: start and expiry date. Set the **Start date** to **Custom** and select a time a few minutes ahead of your current time. Set the **Expiry date** to **Never**. In this example, you schedule the *Beta* feature to be enabled automatically at a future time, and it will never be disabled once enabled.
3448

3549
1. Select **Add** to save the configuration of the time window filter and return to the **Edit feature flag** screen.
3650

37-
1. The time window filter is now listed in the feature flag details. Select **Apply** to save the feature flag.
51+
1. The time window filter is now listed in the feature filter details, under **Feature filters**. Select **Apply** to save the feature flag with the new feature filter.
3852

39-
> [!div class="mx-imgBorder"]
40-
> ![Screenshot of the Azure portal, applying new time window filter.](./media/feature-filters/feature-flag-edit-apply-timewindow-filter.png)
53+
:::image type="content" source="media/time-window-filters/feature-flag-edit-apply-timewindow-filter.png" alt-text="Screenshot of the Azure portal, applying new time window filter.":::
4154

42-
Now, you successfully added a time window filter to a feature flag.
55+
Now, you successfully added a time window filter to a feature flag.
4356

4457
1. Continue to the following instructions to use the feature flag with a time window filter in your application for the language or platform you are using.
4558

4659
- [ASP.NET Core](./howto-timewindow-filter-aspnet-core.md)
47-
- [Node.js](./howto-timewindow-filter-javascript.md)
60+
- [JavaScript](./howto-timewindow-filter-javascript.md)
4861

4962
## Next steps
5063

@@ -54,4 +67,4 @@ To learn more about the feature filters, continue to the following tutorials:
5467
> [Enable conditional features with feature filters](./howto-feature-filters.md)
5568
5669
> [!div class="nextstepaction"]
57-
> [Roll out features to targeted audience](./howto-targetingfilter.md)
70+
> [Roll out features to targeted audience](./howto-targetingfilter.md)
Binary file not shown.
18.6 KB
Loading
29.1 KB
Loading

0 commit comments

Comments
 (0)