-
Notifications
You must be signed in to change notification settings - Fork 429
refactor(feature-flags): optimize UX and maintenance #563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
heitorlessa
merged 48 commits into
aws-powertools:develop
from
heitorlessa:docs/dynamic-feature-toggles
Aug 4, 2021
Merged
Changes from 14 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
9890170
docs(feature_flags): initial skeleton
heitorlessa 85f4b9d
Merge branch 'develop' into docs/dynamic-feature-toggles
heitorlessa 0b2abc7
docs(feature_flags): initial sections
heitorlessa 566a2f9
docs: add terminology section
heitorlessa e9f87dc
docs: add IAM permission
heitorlessa 619c547
refactor: rules_context to context
heitorlessa b274eed
refactor: AppConfig params to match Parameters
heitorlessa 4d397a7
refactor: rename ConfigurationStore, SchemaFetcher
heitorlessa a70bcd8
refactor: rename schema_fetcher param
heitorlessa 649d987
refactor: rename get_feature_toggle to evaluate
heitorlessa 38c7bd1
chore: improve all_enabled feature tests
heitorlessa d902018
refactor: get_all_enabled_feature_toggles to get_enabled_features
heitorlessa ce16548
refactor: remove redundant logger, add newlines
heitorlessa 2f5ccd3
chore: make method static
heitorlessa 0d44e4d
refactor(tests): simplify with pytest raise match str
heitorlessa 6100d38
refactor: rename feature_name to name
heitorlessa 7370464
refactor: remove redundant logger; rename method to validate
heitorlessa d50650c
refactor: rename to feature_flags
heitorlessa 0c0a4f7
refactor(schema-validator): accept schema in constructor
heitorlessa 0e15b4b
refactor(schema-validator): private fn signature name
heitorlessa 7eb8a67
revert: re-add root schema validation under validate
heitorlessa 9e757fa
fix: regression on empty schemas
heitorlessa 3a71fdf
fix: regression on empty schemas
heitorlessa bf4bdd6
refactor(schema-validator): initial change to classes
heitorlessa 33f30d2
Merge branch 'docs/dynamic-feature-toggles' of https://github.com/hei…
heitorlessa 7fa8ec2
refactor(schema-validator): rename each Validator
heitorlessa 3b50664
refactor(schema-validator): rename Action to RuleAction
heitorlessa d22226f
refactor(tests): use public methods
heitorlessa cd561a1
dd2c1f8
test(feature-flags): review issues with pr
michaelbrewer 6ed29ea
Merge pull request #36 from gyft/docs/dynamic-feature-toggles-patch
heitorlessa b500acb
refactor(tests): use public static methods
heitorlessa 327a4ae
refactor(schema): rename feature_default_value to default
heitorlessa 4bfe2a8
refactor(schema): rename value_when_applies to when_match
heitorlessa 4aba507
refactor(schema): use new rules dict over list
heitorlessa 387da38
refactor(tests): conf_store to feature flags
heitorlessa a872814
refactor: remove RULE_KEY, exception & rule test consistency
heitorlessa 1f62696
refactor(schema): remove 'features' key
heitorlessa f63a5da
feat: support JMESPath envelope/options to extract features
heitorlessa 9c714ab
refactor(store): use get_configuration over get_json_configuration
heitorlessa f89d572
refactor: add docstrings and logging to FeatureFlags, Store
heitorlessa b61cafa
docs: remove changes; add in PR description
heitorlessa e9bb190
refactor(schema): add docstrings and schema specification
heitorlessa a55131f
refactor: add SchemaValidationError
heitorlessa e0ab7a1
refactor: rename ConfigurationError to ConfigurationStoreError, impro…
heitorlessa d8125c7
test: conditional dict values
heitorlessa 1b202be
refactor: rename toggles to flags
heitorlessa a0ae9da
fix: propagate access denied errors
heitorlessa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
aws_lambda_powertools/utilities/feature_toggles/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
"""Advanced feature toggles utility | ||
""" | ||
from .appconfig_fetcher import AppConfigFetcher | ||
from .configuration_store import ConfigurationStore | ||
from .appconfig import AppConfigStore | ||
from .base import StoreProvider | ||
from .exceptions import ConfigurationError | ||
from .feature_flags import FeatureFlags | ||
from .schema import ACTION, SchemaValidator | ||
from .schema_fetcher import SchemaFetcher | ||
|
||
__all__ = [ | ||
"ConfigurationError", | ||
"ConfigurationStore", | ||
"FeatureFlags", | ||
"ACTION", | ||
"SchemaValidator", | ||
"AppConfigFetcher", | ||
"SchemaFetcher", | ||
"AppConfigStore", | ||
"StoreProvider", | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.