-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path_constants.py
More file actions
34 lines (29 loc) · 1.03 KB
/
_constants.py
File metadata and controls
34 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -------------------------------------------------------------------------
"""Constants used by feature management models."""
# Feature Flag
FEATURE_FLAG_ID = "id"
FEATURE_FLAG_ENABLED = "enabled"
FEATURE_FLAG_CONDITIONS = "conditions"
FEATURE_FLAG_ALLOCATION = "allocation"
FEATURE_FLAG_VARIANTS = "variants"
# Conditions
FEATURE_FILTER_REQUIREMENT_TYPE = "requirement_type"
REQUIREMENT_TYPE_ALL = "All"
REQUIREMENT_TYPE_ANY = "Any"
FEATURE_FLAG_CLIENT_FILTERS = "client_filters"
FEATURE_FILTER_NAME = "name"
# Allocation
DEFAULT_WHEN_ENABLED = "default_when_enabled"
DEFAULT_WHEN_DISABLED = "default_when_disabled"
USER = "user"
GROUP = "group"
PERCENTILE = "percentile"
SEED = "seed"
# Variant Reference
VARIANT_REFERENCE_NAME = "name"
CONFIGURATION_VALUE = "configuration_value"
STATUS_OVERRIDE = "status_override"