Skip to content

Commit

Permalink
Refs #RHIROS-1269 - clean unleash unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
upadhyeammit committed Sep 26, 2023
1 parent 5eb3583 commit e54a11c
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions ros/lib/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from .rbac_interface import ensure_has_permission
from .config import get_logger
from flask_migrate import Migrate
# Uncomment this when we can sort out the unleash connection issues
# from ros.lib.feature_flags import init_unleash_app
# Since we're using flask_sqlalchemy, we must create the flask app in both processor and web api

logger = get_logger(__name__)

Expand All @@ -21,24 +18,6 @@ def create_app():
'max_overflow': DB_MAX_OVERFLOW
}
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
# Uncomment this when we can sort out the unleash connection issues
# if not BYPASS_UNLEASH:
# from .config import UNLEASH_URL, UNLEASH_TOKEN, UNLEASH_CACHE_DIR
# if UNLEASH_TOKEN:
# app.config['UNLEASH_APP_NAME'] = 'ros-backend'
# app.config['UNLEASH_ENVIRONMENT'] = 'default'
# app.config['UNLEASH_URL'] = UNLEASH_URL
# app.config['UNLEASH_CUSTOM_HEADERS'] = {'Authorization': f"Bearer{UNLEASH_TOKEN}"}
# app.config['UNLEASH_CACHE_DIRECTORY'] = UNLEASH_CACHE_DIR
# init_unleash_app(app)
# else:
# fallback_msg = (
# "Unleash is bypassed by config value!"
# if BYPASS_UNLEASH
# else "No API token was provided for the Unleash server connection!"
# )
# fallback_msg += " Feature flag toggles will default to their fallback values."
# logger.warning(fallback_msg)
db.init_app(app)
migrate = Migrate()
migrate.init_app(app, db)
Expand Down

0 comments on commit e54a11c

Please sign in to comment.