Skip to content

Commit

Permalink
remove feature flags from application layer
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Nov 27, 2024
1 parent 7692980 commit e2b2f53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
9 changes: 0 additions & 9 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import storage
from db import get_db_connection
from feature_flags import is_feature_enabled

logging.basicConfig()
logger = logging.getLogger()
Expand Down Expand Up @@ -50,14 +49,6 @@ def migrations():
return f"Last migration on {last_migration_date}"


@app.route("/feature-flags")
def feature_flags():
foo_status = "enabled" if is_feature_enabled("foo") else "disabled"
bar_status = "enabled" if is_feature_enabled("bar") else "disabled"

return f"<p>Feature foo is {foo_status}</p><p>Feature bar is {bar_status}</p>"


@app.route("/document-upload")
def document_upload():
path = f"uploads/{datetime.now().date()}/${{filename}}"
Expand Down
20 changes: 0 additions & 20 deletions app/feature_flags.py

This file was deleted.

0 comments on commit e2b2f53

Please sign in to comment.