-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add feature flags on start #314
add feature flags on start #314
Conversation
@tsloughter Can you offer guidance on how to get Ecto Migrations to wait for a database connection before proceeding instead of doing the |
I can't but I can find someone who can. Would be nicer if the docker |
ooof... I got caught mid-docs restructuring on this one. Sorry for the commits reverting back and forth there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/featureflagservice/priv/repo/migrations/20220524172636_create_featureflags.exs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* add feature flags on start * revert sleep change * document feature flags * feature flag definitions * Revert "document feature flags" This reverts commit c975f5d. * document feature flags * document feature flags * add reference to feature flags * fix nits
Fixes #301
Changes
Inserting the records into the database using Ecto migrations with a default of
false
for enabled. The user can enable the flag by going to the Feature Flag service web UI http://localhost:8081. As of the creation of this PR only theproductCatalogFailure
flag is leveraged in service code. Using migrations means feature flags state will be preserved if you stop/restart the service/demo. The migrations only reset if thepostgres_ffs
service container is recreated with docker compose (usingdocker compose down
or the--force-recreate
flag)We should merge #315 before this
CHANGELOG.md
updated for non-trivial changes